testcase for blanklines in grub script
This commit is contained in:
parent
0cdc2a095b
commit
8507a6ccdf
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
14
tests/grub_script_blanklines.in
Normal file
14
tests/grub_script_blanklines.in
Normal file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
@builddir@/grub-script-check <<EOF
|
||||
# comment 1
|
||||
|
||||
command1 arg1
|
||||
|
||||
command2 arg2
|
||||
|
||||
|
||||
|
||||
last command
|
||||
# comment 2
|
||||
EOF
|
Loading…
Reference in a new issue