Anonymous avatar Anonymous committed ae12b4a

Fix for make test - so it will return the right error code

Comments (0)

Files changed (2)

src/wml_test/CMakeLists.txt

 ADD_CUSTOM_TARGET(
     "test"
-    COMMAND "make" "-f" "test.mak"
+    "make" "-f" "test.mak" "test"
         "PATH_PERL=${PERL_EXECUTABLE}"
         "prefix=${CMAKE_INSTALL_PREFIX}"
         "srcdir=${CMAKE_CURRENT_SOURCE_DIR}"
         "top_srcdir=${CMAKE_SOURCE_DIR}"
+    VERBATIM
 )
 
 ADD_DEPENDENCIES(

src/wml_test/test.mak

 	    $(PATH_PERL) -n -e 's/^.*$$/./s; print STDERR $$_; $$i++; print STDERR "\n" if ($$i % 60 == 0);'; \
 	    echo ''; \
 	else :; \
-	fi; \
-	echo "Running WML Test Suite (still incomplete):"; \
+	fi
+	echo "Running WML Test Suite (still incomplete):"
 	WML="$$root/bin/wml -q -W1,-N"; export WML; \
 	LANG=C; LC_ALL=C; export LANG LC_ALL; \
-	$(PATH_PERL) TEST
+	prove t/*.t ; \
+	exit $$?
 
 clean:
 	-rm -rf TEST.root tmp.*.cmd 2>/dev/null
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.