From 69698c46d3153028c8de94d5b9d19431f219c9c6 Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Sun, 25 Sep 2011 21:35:04 -0700 Subject: [PATCH] Add a new target `cli' to easily invoke the command-line tool. 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 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa87b907..77d309ff 100644 --- a/Makefile +++ b/Makefile @@ -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) @@ -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