4e7dbdd0ba
submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
18 lines
486 B
Bash
Executable File
18 lines
486 B
Bash
Executable File
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
set -e
|
|
|
|
# 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
|
|
|
|
cd "test" && ./run_test
|