免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 749 | 回复: 0
打印 上一主题 下一主题

scalapack tests [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-28 14:34 |只看该作者 |倒序浏览

               
                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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP