Making static tests is faster
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 3 Apr 2010 04:34:33 +0000 (21:34 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:39 +0000 (17:35 -0700)
By disabling the automatic disassembly of the test binaries.  Each one
was about 6.4MB of ASCII.

tests/Makefrag

index f3c490c..cd04fa1 100644 (file)
@@ -19,11 +19,13 @@ TESTS_EXECS  := $(patsubst $(TESTS_DIR)/%.c, \
 TESTS_LDDEPENDS := $(TESTS_DIR)/%.c \
                    $(OBJDIR)/$(USER_PARLIB_DIR)/libparlib.a
 
+STATIC := $(findstring static,$(TESTS_CFLAGS))
 $(OBJDIR)/$(TESTS_DIR)/%: $(TESTS_LDDEPENDS)
        @echo + cc [TESTS] $<
        @mkdir -p $(@D)
        $(V)$(CC) $(TESTS_CFLAGS) -o $@ $(TESTS_LDFLAGS) \
                  $(TESTS_LDDIRS) $< $(TESTS_LDLIBS)
-       $(V)$(OBJDUMP) -S $@ > $@.asm
-       $(V)$(NM) -n $@ > $@.sym
-
+       @if [ "$(STATIC)" != "static" ]; then \
+               $(OBJDUMP) -S $@ > $@.asm; \
+               $(NM) -n $@ > $@.sym; \
+       fi