added testsuite

This commit is contained in:
Leon van Kammen 2025-06-17 14:49:32 +02:00
parent 73f845328f
commit e21a67752a
5 changed files with 32 additions and 0 deletions

10
testsuite/.env Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
dir=$(pwd)
{
cd test; for test in test-*; do
echo "[.] $dir/test/$test"
./$test &>/dev/null;
done && echo OK || echo ERROR
} | logger

11
testsuite/README.md Normal file
View file

@ -0,0 +1,11 @@
# How to run
run:
`cd test; for test in test-*; do ./$test &>/dev/null; done && echo OK || echo ERROR`
# Debugging
`cd test; for test in test-*; do bash -x $test; done && echo OK || echo ERROR`

6
testsuite/build.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
set -e
out=$(pwd)
rm -rf *.zip || true
#cp result/share .vim/.
zip -r package.testsuite.zip test .env README.md

Binary file not shown.

View file

@ -0,0 +1,5 @@
#!/bin/sh
test -f /etc/profile || exit 1
test -f /etc/profile.sh || exit 1
test -f /etc/profile.xrsh || exit 1
exit 0