-
Notifications
You must be signed in to change notification settings - Fork 595
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·43 lines (38 loc) · 945 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·43 lines (38 loc) · 945 Bytes
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
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source_bootstrap
cmd=${1:-}
[ -n "$cmd" ] && shift
export hash=$(cache_content_hash .rebuild_patterns)
# Print every individual test command. Can be fed into gnu parallel.
# Paths are relative to repo root.
# We append the hash as a comment. This ensures the test harness and cache and skip future runs.
function test_cmds {
if [ $(arch) == "amd64" ]; then
echo -e "$hash barretenberg/bbup/run_test.sh 0.72.1"
fi
echo -e "$hash barretenberg/bbup/run_test.sh 0.77.1"
}
# This is not called in ci. It is just for a developer to run the tests.
function test {
echo_header "bbup test"
test_cmds | filter_test_cmds | parallelise
}
case "$cmd" in
"clean")
git clean -fdx
;;
""|"fast"|"full"|"bench")
;;
"ci")
test
;;
"hash")
echo $hash
;;
test|test_cmds)
$cmd "$@"
;;
*)
echo "Unknown command: $cmd"
exit 1
esac