grub/conf/tests.rmk

42 lines
1.3 KiB
Text
Raw Normal View History

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-08 11:05:32 +00:00
test_framework_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-08 11:05:32 +00:00
test_framework_SCRIPTS += grub-shell-tester
2010-01-08 09:49:10 +00:00
CLEANFILES += grub-shell-tester
2010-01-08 11:05:32 +00:00
test_framework_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)
# Unit tests
2010-01-08 11:05:32 +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
# Functional tests
2010-01-08 11:05:32 +00:00
check_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)
# Scripted tests
2010-01-08 11:05:32 +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-08 11:05:32 +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