next-jdbc/run-tests.sh

29 lines
776 B
Bash
Raw Normal View History

2020-09-12 03:50:45 +00:00
#!/bin/sh
# start databases with: docker-compose up
# then: ./run-tests.sh create
# - creates a new database in MySQL for running tests
#
# test against "all" databases with MySQL JDBC driver:
# ./run-tests.sh
#
# test against "all" databases with MariaDB JDBC driver:
# ./run-tests.sh maria
2020-09-12 03:50:45 +00:00
if test "$1" = "create"
then
2022-08-13 23:45:50 +00:00
sleep 30
2020-09-12 03:50:45 +00:00
# assumes you already have a MySQL instance running locally
NEXT_JDBC_TEST_MYSQL=yes clojure -X:test next.jdbc.test-fixtures/create-clojure-test
fi
2021-09-03 18:13:13 +00:00
if test "$1" = "maria"
then
NEXT_JDBC_TEST_MSSQL=yes MSSQL_SA_PASSWORD=Str0ngP4ssw0rd \
NEXT_JDBC_TEST_MYSQL=yes NEXT_JDBC_TEST_MARIADB=yes clojure -X:test
fi
2020-09-12 03:50:45 +00:00
if test "$1" = ""
then
NEXT_JDBC_TEST_MSSQL=yes MSSQL_SA_PASSWORD=Str0ngP4ssw0rd \
2021-06-17 04:03:57 +00:00
NEXT_JDBC_TEST_MYSQL=yes clojure -X:test
2020-09-12 03:50:45 +00:00
fi