10 for testscreen
in tests
/[^g
]*; do
11 NUM
="$(basename "$
(echo $testscreen | cut
-d'.' -f1)")"
12 OUT
="$(./main "$testscreen" 2>&1| grep -Po "(?
<=Satcount
: )\d
+(?
=\.
)")"
13 .
/main
"$testscreen" 2>&1
14 if [ "$NUM" -ne "$OUT" ]; then
15 echo "$testscreen failed, expected: $NUM, got: $OUT."
16 echo "'$(cat "$testscreen")'"
22 echo "$((TOTAL-PASSED))/$TOTAL failed"