1268811Sbapt#!/bin/sh 2268811Sbapt# $FreeBSD: releng/10.2/usr.bin/yacc/tests/yacc_tests.sh 272973 2014-10-11 23:31:44Z rodrigc $ 3268811Sbapt 4268811Sbaptset -e 5268811Sbapt 6272973Srodrigc# Setup the environment for run_test 7272973Srodrigc# - run_test looks for `#define YYBTYACC` in ../config.h 8272973Srodrigc# - run_test assumes a yacc binary exists in ../yacc instead of running "yacc" 9272973Srodrigc# - run_test spams the test dir with files (polluting subsequent test runs), 10272973Srodrigc# so it's better to copy all the files to a temporary directory created by 11272973Srodrigc# kyua 12272973Srodrigcecho > "./config.h" 13272973Srodrigcmkdir "test" 14272973Srodrigccp -Rf "$(dirname "$0")"/* "test" 15272973Srodrigccp -p /usr/bin/yacc ./yacc 16268811Sbapt 17272973Srodrigccd "test" && ./run_test 18