You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/11/12 00:07:27 UTC

[15/50] couchdb commit: updated refs/heads/2876-js-tests to bd19653

Add targets to list possible tests candidates


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d4ac4c42
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d4ac4c42
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d4ac4c42

Branch: refs/heads/2876-js-tests
Commit: d4ac4c42efcf225dfd6686954e9973d6f6072f30
Parents: de72658
Author: Alexander Shorin <kx...@apache.org>
Authored: Sat Oct 17 20:50:44 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Sat Oct 17 20:50:44 2015 +0300

----------------------------------------------------------------------
 Makefile | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d4ac4c42/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index bf24ed4..3387232 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ help:
 	@egrep "^# target: " Makefile \
 		| sed -e 's/^# target: //g' \
 		| sort \
-		| awk '{printf("    %-15s", $$1); $$1=$$2=""; print "-" $$0}'
+		| awk '{printf("    %-20s", $$1); $$1=$$2=""; print "-" $$0}'
 
 
 ################################################################################
@@ -106,6 +106,30 @@ javascript: all share/www/script/test
 	@dev/run -q --with-admin-party-please test/javascript/run $(suites)
 
 
+.PHONY: list-eunit-apps
+# target: list-eunit-apps - List EUnit target apps
+list-eunit-apps:
+	@find ./src/ -type f -name *_test.erl -o -name *_tests.erl \
+		| cut -d '/' -f 3 \
+		| sort -u
+
+
+.PHONY: list-eunit-suites
+# target: list-eunit-suites - List EUnit target test suites
+list-eunit-suites:
+	@find ./src/ -type f -name *_test.erl -o -name *_tests.erl -printf "%f\n" \
+		| cut -d '.' -f -1 \
+		| sort
+
+
+.PHONY: list-js-suites
+# target: list-js-suites - List JavaScript test suites
+list-js-suites:
+	@find ./test/javascript/tests/ -type f -name *.js -printf "%f\n" \
+		| cut -d '.' -f -1 \
+		| sort
+
+
 .PHONY: build-test
 # target: build-test - Test build script
 build-test: