parent
e711f3090f
commit
d88edb24db
3 changed files with 31 additions and 3 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@ |
||||
#!/bin/bash |
||||
|
||||
if [ "Linux" != "$(uname -s)" ];then |
||||
echo "only support Linux" |
||||
exit -1 |
||||
fi |
||||
|
||||
set -o errexit |
||||
|
||||
# run unit test |
||||
curPath=$(cd "$(dirname "$0")"; pwd) |
||||
export GOPATH=$curPath/.. |
||||
cd $curPath/../src/redis-shake |
||||
go test -tags integration ./... |
||||
if [ $? -ne 0 ]; then |
||||
echo "run ut failed" |
||||
else |
||||
echo "run ut successfully" |
||||
fi |
||||
|
||||
# run integration test |
||||
cd $curPath |
||||
|
Loading…
Reference in new issue