Small test script update. (0.38.5)
This commit is contained in:
parent
d79815e366
commit
4e155b55a5
2 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(fun VERSION 0.38.4 LANGUAGES C)
|
||||
project(fun VERSION 0.38.5 LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ if (( ${#files[@]} == 0 )); then
|
|||
fi
|
||||
|
||||
rc=0
|
||||
fail_count=0
|
||||
for f in "${files[@]}"; do
|
||||
base_name="$(basename "$f")"
|
||||
# If INI support is disabled, skip INI examples to avoid expected failures
|
||||
|
|
@ -100,12 +101,13 @@ for f in "${files[@]}"; do
|
|||
echo "FAILED: ${f#$ROOT/}"
|
||||
# Intentionally do not move files on failure; leave control to the user
|
||||
rc=1
|
||||
((fail_count++))
|
||||
fi
|
||||
done
|
||||
|
||||
if (( rc == 0 )); then
|
||||
echo "All examples ran successfully."
|
||||
echo "All examples ran successfully. Failed: ${fail_count}"
|
||||
else
|
||||
echo "Some examples failed."
|
||||
echo "Some examples failed. Failed: ${fail_count}"
|
||||
fi
|
||||
exit $rc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue