case002.sh 399 字节
Newer Older
1 2
#!/bin/bash

3
echo "==== start run cases002.go"
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

set +e
#set -x

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

#execName=$0
#execName=`echo ${execName##*/}`
#goName=`echo ${execName%.*}`

###### step 3: start build
cd $script_dir
rm -f go.*
go mod init demotest > /dev/null 2>&1
go mod tidy > /dev/null 2>&1
go build  > /dev/null 2>&1
sleep 1s
./demotest -h $1 -p $2