# HG changeset patch
# User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
# Date 1709125571 -3600
# Node ID 74b907f255642ece289d602a4afee2368863e375
# Parent  6e8ff2818fa71c48da96595fa42df18cdbeb5c10
Allow to run 'make test' in the toplevel directory

diff --git a/Makefile b/Makefile
--- 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
 
diff --git a/tests/build.xml b/tests/build.xml
--- 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}" />