Skip to content

Commit

Permalink
Add a new target `cli' to easily invoke the command-line tool.
Browse files Browse the repository at this point in the history
This tool used to be invoked by the `check' target, which is
now reserved for real unit tests.

Sample usage:
  $ make cli ARGS='localhost get table key family qual1 qual2'

Change-Id: I146498a9593dc3a69527aa1041d967143865a439
  • Loading branch information
tsuna committed Sep 26, 2011
1 parent a07f7cc commit 69698c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -119,6 +119,9 @@ $(UNITTESTS): $(jar) $(unittest_SRC) $(test_LIBADD)
classes_with_nested_classes := $(classes:$(top_builddir)/%.class=%*.class)
test_classes_with_nested_classes := $(UNITTESTS:.class=*.class)

cli: $(test_classes)
$(JAVA) -ea -esa $(JVM_ARGS) -cp "$(get_runtime_dep_classpath):$(top_builddir)" Test $(ARGS)

# Little set script to make a pretty-ish banner.
BANNER := sed 's/^.*/ & /;h;s/./=/g;p;x;p;x'
check: $(UNITTESTS)
Expand Down Expand Up @@ -181,4 +184,4 @@ distclean: clean
rm -rf $(top_builddir)/api
test ! -d $(top_builddir) || rmdir $(top_builddir)

.PHONY: all jar clean distclean doc check
.PHONY: all jar clean cli distclean doc check

0 comments on commit 69698c4

Please sign in to comment.