2014-07-17 22:22:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-08-12 17:51:26 +00:00
|
|
|
# Setup the environment for run_test
|
|
|
|
# - run_test looks for `#define YYBTYACC` in ../config.h
|
|
|
|
# - run_test assumes a yacc binary exists in ../yacc instead of running "yacc"
|
|
|
|
# - run_test spams the test dir with files (polluting subsequent test runs),
|
|
|
|
# so it's better to copy all the files to a temporary directory created by
|
|
|
|
# kyua
|
|
|
|
echo > "./config.h"
|
|
|
|
mkdir "test"
|
|
|
|
cp -Rf "$(dirname "$0")"/* "test"
|
|
|
|
cp -p /usr/bin/yacc ./yacc
|
2014-07-17 22:22:38 +00:00
|
|
|
|
2014-08-12 17:51:26 +00:00
|
|
|
cd "test" && ./run_test
|