- 论坛徽章:
- 0
|
test.sh
#!/bin/bash
cd ../out-test
echo $(date '+test on %x : %X')>readme.txt
ar cr out.$(date '+%y%m%d:%k%M').a out.* readme.txt
cd ../err-test
echo $(date '+test on %x : %X')>readme.txt
ar cr err.$(date '+%y%m%d:%k%M').a err.* readme.txt
cd ../err-test
echo "in $(pwd) to remove err.*"
rm -f err.*
cd ../out-test
echo "in $(pwd) to remove out.*"
rm -f out.*
cd ../data-test
echo "in $(pwd) to begin the test"
for exe in *
do
te="test.sh"
if test -x "$exe" -a ! -d "$exe"
then
if [[ "$exe" != $te ]]
then
then
bsub -q oneday -n 8 -o /home/users/out/zyq/wangxq/out-test/out.$exe -e
/home/users/out/zyq/wangxq/err-test/err.$exe mpijob mpirun $exe
fi
fi
done
isfail.sh
#!/bin/bash
rm -f failresult
cd out-test
count=0
for file in out.*
do
echo "$file">>../failresult
echo $(tail $file -n 11|head -n 1)>>../failresult
echo "">>../failresult
count=$(($count+1))
done
echo "$count tests finished"
echo "read output file OK,you can find the result in file named \"failresult\""
bswitch.sh
#!/bin/bashloop="$1"while [ $loop -lt $2 ]doecho "$loop"loop=$(($loop +1))bswitch "$3" "$loop"done
copy.sh
#!/bin/bash
cd TESTING
count=0
for exe in *
do
if test -x "$exe" -a ! -d "$exe"
then
if [[ "$exe" != *pblas* ]]
then if [[ "$exe" != *gemr* ]]
then if [[ "$exe" != *trmr* ]]
#then if test -d "$exe"
then
count=$(($count + 1))
echo "$exe"
zip exe.zip $exe
fi
fi
fi
fi
done
echo "$count"
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/24401/showart_177929.html |
|