[Groonga-commit] pgroonga/pgroonga at a13c8ba [master] test: ensure creating expected file before running new test

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Sep 23 19:07:02 JST 2015


Kouhei Sutou	2015-09-23 19:07:02 +0900 (Wed, 23 Sep 2015)

  New Revision: a13c8bae9ade0e5fa6caf2bf8bfb39423c6aaaee
  https://github.com/pgroonga/pgroonga/commit/a13c8bae9ade0e5fa6caf2bf8bfb39423c6aaaee

  Message:
    test: ensure creating expected file before running new test

  Modified files:
    Makefile

  Modified: Makefile (+11 -3)
===================================================================
--- Makefile    2015-09-23 19:00:01 +0900 (6d7358b)
+++ Makefile    2015-09-23 19:07:02 +0900 (222dd84)
@@ -24,9 +24,17 @@ all: pgroonga--$(EXTENSION_VERSION).sql
 pgroonga--$(EXTENSION_VERSION).sql: pgroonga.sql
 	@cp $< $@
 
-RESULT_DIRS = $(shell find sql -type d | sed -e 's,^sql/,results/,')
+RESULT_DIRS = $(shell find sql/* -type d | sed -e 's,^sql/,results/,')
+EXPECTED_DIRS = $(shell find sql/* -type d | sed -e 's,^sql/,expected/,')
+EXPECTED_FILES =				\
+	$(shell find sql -name '*.sql' |	\
+		sed -e 's,^sql/,expected/,'	\
+		    -e 's,sql$$,out,')
 
-installcheck: $(RESULT_DIRS)
+installcheck: $(RESULT_DIRS) $(EXPECTED_DIRS) $(EXPECTED_FILES)
 
-$(RESULT_DIRS):
+$(RESULT_DIRS) $(EXPECTED_DIRS):
 	@mkdir -p $@
+
+$(EXPECTED_FILES):
+	@touch $@
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index