2010-01-08 09:49:10 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# For grub-shell
|
|
|
|
grub-shell: tests/util/grub-shell.in config.status
|
|
|
|
./config.status --file=$@:$<
|
|
|
|
chmod +x $@
|
2010-01-12 10:19:40 +00:00
|
|
|
check_SCRIPTS += grub-shell
|
2010-01-08 09:49:10 +00:00
|
|
|
CLEANFILES += grub-shell
|
|
|
|
|
|
|
|
# For grub-shell-tester
|
|
|
|
grub-shell-tester: tests/util/grub-shell-tester.in config.status
|
|
|
|
./config.status --file=$@:$<
|
|
|
|
chmod +x $@
|
2010-01-12 10:19:40 +00:00
|
|
|
check_SCRIPTS += grub-shell-tester
|
2010-01-08 09:49:10 +00:00
|
|
|
CLEANFILES += grub-shell-tester
|
|
|
|
|
2010-01-12 04:46:17 +00:00
|
|
|
pkglib_MODULES += functional_test.mod
|
2010-01-08 09:49:10 +00:00
|
|
|
functional_test_mod_SOURCES = tests/lib/functional_test.c tests/lib/test.c
|
|
|
|
functional_test_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
|
|
functional_test_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
2010-01-12 04:46:17 +00:00
|
|
|
# Rules for unit tests
|
2010-01-12 10:19:40 +00:00
|
|
|
check_UTILITIES += example_unit_test
|
2010-01-08 09:49:10 +00:00
|
|
|
example_unit_test_SOURCES = tests/example_unit_test.c kern/list.c kern/misc.c tests/lib/test.c tests/lib/unit_test.c
|
|
|
|
example_unit_test_CFLAGS = -Wno-format
|
|
|
|
|
2010-01-12 04:46:17 +00:00
|
|
|
# Rules for functional tests
|
|
|
|
pkglib_MODULES += example_functional_test.mod
|
2010-01-08 09:49:10 +00:00
|
|
|
example_functional_test_mod_SOURCES = tests/example_functional_test.c
|
|
|
|
example_functional_test_mod_CFLAGS = -Wno-format $(COMMON_CFLAGS)
|
|
|
|
example_functional_test_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
2010-01-12 04:46:17 +00:00
|
|
|
# Rules for scripted tests
|
2010-01-12 10:19:40 +00:00
|
|
|
check_SCRIPTS += example_scripted_test
|
2010-01-08 09:49:10 +00:00
|
|
|
example_scripted_test_SOURCES = tests/example_scripted_test.in
|
|
|
|
|
2010-01-12 10:19:40 +00:00
|
|
|
check_SCRIPTS += example_grub_script_test
|
2010-01-08 09:49:10 +00:00
|
|
|
example_grub_script_test_SOURCES = tests/example_grub_script_test.in
|
2010-01-12 04:46:17 +00:00
|
|
|
|
2010-01-22 13:37:27 +00:00
|
|
|
#
|
|
|
|
# Rules for real tests
|
|
|
|
#
|
|
|
|
|
|
|
|
check_SCRIPTS += grub_script_echo1
|
|
|
|
grub_script_echo1_SOURCES = tests/grub_script_echo1.in
|
|
|
|
|
|
|
|
check_SCRIPTS += grub_script_echo_keywords
|
|
|
|
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
|
2010-01-12 04:46:17 +00:00
|
|
|
|
2010-01-23 05:33:41 +00:00
|
|
|
check_SCRIPTS += grub_script_for1
|
|
|
|
grub_script_for1_SOURCES = tests/grub_script_for1.in
|
|
|
|
|
2010-01-26 07:02:24 +00:00
|
|
|
check_SCRIPTS += grub_script_while1
|
|
|
|
grub_script_while1_SOURCES = tests/grub_script_while1.in
|
|
|
|
|
2010-04-09 17:02:58 +00:00
|
|
|
check_SCRIPTS += grub_script_if
|
|
|
|
grub_script_if_SOURCES = tests/grub_script_if.in
|
|
|
|
|
2010-03-22 08:24:45 +00:00
|
|
|
check_SCRIPTS += grub_script_blanklines
|
|
|
|
grub_script_blanklines_SOURCES = tests/grub_script_blanklines.in
|
|
|
|
|
2010-03-22 08:32:48 +00:00
|
|
|
check_SCRIPTS += grub_script_final_semicolon
|
|
|
|
grub_script_final_semicolon_SOURCES = tests/grub_script_final_semicolon.in
|
|
|
|
|
2010-04-13 15:28:12 +00:00
|
|
|
check_SCRIPTS += grub_script_dollar
|
|
|
|
grub_script_dollar_SOURCES = tests/grub_script_dollar.in
|
|
|
|
|
2010-01-12 04:46:17 +00:00
|
|
|
# List of tests to execute on "make check"
|
2010-01-22 13:37:27 +00:00
|
|
|
# SCRIPTED_TESTS = example_scripted_test
|
|
|
|
# SCRIPTED_TESTS += example_grub_script_test
|
|
|
|
# UNIT_TESTS = example_unit_test
|
|
|
|
# FUNCTIONAL_TESTS = example_functional_test.mod
|
|
|
|
|
|
|
|
SCRIPTED_TESTS = grub_script_echo1
|
|
|
|
SCRIPTED_TESTS += grub_script_echo_keywords
|
|
|
|
SCRIPTED_TESTS += grub_script_vars1
|
2010-01-23 05:33:41 +00:00
|
|
|
SCRIPTED_TESTS += grub_script_for1
|
2010-01-26 07:02:24 +00:00
|
|
|
SCRIPTED_TESTS += grub_script_while1
|
2010-04-09 17:02:58 +00:00
|
|
|
SCRIPTED_TESTS += grub_script_if
|
2010-03-22 08:24:45 +00:00
|
|
|
SCRIPTED_TESTS += grub_script_blanklines
|
2010-03-22 08:32:48 +00:00
|
|
|
SCRIPTED_TESTS += grub_script_final_semicolon
|
2010-04-13 15:28:12 +00:00
|
|
|
SCRIPTED_TESTS += grub_script_dollar
|
2010-01-12 10:19:40 +00:00
|
|
|
|
|
|
|
# dependencies between tests and testing-tools
|
|
|
|
$(SCRIPTED_TESTS): grub-shell grub-shell-tester
|
|
|
|
$(FUNCTIONAL_TESTS): functional_test.mod
|
|
|
|
|