Changeset: eeb3a57a0ef4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/eeb3a57a0ef4
Added Files:
sql/jdbc/tests/Tests/OnClientTester.SQL.py
Modified Files:
sql/jdbc/tests/Tests/All
Branch: Jul2021
Log Message:
Add a separate test invocation for OnClientTester.
diffs (36 lines):
diff --git a/sql/jdbc/tests/Tests/All b/sql/jdbc/tests/Tests/All
--- a/sql/jdbc/tests/Tests/All
+++ b/sql/jdbc/tests/Tests/All
@@ -1,4 +1,5 @@
HAVE_JDBCTESTS&KNOWNFAIL?JDBC_API_Tester
+HAVE_JDBCTESTS?OnClientTester
HAVE_JDBCCLIENT_JAR?Test_JdbcClient
# next test should be done AFTER all the other tests have completed
HAVE_JDBCCLIENT_JAR?ValidateSystemCatalogTables
diff --git a/sql/jdbc/tests/Tests/OnClientTester.SQL.py
b/sql/jdbc/tests/Tests/OnClientTester.SQL.py
new file mode 100644
--- /dev/null
+++ b/sql/jdbc/tests/Tests/OnClientTester.SQL.py
@@ -0,0 +1,22 @@
+import os, sys
+from subprocess import run, PIPE, CalledProcessError
+
+HOST=os.getenv('HOST')
+MAPIPORT=os.getenv('MAPIPORT')
+TSTDB=os.getenv('TSTDB')
+TSTSRCBASE=os.getenv('TSTSRCBASE')
+TSTDIR=os.getenv('TSTDIR')
+USER='monetdb'
+PASSWORD='monetdb'
+JDBC_EXTRA_ARGS=os.getenv('JDBC_EXTRA_ARGS', default='')
+
+URL=f"jdbc:monetdb://{HOST}:{MAPIPORT}/{TSTDB}?user={USER}&password={PASSWORD}{JDBC_EXTRA_ARGS}"
+
+cmd = ['java', 'OnClientTester', URL]
+try:
+ p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8')
+ sys.stderr.write(p.stdout)
+ sys.stderr.write(p.stderr)
+except CalledProcessError as e:
+ raise SystemExit(e.stderr)
+
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]