Skip to content

Commit

Permalink
test: Add QUIET_TEST logic not to print cmdline
Browse files Browse the repository at this point in the history
Like in other places.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
  • Loading branch information
namhyung committed Dec 9, 2018
1 parent 7316f0c commit b522f32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile.include
Expand Up @@ -10,6 +10,7 @@ ifneq ($(findstring $(MAKEFLAGS),s),s)
QUIET_GEN = @echo ' GEN '$(patsubst $(objdir)/%,%,$@);
QUIET_FLEX = @echo ' FLEX '$@;
QUIET_BISON = @echo ' BISON '$@;
QUIET_TEST = @echo ' TEST '$@;

QUIET_CLEAN = @printf ' CLEAN %s\n' $1;
QUIET_INSTALL = @printf ' INSTALL %s\n' $1;
Expand Down
8 changes: 4 additions & 4 deletions tests/Makefile
Expand Up @@ -24,14 +24,14 @@ include $(srcdir)/Makefile.include
test: test_all

test_all: unittest
./unittest $(TESTARG)
./runtest.py $(WORKER) $(TESTARG)
$(QUIET_TEST)./unittest $(TESTARG)
$(QUIET_TEST)./runtest.py $(WORKER) $(TESTARG)

test_run:
./runtest.py $(WORKER) $(TESTARG)
$(QUIET_TEST)./runtest.py $(WORKER) $(TESTARG)

test_unit: unittest
./unittest $(TESTARG)
$(QUIET_TEST)./unittest $(TESTARG)

unittest: unittest.c unittest.h $(UNIT_TEST_OBJ)
$(QUIET_LINK)$(CC) -o $@ $(TEST_CFLAGS) $< $(UNIT_TEST_OBJ) $(TEST_LDFLAGS)
Expand Down

0 comments on commit b522f32

Please sign in to comment.