OSDN Git Service

Add CHECK_ONLY option to allow for running the tests on the target instead of attempt...
author"Steven J. Hill" <sjhill@realitydiluted.com>
Sat, 18 Nov 2006 15:04:54 +0000 (15:04 -0000)
committer"Steven J. Hill" <sjhill@realitydiluted.com>
Sat, 18 Nov 2006 15:04:54 +0000 (15:04 -0000)
test/README
test/Test.mak

index 18d34e8..4704b57 100644 (file)
@@ -6,6 +6,7 @@ The following make variables may help you in testing:
  - UCLIBC_ONLY  - only run tests against uClibc
  - GLIBC_ONLY   - only run tests against glibc
  - COMPILE_ONLY - just build the tests, don't run them
+ - CHECK_ONLY - only run the tests, don't compile or link them
  - V / VERBOSE  - run tests with a lot of output
 
 So, to just run the uClibc tests, try this:
index 687366b..6477e26 100644 (file)
@@ -72,9 +72,11 @@ define exec_test
 endef
 
 $(U_TARGETS):
+ifeq ($(CHECK_ONLY),)
        $(showlink)
        $(Q)$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -c $@.c -o $@.o
        $(Q)$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LDFLAGS) $(LDFLAGS_$@)
+endif
 ifeq ($(COMPILE_ONLY),)
        $(exec_test)
        $(diff_test)