-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy pathrun-ci-tests.sh
More file actions
executable file
·70 lines (60 loc) · 2.05 KB
/
Copy pathrun-ci-tests.sh
File metadata and controls
executable file
·70 lines (60 loc) · 2.05 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
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/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 src/tests/inductive-proofs-internal.ts --bundle
./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 tests/commonjs-worker-regression.cjs
node src/examples/commonjs.cjs
;;
"Cache Regression")
echo "Cache Regression"
./scripts/tests/check-cache-regressions.sh
;;
"Performance Regression")
echo "Running Performance Regression Check"
PERF_MODE="${PERF_MODE:---check}"
BACKEND="${O1JS_BACKEND:-wasm}"
BASELINE_FILE="./tests/perf-regression/perf-regression-${BACKEND}.json"
echo "Backend: ${BACKEND}, baseline: ${BASELINE_FILE}"
./tests/perf-regression/perf-regression.sh "$PERF_MODE" --file "$BASELINE_FILE"
;;
*)
echo "ERROR: Invalid environment variable, not clear what tests to run! $CI_NODE_INDEX"
exit 1
;;
esac