mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-19 16:57:50 +00:00
Add meta
tests, to validate handling of functions for subshells
This commit is contained in:
parent
67bd586575
commit
3cd32a4a0e
0
meta-tests.txt
Normal file
0
meta-tests.txt
Normal file
23
run-meta-tests
Normal file
23
run-meta-tests
Normal file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd "$(dirname "$0")" || exit 1
|
||||
|
||||
for TEST in $(cat meta-tests.txt); do
|
||||
|
||||
echo -n "meta:$TEST ... "
|
||||
|
||||
(
|
||||
meta-tests/${TEST}.sh > /dev/null 2> /dev/null
|
||||
)
|
||||
|
||||
statusCode=$?
|
||||
|
||||
if [[ $statusCode -ne 0 ]]; then
|
||||
echo "FAIL (status code $statusCode)"
|
||||
FAIL=$(( FAIL + 1 ))
|
||||
else
|
||||
echo "ok"
|
||||
PASS=$(( PASS + 1 ))
|
||||
fi
|
||||
|
||||
done
|
Loading…
Reference in New Issue
Block a user