forked from gongbell/ContractFuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·32 lines (30 loc) · 842 Bytes
/
run.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
#!/bin/sh
DIR=${PWD}
echo $#
if [ $# != 2 ]
then
echo "please check your command, parmeter number not valid!"
echo "example:"
echo " ./go.sh --contracts_dir <tested_contracts_dir>"
exit -1
fi
if [ ! -d $2 ]
then
echo "please check your command, '$2' not exists!"
echo "example:"
echo " ./go.sh --contracts_dir <tested_contracts_dir>"
exit -1
fi
CONTRACT_DIR=$(cd $2&&pwd)
export CONTRACT_DIR
echo "Testing contracts from " $CONTRACT_DIR
nohup ./geth_run.sh>>$CONTRACT_DIR/fuzzer/reporter/geth_run.log 2>&1 &
sleep 60
cd $DIR
nohup ./tester_run.sh>>$CONTRACT_DIR/fuzzer/reporter/tester_run.log 2>&1 &
sleep 300
cd $DIR
./fuzzer_run.sh>>$CONTRACT_DIR/fuzzer/reporter/fuzzer_run.log 2>&1
echo "Test finished!"
echo "v_v..."
echo "Please go to $CONTRACT_DIR/fuzzer/reporter to see the results."