-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathrun-tests
executable file
·24 lines (20 loc) · 1000 Bytes
/
run-tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
PATH="$PWD/.fvm/flutter_sdk/bin:$PATH"
set -e
rm -rf tmp/tests
mkdir -p tmp/tests/src/cljd
cat > tmp/tests/deps.edn <<EOF
{:paths ["src"] ; where your cljd files are
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
tensegritics/clojuredart
{:local/root "../../"}}
:cljd/opts {:main cljd.run-tests
:kind :dart}}
EOF
cd tmp/tests
clojure -M -m cljd.build init
dart pub add -d test || true
clojure -M -m cljd.build compile cljd.test-clojure.core-test-cljd cljd.test-clojure.string cljd.test-clojure.core-test cljd.test-clojure.for cljd.test-clojure.clojure-zip cljd.test-clojure.clojure-set cljd.test-clojure.clojure-walk cljd.test-clojure.other-functions cljd.test-clojure.test-test cljd.test-reader.reader-test cljd.test-clojure.primitives-test cljd.test-clojure.data cljd.test-clojure.parse
# --enable-experiment=records is there for making tests pass even on dart2
# on dart3 it should be a no op.
dart --enable-experiment=records test -p vm