ref: c6ad0cd513bc5c0a7875553227f262fa46d02831
parent: c86bb93d297709dc0c749fd45f305c9fff5db5e0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Sep 16 03:07:03 EDT 2018
[tests/libc] Improve output format
--- a/tests/libc/execute/chktest.sh
+++ b/tests/libc/execute/chktest.sh
@@ -9,6 +9,7 @@
while read i state
do
+ state=${state:-"\t"}
rm -f a.out *.o $tmp1 $tmp2
(echo $i
@@ -17,5 +18,5 @@
./a.out > $tmp2
diff -u $tmp1 $tmp2) >> test.log 2>&1 &&
printf '[PASS]' || printf '[FAIL]'
- printf '%s: %s\n' "$state" "$i"
+ printf "$state\t%s\n" $i
done < $file