-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_unit_tests.sh
executable file
·54 lines (46 loc) · 1.14 KB
/
run_unit_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
#!/usr/bin/env bash
set -e
set -x
declare -i RESULT=0
# There's a good chance that strato-getting-started is also running, so
# we change redis's port to avoid a conflict.
REDIS=$(docker run -d -p 2023:6379 redis:3.2 redis-server --appendonly yes)
trap "docker rm -f ${REDIS}" EXIT
cd strato
stack test $5\
blockapps-data \
blockapps-init \
blockapps-mpdbs \
blockapps-vault-proxy-server \
bloc2api \
common-log \
cross-monitoring \
debugger \
ethereum-discovery \
ethereum-encryption \
ethereum-rlp \
fast-keccak256 \
format \
labeled-error \
merkle-patricia-db \
seqevents \
slipstream \
solid-vm \
solid-vm-model \
solid-vm-parser \
source-tools \
strato-index \
strato-genesis \
strato-model \
strato-redis-blockdb \
strato-sequencer \
vm-runner
# strato-lite \
stack test \
highway/ --test-arguments="--awsaccesskeyid $1 --awssecretaccesskey $2 --awss3bucket $3 --highwayUrl $4"
if [ $5 = --coverage ]
then
rm -rf hpc
mkdir hpc
cp -r $(stack path --local-hpc-root) .
fi