]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/yacc/tests/yacc_tests.sh
Merge commit '850ef5ae11d69ea3381bd310f564f025fc8caea3'
[FreeBSD/FreeBSD.git] / usr.bin / yacc / tests / yacc_tests.sh
1 #!/bin/sh
2
3 set -e
4
5 # Setup the environment for run_test
6 # - run_test looks for `#define YYBTYACC` in ../config.h
7 # - run_test assumes a yacc binary exists in ../yacc instead of running "yacc"
8 # - run_test spams the test dir with files (polluting subsequent test runs),
9 #   so it's better to copy all the files to a temporary directory created by
10 #   kyua
11 echo > "./config.h"
12 mkdir "test"
13 cp -Rf "$(dirname "$0")"/* "test"
14 cp -p /usr/bin/yacc ./yacc
15
16 cd "test" && ./run_test