2016-11-25 17:18:40 +01:00
|
|
|
#!/cmd/rc
|
|
|
|
|
|
|
|
rfork
|
|
|
|
|
|
|
|
dir=$1
|
|
|
|
if(~ $dir '') dir=/qa
|
|
|
|
|
|
|
|
|
|
|
|
l = `{du -a /arch/$objtype/$dir|awk '{print $2}'|sort}
|
|
|
|
|
|
|
|
failed = ()
|
2017-04-24 00:06:33 +02:00
|
|
|
ce=.check
|
2016-11-25 17:18:40 +01:00
|
|
|
|
|
|
|
for(t in $l){
|
|
|
|
if(test -x $t) {
|
|
|
|
echo -n $t:
|
|
|
|
$t > /tmp/qa.log >[2=1]
|
|
|
|
st = $status
|
2017-04-24 00:06:33 +02:00
|
|
|
if(~ `{echo $st|field 3} PASS) {
|
|
|
|
if( test -x $t$ce ) { cp /tmp/qa.log /tmp/qa.previous.log }
|
|
|
|
rm /tmp/qa.log && echo PASS
|
|
|
|
}
|
2016-11-25 17:18:40 +01:00
|
|
|
if not { echo $st && cat /tmp/qa.log; exit $st}
|
|
|
|
}
|
|
|
|
}
|