summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-01-16 21:04:00 +0100
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-17 23:48:43 -0200
commit709b86346e78f18badacd269b48868f153b87383 (patch)
tree69551b2ea018567c5fc4f5f49384d5645a325b43
parent8fe1681c52ceec35c77e37ca03837c0948e41b49 (diff)
downloadkmod-709b86346e78f18badacd269b48868f153b87383.tar.gz
testsuite: Add modinfo test for module signatures
-rw-r--r--testsuite/rootfs-pristine/test-modinfo/correct.txt24
-rw-r--r--testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha1.kobin0 -> 729451 bytes
-rw-r--r--testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.kobin0 -> 729451 bytes
-rw-r--r--testsuite/test-modinfo.c3
4 files changed, 26 insertions, 1 deletions
diff --git a/testsuite/rootfs-pristine/test-modinfo/correct.txt b/testsuite/rootfs-pristine/test-modinfo/correct.txt
index 1682154..4a7a4ac 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 0000000..6e894f9
--- /dev/null
+++ b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha1.ko
Binary files 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 0000000..bf72008
--- /dev/null
+++ b/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko
Binary files differ
diff --git a/testsuite/test-modinfo.c b/testsuite/test-modinfo.c
index d209879..c5934ea 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,
};