aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-01-16 21:04:00 +0100
committerMichal Marek <mmarek@suse.cz>2013-01-16 21:11:14 +0100
commit6f3327737f5009ada9334950446c358f9dd55bc2 (patch)
tree7ce71af04a7ad385eeed1406f2440fc68a6d95a9
parente1fe077ebd2cd57d65454cca095d9d05cc2c1069 (diff)
downloadkmod-modinfo-signature2.tar.gz
testsuite: Add modinfo test for module signaturesmodinfo-signature2
-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 3a01fa1..56ecad1 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,
};