changeset 880:74b907f25564

Allow to run 'make test' in the toplevel directory
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Wed, 28 Feb 2024 14:06:11 +0100 (13 months ago)
parents 6e8ff2818fa7
children 4973317db1cc
files Makefile tests/build.xml
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,10 @@ jre17jars: src/main/java/org/monetdb/jdb
 	ant -f build_jre17.xml distjdbc
 	rm -rf build
 
+test: all
+	echo banana
+	cd tests; ant  -f build.xml test
+
 testsjar:
 	cd tests; ant -f build.xml jar_jdbctests
 
--- a/tests/build.xml
+++ b/tests/build.xml
@@ -123,6 +123,7 @@ Copyright 1997 - July 2008 CWI.
     <java classname="${test.class}" failonerror="true" fork="true">
       <classpath>
         <pathelement path="${builddir}" />
+        <pathelement path="." /> <!-- Needed for 'ant test' to find tests.md. -->
         <pathelement path="${jdbc_jar}" />
       </classpath>
       <arg value="${jdbc_url}" />