1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-08 17:02:41 +00:00
Arsse/tests/test
J. King 757f2af343 More Linux/macOS fixes
- avoid iconv for now; causes problems with a nil-config server
- Set executable bit on Unix test runner
2017-05-21 22:20:21 -04:00

7 lines
No EOL
244 B
Bash
Executable file

#! /bin/sh
base=`dirname "$0"`
php -n -S localhost:8000 "$base/server.php" >/dev/null &
php "$base/../vendor/phpunit/phpunit/phpunit" -c "$base/phpunit.xml"
sleep 1s
pid=`lsof -n -i:8000 | grep -Eo "php\s+[0-9]+" | grep -Eo "[0-9]+"`
kill $pid