-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy pathtest_cljd.sh
More file actions
executable file
·24 lines (22 loc) · 1.76 KB
/
test_cljd.sh
File metadata and controls
executable file
·24 lines (22 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -o errexit -o nounset -o pipefail
cd "`dirname $0`/.."
PATH="$PWD/.fvm/flutter_sdk/bin:$PATH"
rm -rf tmp/cljdtests
mkdir -p tmp/cljdtests/src/cljd
cat > tmp/cljdtests/deps.edn <<EOF
{:paths ["src" "../../test"] ; where your cljd files are
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
tensegritics/clojuredart {:git/url "https://github.com/tensegritics/ClojureDart.git"
:sha "c56e2dc1bef1841a7ce58ce2546946dd0be414e1"}
io.github.wevre/transit-cljd {:git/tag "v0.8.36"
:git/sha "d9541d0"}
datascript/datascript {:local/root "../../"}}
:cljd/opts {:main acme.unused
:kind :dart}}
EOF
cd tmp/cljdtests
clojure -M -m cljd.build init
dart pub add -d test || true
clojure -A:cljd-dev -M -m cljd.build compile datascript.test.serialize datascript.test.core datascript.test.db datascript.test.conn datascript.test.index datascript.test.query datascript.test.transact datascript.test.entity datascript.test.filter datascript.test.ident datascript.test.tuples datascript.test.components datascript.test.components datascript.test.pull-api datascript.test.explode datascript.test.lookup-refs datascript.test.lru datascript.test.parser datascript.test.parser-find datascript.test.parser-rules datascript.test.parser-return-map datascript.test.parser-where datascript.test.pull-parser datascript.test.query-aggregates datascript.test.query-find-specs datascript.test.query-fns datascript.test.query-not datascript.test.query-or datascript.test.query-pull datascript.test.query-return-map datascript.test.query-rules datascript.test.validation datascript.test.issues datascript.test.listen datascript.test.upsert datascript.test.parser-query datascript.test.query-v3
dart test -p vm