forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-ci-tests.sh
executable file
·43 lines (35 loc) · 1.39 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
#!/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 ;;
"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 ;;
"Berkeley Live" )
echo "Running Berkeley Live integration tests";
./run src/examples/zkapps/hello_world/run_berkeley.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 ./src/examples/vk_regression.ts --bundle ;;
* ) echo "ERROR: Invalid enviroment variable, not clear what tests to run! $CI_NODE_INDEX"; exit 1 ;;
esac