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