Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sympl
Sympl Testing Suite
Commits
c383e213
Commit
c383e213
authored
Apr 16, 2021
by
Paul Cammish
Browse files
Added totals to results
parent
da663b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
sympl-tests
View file @
c383e213
...
...
@@ -167,12 +167,17 @@ TEST_PATH |$TEST_PATH
DEBUG |
$DEBUG
"
PASS
=
0
FAIL
=
0
ERROR
=
0
TIMESTAMP
=
"
$(
date
+%s
)
"
if
[
-f
"
$LOG
"
]
;
then
rm
"
$LOG
"
;
fi
#_echo "Starting run at $(date ; if [ "$TEST_PATH" != "./tests.d" ] ; then echo -n ", test path: '$TEST_PATH'" ; fi )"
_centre
=
Starting
TOTAL
=
$(
find
$TEST_PATH
-type
f
-executable
|
wc
-l
)
for
script
in
$(
find
$TEST_PATH
-type
f
-executable
|
sort
)
;
do
_echo
_centre -
"
$script
"
...
...
@@ -182,10 +187,13 @@ for script in $( find $TEST_PATH -type f -executable | sort ) ; do
$script
>
/dev/shm/sympl-tests_stdout 2>&1
exitcode
=
$?
if
[
$exitcode
==
0
]
;
then
PASS
=
$((
PASS+1
))
_pass
elif
[
$exitcode
==
1
]
;
then
FAIL
=
$((
FAIL+1
))
_fail
else
ERROR
=
$((
ERROR+1
))
_test_error
fi
rm
/dev/shm/sympl-tests_stdout
...
...
@@ -193,6 +201,7 @@ done
_echo
_centre
=
Summary
_echo
"Test run completed at
$(
date
)
"
_echo
"Passed:
$PASS
/
$TOTAL
$(
printf
%.2f%%
"
$((
10
**
3
*
100
*
$PASS
/
$TOTAL
))
e-3"
)
Failed:
$FAIL
Errors:
$ERROR
"
_centre
=
"End"
#run-parts tests.d/00-system -a ~/git/sympl-tests/sympl-tests
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment