2 include $(topdir
)/Makefile.top
4 all_test_NAMES
= list version
5 all_test_SOURCES
= $(addprefix test-
,$(addsuffix .c
,$(all_test_NAMES
)))
7 all_TESTS
= $(addsuffix .
test, $(all_test_NAMES
))
8 run_TESTS ?
= $(all_TESTS
)
15 $(MKDEPS
) $(CC
) '$(CFLAGS)' '$(all_test_SOURCES)'
18 $(call wrap_LD
,$@
,$<,$(CFLAGS
) -L
$(topdir
)/src
-leruntime
)
23 export LD_LIBRARY_PATH
='$(topdir)/src'; \
24 for
test in
$$list; do \
25 unit
=$$(echo
$$test |sed s
/.
test$$//); \
26 echo
-e
"\\n=== Testing unit: $$unit\\n"; \
27 if
$$PWD/$$test; then \
32 echo
-ne
"\\nUnit $$unit $$s\\n"; \
39 -include Makefile.deps
41 # vim: ts=8 sw=8 noet fdm=marker tw=80