svn commit: trunk/uClibc/test
vapier at uclibc.org
vapier at uclibc.org
Wed Mar 1 01:36:42 UTC 2006
Author: vapier
Date: 2006-02-28 17:36:39 -0800 (Tue, 28 Feb 2006)
New Revision: 14378
Log:
add support for shell script tests
Modified:
trunk/uClibc/test/Test.mak
Changeset:
Modified: trunk/uClibc/test/Test.mak
===================================================================
--- trunk/uClibc/test/Test.mak 2006-03-01 01:08:35 UTC (rev 14377)
+++ trunk/uClibc/test/Test.mak 2006-03-01 01:36:39 UTC (rev 14378)
@@ -10,6 +10,9 @@
ifneq ($(TESTS_DISABLED),)
TESTS := $(filter-out $(TESTS_DISABLED),$(TESTS))
endif
+ifeq ($(SHELL_TESTS),)
+SHELL_TESTS := $(patsubst %.sh,shell_%,$(wildcard *.sh))
+endif
ifneq ($(filter-out test,$(TESTS)),$(TESTS))
$(error Sanity check: cannot have a test named "test.c")
@@ -22,7 +25,7 @@
U_TARGETS += $(U_TESTS)
G_TARGETS += $(G_TESTS)
-TARGETS =
+TARGETS := $(SHELL_TESTS)
ifeq ($(GLIBC_ONLY),)
TARGETS += $(U_TARGETS)
endif
@@ -32,10 +35,6 @@
CLEAN_TARGETS := $(U_TARGETS) $(G_TARGETS)
test check all: $(TARGETS)
-# dummy rule to prevent the "Nothing to be done for `all'." message
-ifeq ($(Q),@)
- @true
-endif
$(TARGETS): Makefile $(TESTDIR)Makefile $(TESTDIR)Rules.mak $(TESTDIR)Test.mak
$(U_TARGETS): $(patsubst %,%.c,$(U_TARGETS))
@@ -91,6 +90,10 @@
$(uclibc_glibc_diff_test)
endif
+shell_%:
+ $(showtest)
+ $(Q)$(SHELL) $(patsubst shell_%,%.sh,$@)
+
%.so: %.c
$(showlink)
$(Q)$(CC) \
@@ -101,3 +104,5 @@
clean:
$(showclean)
$(Q)$(RM) *.a *.o *.so *~ core *.out $(CLEAN_TARGETS) $(EXTRA_CLEAN)
+
+.PHONY: all check clean test
More information about the uClibc-cvs
mailing list