testsuite: Add modinfo test for module signatures
authorMichal Marek <mmarek@suse.cz>
Wed, 16 Jan 2013 20:04:00 +0000 (21:04 +0100)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 18 Jan 2013 01:48:43 +0000 (23:48 -0200)
testsuite/rootfs-pristine/test-modinfo/correct.txt
testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha1.ko [new file with mode: 0644]
testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko [new file with mode: 0644]
testsuite/test-modinfo.c

index 1682154..4a7a4ac 100644 (file)
@@ -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 (file)
index 0000000..6e894f9
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 (file)
index 0000000..bf72008
Binary files /dev/null and b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko differ
index d209879..c5934ea 100644 (file)
@@ -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,
        };