From: Michal Marek Date: Wed, 16 Jan 2013 20:04:00 +0000 (+0100) Subject: testsuite: Add modinfo test for module signatures X-Git-Tag: v13~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=709b86346e78f18badacd269b48868f153b87383;p=thirdparty%2Fkmod.git testsuite: Add modinfo test for module signatures --- diff --git a/testsuite/rootfs-pristine/test-modinfo/correct.txt b/testsuite/rootfs-pristine/test-modinfo/correct.txt index 16821541..4a7a4ac1 100644 --- a/testsuite/rootfs-pristine/test-modinfo/correct.txt +++ b/testsuite/rootfs-pristine/test-modinfo/correct.txt @@ -26,3 +26,27 @@ author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theod srcversion: A80608676B83D55514B450E depends: mbcache,jbd2 vermagic: 2.6.32-220.el6.x86_64 SMP mod_unload modversions +filename: /ext4-x86_64-sha1.ko +license: GPL +description: Fourth Extended Filesystem +author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others +alias: ext3 +alias: ext2 +depends: mbcache,jbd2 +intree: Y +vermagic: 3.7.0 SMP mod_unload +signer: Magrathea: Glacier signing key +sig_key: E3:C8:FC:A7:3F:B3:1D:DE:84:81:EF:38:E3:4C:DE:4B:0C:FD:1B:F9 +sig_hashalgo: sha1 +filename: /ext4-x86_64-sha256.ko +license: GPL +description: Fourth Extended Filesystem +author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others +alias: ext3 +alias: ext2 +depends: mbcache,jbd2 +intree: Y +vermagic: 3.7.0 SMP mod_unload +signer: Magrathea: Glacier signing key +sig_key: E3:C8:FC:A7:3F:B3:1D:DE:84:81:EF:38:E3:4C:DE:4B:0C:FD:1B:F9 +sig_hashalgo: sha256 diff --git a/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha1.ko b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha1.ko new file mode 100644 index 00000000..6e894f9d Binary files /dev/null and b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha1.ko differ diff --git a/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko new file mode 100644 index 00000000..bf720088 Binary files /dev/null and b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko differ diff --git a/testsuite/test-modinfo.c b/testsuite/test-modinfo.c index d209879d..c5934ea7 100644 --- a/testsuite/test-modinfo.c +++ b/testsuite/test-modinfo.c @@ -32,7 +32,8 @@ static __noreturn int modinfo_jonsmodules(const struct test *t) const char *const args[] = { progname, "/ext4-i686.ko", "/ext4-ppc64.ko", "/ext4-s390x.ko", - "/ext4-x86_64.ko", + "/ext4-x86_64.ko", "/ext4-x86_64-sha1.ko", + "/ext4-x86_64-sha256.ko", NULL, };