[syslinux:firmware] tests: verify kernel cmdline parameter

syslinux-bot for Matt Fleming matt.fleming at intel.com
Fri Jul 26 01:27:10 PDT 2013


Commit-ID:  c8524364ff29e3f0bef0b21d66e571ba76e8d9d4
Gitweb:     http://www.syslinux.org/commit/c8524364ff29e3f0bef0b21d66e571ba76e8d9d4
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Thu, 25 Jul 2013 17:30:23 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Thu, 25 Jul 2013 22:23:27 +0100

tests: verify kernel cmdline parameter

Add a new test that verifies the kernel cmdline arguments we setup in
our config file are passed to the kernel correctly.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 tests/linux/Makefile        | 8 ++++++--
 tests/linux/cmdline.cfg     | 5 +++++
 tests/linux/cmdline.results | 3 +++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/tests/linux/Makefile b/tests/linux/Makefile
index bfa3ca7..5d5230e 100644
--- a/tests/linux/Makefile
+++ b/tests/linux/Makefile
@@ -31,7 +31,11 @@ kernelhello_cfg = kernelhello.cfg
 kernelhello_files = $(kernelhello_cfg) kernelhello-vmlinuz
 kernelhello_results = kernelhello.results
 
-STANDARD_TESTS = kernelhello pxetest
+cmdline_cfg = cmdline.cfg
+cmdline_files = $(cmdline_cfg) kernelhello-vmlinuz
+cmdline_results = cmdline.results
+
+STANDARD_TESTS = kernelhello pxetest cmdline
 $(STANDARD_TESTS):
 	$(run-test)
 
@@ -39,7 +43,7 @@ empty:
 	touch empty-vmlinuz
 	$(run-test)
 
-tests: banner empty kernelhello $(derivative-tests)
+tests: banner empty kernelhello cmdline $(derivative-tests)
 
 banner:
 	printf "    Running Linux kernel regression tests...\n"
diff --git a/tests/linux/cmdline.cfg b/tests/linux/cmdline.cfg
new file mode 100644
index 0000000..2e684ee
--- /dev/null
+++ b/tests/linux/cmdline.cfg
@@ -0,0 +1,5 @@
+DEFAULT cmdline
+
+LABEL cmdline
+    KERNEL kernelhello-vmlinuz
+    APPEND console=ttyS0 this-is-my-cmdline arguments
diff --git a/tests/linux/cmdline.results b/tests/linux/cmdline.results
new file mode 100644
index 0000000..2915904
--- /dev/null
+++ b/tests/linux/cmdline.results
@@ -0,0 +1,3 @@
+
+[    0.000000] Kernel command line: BOOT_IMAGE=kernelhello-vmlinuz console=ttyS0 this-is-my-cmdline arguments
+Hello, World!


More information about the Syslinux-commits mailing list