mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 11:45:05 +01:00
fix argv handling
This commit is contained in:
parent
21d3f12572
commit
613482b8c4
7 changed files with 28 additions and 5 deletions
|
|
@ -21,13 +21,18 @@ for test in tests/c/*; do
|
|||
exit 1
|
||||
fi
|
||||
|
||||
printf "test $name "
|
||||
|
||||
OUTPUT=$("$test_dir/$name")
|
||||
code="$?"
|
||||
if [ "$code" -ne "0" ]; then
|
||||
echo -e "\e[31mFAIL\e[0m"
|
||||
echo "error: test failed with code $code: $test, running $test_dir/$name"
|
||||
echo "------ output:"
|
||||
echo "$OUTPUT"
|
||||
echo "-----"
|
||||
else
|
||||
echo -e "\e[32mPASS\e[0m"
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue