forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run-ci-tests.sh
executable file
·53 lines (45 loc) · 1.27 KB
/
run-ci-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
case $TEST_TYPE in
"Simple integration tests")
echo "Running basic integration tests"
./run src/examples/zkapps/hello-world/run.ts --bundle
./run src/examples/simple-zkapp.ts --bundle
./run src/examples/zkapps/reducer/reducer-composite.ts --bundle
./run src/examples/zkapps/composability.ts --bundle
./run src/tests/fake-proof.ts
;;
"Voting integration tests")
echo "Running voting integration tests"
./run src/examples/zkapps/voting/run.ts --bundle
;;
"DEX integration tests")
echo "Running DEX integration tests"
./run src/examples/zkapps/dex/run.ts --bundle
./run src/examples/zkapps/dex/upgradability.ts --bundle
;;
"DEX integration test with proofs")
echo "Running DEX integration test with proofs"
./run src/examples/zkapps/dex/happy-path-with-proofs.ts --bundle
;;
"Unit tests")
echo "Running unit tests"
cd src/mina-signer
npm run build
cd ../..
npm run test:unit
npm run test
;;
"Verification Key Regression Check")
echo "Running Regression checks"
./run ./tests/vk-regression/vk-regression.ts --bundle
;;
"CommonJS test")
echo "Testing CommonJS version"
node src/examples/commonjs.cjs
;;
*)
echo "ERROR: Invalid environment variable, not clear what tests to run! $CI_NODE_INDEX"
exit 1
;;
esac