4
grub-shell: tests/util/grub-shell.in config.status
5
./config.status --file=$@:$<
7
check_SCRIPTS += grub-shell
8
CLEANFILES += grub-shell
10
# For grub-shell-tester
11
grub-shell-tester: tests/util/grub-shell-tester.in config.status
12
./config.status --file=$@:$<
14
check_SCRIPTS += grub-shell-tester
15
CLEANFILES += grub-shell-tester
17
pkglib_MODULES += functional_test.mod
18
functional_test_mod_SOURCES = tests/lib/functional_test.c tests/lib/test.c
19
functional_test_mod_CFLAGS = $(COMMON_CFLAGS)
20
functional_test_mod_LDFLAGS = $(COMMON_LDFLAGS)
22
# Rules for unit tests
23
check_UTILITIES += example_unit_test
24
example_unit_test_SOURCES = tests/example_unit_test.c kern/list.c kern/misc.c tests/lib/test.c tests/lib/unit_test.c
25
example_unit_test_CFLAGS = -Wno-format
27
# Rules for functional tests
28
pkglib_MODULES += example_functional_test.mod
29
example_functional_test_mod_SOURCES = tests/example_functional_test.c
30
example_functional_test_mod_CFLAGS = -Wno-format $(COMMON_CFLAGS)
31
example_functional_test_mod_LDFLAGS = $(COMMON_LDFLAGS)
33
# Rules for scripted tests
34
check_SCRIPTS += example_scripted_test
35
example_scripted_test_SOURCES = tests/example_scripted_test.in
37
check_SCRIPTS += example_grub_script_test
38
example_grub_script_test_SOURCES = tests/example_grub_script_test.in
41
# List of tests to execute on "make check"
42
SCRIPTED_TESTS = example_scripted_test
43
SCRIPTED_TESTS += example_grub_script_test
44
UNIT_TESTS = example_unit_test
45
FUNCTIONAL_TESTS = example_functional_test.mod
47
# dependencies between tests and testing-tools
48
$(SCRIPTED_TESTS): grub-shell grub-shell-tester
49
$(FUNCTIONAL_TESTS): functional_test.mod