jehanne/qa/check
Giacomo Tesio 38aca7a581 first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
2016-11-26 03:49:29 +01:00

22 lines
327 B
Bash
Executable File

#!/cmd/rc
rfork
dir=$1
if(~ $dir '') dir=/qa
l = `{du -a /arch/$objtype/$dir|awk '{print $2}'|sort}
failed = ()
for(t in $l){
if(test -x $t) {
echo -n $t:
$t > /tmp/qa.log >[2=1]
st = $status
if(~ `{echo $st|field 3} PASS) { rm /tmp/qa.log && echo PASS }
if not { echo $st && cat /tmp/qa.log; exit $st}
}
}