collect_cases.sh 352 字节
Newer Older
T
tangfangzhi 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash

case_file=/tmp/cases.task

if [ ! -z $1 ]; then
    case_file="$1"
fi

script_dir=`dirname $0`
cd $script_dir

echo ",,unit-test,bash test.sh" >$case_file
cat ../script/jenkins/basic.txt |grep -v "^#"|grep -v "^$"|sed "s/^/,,script,/" >>$case_file
grep "^python" ../system-test/fulltest.sh |sed "s/^/,,system-test,/" >>$case_file

exit 0