[LTP] [PATCH 4/9] metadata: test.sh: Print more info on VERBOSE=1
Petr Vorel
pvorel@suse.cz
Thu Jan 4 21:46:09 CET 2024
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
metadata/tests/test.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/metadata/tests/test.sh b/metadata/tests/test.sh
index 475d721df..a00e32bb4 100755
--- a/metadata/tests/test.sh
+++ b/metadata/tests/test.sh
@@ -3,6 +3,7 @@
fail=0
for i in *.c; do
+ [ "$VERBOSE" ] && echo "$0: testing $i"
../metaparse $i > tmp.json
if ! diff tmp.json $i.json >/dev/null 2>&1; then
echo "***"
@@ -15,4 +16,5 @@ done
rm -f tmp.json
+[ "$VERBOSE" ] && echo "$fail"
exit $fail
--
2.43.0
More information about the ltp
mailing list