added testsuite
This commit is contained in:
parent
73f845328f
commit
e21a67752a
5 changed files with 32 additions and 0 deletions
10
testsuite/.env
Executable file
10
testsuite/.env
Executable 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
11
testsuite/README.md
Normal 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
6
testsuite/build.sh
Executable 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
|
||||
BIN
testsuite/package.testsuite.zip
Normal file
BIN
testsuite/package.testsuite.zip
Normal file
Binary file not shown.
5
testsuite/test/10-profile-files
Executable file
5
testsuite/test/10-profile-files
Executable 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
|
||||
Loading…
Add table
Reference in a new issue