forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-ci-tests.sh
executable file
·55 lines (46 loc) · 1.5 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
54
55
#!/usr/bin/env 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
./run tests/vk-regression/diverse-zk-program-run.ts --bundle
;;
"Reducer integration tests")
echo "Running reducer integration tests"
./run src/examples/zkapps/reducer/run.ts --bundle
;;
"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
;;
"Verification Key Regression Check 1")
echo "Running Regression checks part 1"
VK_TEST=1 ./run ./tests/vk-regression/vk-regression.ts --bundle
;;
"Verification Key Regression Check 2")
echo "Running Regression checks part 2"
VK_TEST=2 ./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