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)
|
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 99)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ if (( ${#files[@]} == 0 )); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rc=0
|
rc=0
|
||||||
|
fail_count=0
|
||||||
for f in "${files[@]}"; do
|
for f in "${files[@]}"; do
|
||||||
base_name="$(basename "$f")"
|
base_name="$(basename "$f")"
|
||||||
# If INI support is disabled, skip INI examples to avoid expected failures
|
# 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/}"
|
echo "FAILED: ${f#$ROOT/}"
|
||||||
# Intentionally do not move files on failure; leave control to the user
|
# Intentionally do not move files on failure; leave control to the user
|
||||||
rc=1
|
rc=1
|
||||||
|
((fail_count++))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if (( rc == 0 )); then
|
if (( rc == 0 )); then
|
||||||
echo "All examples ran successfully."
|
echo "All examples ran successfully. Failed: ${fail_count}"
|
||||||
else
|
else
|
||||||
echo "Some examples failed."
|
echo "Some examples failed. Failed: ${fail_count}"
|
||||||
fi
|
fi
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue