#!/bin/rcrfork ncd ..bind -b build /binok=()ko=()for(t in tests/test.*){ if(test -x $"t){ if(err=`{$t}){ ok=($ok "") } if not { echo $err; ko=($ko "") } }}if(test $#ko -gt 0){ echo $#ko tests failed - $#ok passed; exit $#ko;}if not { echo $#ok tests passed}
#!/bin/rc
rfork n
cd ..
bind -b build /bin
ok=()
ko=()
for(t in tests/test.*){
if(test -x $"t){
if(err=`{$t}){
ok=($ok "")
}
if not {
echo $err;
ko=($ko "")
}
}
}
if(test $#ko -gt 0){
echo $#ko tests failed - $#ok passed;
exit $#ko;
}
if not {
echo $#ok tests passed
}