case001.sh 336 字节
Newer Older
H
Hui Li 已提交
1 2
#!/bin/bash

H
Hui Li 已提交
3
echo "==== start run cases001.go"
H
Hui Li 已提交
4 5 6 7 8 9 10

set +e
#set -x

script_dir="$(dirname $(readlink -f $0))"
#echo "pwd: $script_dir, para0: $0"

H
Hui Li 已提交
11 12 13
#execName=$0
#execName=`echo ${execName##*/}`
#goName=`echo ${execName%.*}`
H
Hui Li 已提交
14 15 16 17

###### step 3: start build
cd $script_dir
rm -f go.*
H
Hui Li 已提交
18
go mod init demotest
H
Hui Li 已提交
19
go build 
H
Hui Li 已提交
20 21
sleep 1s
./demotest -h $1 -p $2