]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
testcase for blanklines in grub script
authorBVK Chaitanya <bvk.groups@gmail.com>
Mon, 22 Mar 2010 08:24:45 +0000 (13:54 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Mon, 22 Mar 2010 08:24:45 +0000 (13:54 +0530)
conf/tests.rmk
tests/grub_script_blanklines.in [new file with mode: 0644]

index c5080f58c7146d18930e0e7de06f6cb5b728b87b..47dea7fb15ad0e5930840097156f03cc77a5b06c 100644 (file)
@@ -50,6 +50,9 @@ grub_script_echo_keywords_SOURCES = tests/grub_script_echo_keywords.in
 check_SCRIPTS += grub_script_vars1
 grub_script_vars1_SOURCES = tests/grub_script_vars1.in
 
+check_SCRIPTS += grub_script_blanklines
+grub_script_blanklines_SOURCES = tests/grub_script_blanklines.in
+
 # List of tests to execute on "make check"
 # SCRIPTED_TESTS    = example_scripted_test
 # SCRIPTED_TESTS   += example_grub_script_test
@@ -59,6 +62,7 @@ grub_script_vars1_SOURCES = tests/grub_script_vars1.in
 SCRIPTED_TESTS  = grub_script_echo1
 SCRIPTED_TESTS += grub_script_echo_keywords
 SCRIPTED_TESTS += grub_script_vars1
+SCRIPTED_TESTS += grub_script_blanklines
 
 # dependencies between tests and testing-tools
 $(SCRIPTED_TESTS): grub-shell grub-shell-tester
diff --git a/tests/grub_script_blanklines.in b/tests/grub_script_blanklines.in
new file mode 100644 (file)
index 0000000..71b869b
--- /dev/null
@@ -0,0 +1,14 @@
+#! /bin/sh -e
+
+@builddir@/grub-script-check <<EOF
+# comment 1
+
+command1 arg1
+
+command2 arg2
+
+
+
+last command
+# comment 2
+EOF