Skip to content

Commit

Permalink
make check: print which tests are running.
Browse files Browse the repository at this point in the history
Change-Id: I471e9a5cc9cd20ab97b370f2822a744ee15ecb22
  • Loading branch information
tsuna committed Mar 16, 2011
1 parent 0cffb47 commit 89d64f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,14 @@ printcp:
classes_with_nested_classes = $(classes:$(top_builddir)/%.class=%*.class)
test_classes_with_nested_classes = $(test_classes:$(top_builddir)/%.class=%*.class)

# Little set script to make a pretty-ish banner.
BANNER = sed 's/^.*/ & /;h;s/./=/g;p;x;p;x'
check: $(TESTS)
classes=`cd $(top_builddir) && echo $(test_classes_with_nested_classes)` && \
success=: && cp="$(get_runtime_dep_classpath):$(top_builddir)" && \
for i in $$classes; do \
case $$i in (*[$$]*) continue;; esac; \
echo "Running tests for `basename $$i .class`" | $(BANNER); \
java -ea $(JVM_ARGS) -cp "$$cp" org.junit.runner.JUnitCore `echo $${i%.class} | tr / .` $(ARGS) || success=false; \
done && $$success

Expand Down

0 comments on commit 89d64f9

Please sign in to comment.