ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
28 lines
764 B
Bash
28 lines
764 B
Bash
#!/bin/zsh -f
|
|
|
|
emulate zsh
|
|
|
|
# Run all specified tests, keeping count of which succeeded.
|
|
# The reason for this extra layer above the test script is to
|
|
# protect from catastrophic failure of an individual test.
|
|
# We could probably do that with subshells instead.
|
|
|
|
integer success=0 failure=0 skipped=0 retval
|
|
for file in "${(f)ZTST_testlist}"; do
|
|
$ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $file
|
|
retval=$?
|
|
if (( $retval == 2 )); then
|
|
(( skipped++ ))
|
|
elif (( $retval )); then
|
|
(( failure++ ))
|
|
else
|
|
(( success++ ))
|
|
fi
|
|
done
|
|
print "**************************************
|
|
$success successful test script${${success:#1}:+s}, \
|
|
$failure failure${${failure:#1}:+s}, \
|
|
$skipped skipped
|
|
**************************************"
|
|
return $(( failure ? 1 : 0 ))
|