diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-12-17 13:36:32 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-12-17 13:36:32 +0000 |
commit | 95dd8876654ee08f1e7f483e78ea3a78146ba0c4 (patch) | |
tree | 0a47e82b0f308bc750925f8f18efda428581e191 /test/run-stp-tests.sh | |
parent | a891ff4cc9cb14e99bc99b2157036969fef9e269 (diff) |
Allow "make check" to run on different ports and in different directories.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12371 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'test/run-stp-tests.sh')
-rwxr-xr-x | test/run-stp-tests.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/run-stp-tests.sh b/test/run-stp-tests.sh index aac9909e4..0ef6fdb7f 100755 --- a/test/run-stp-tests.sh +++ b/test/run-stp-tests.sh @@ -189,15 +189,18 @@ if test -z "$user"; then fi fi -port=8631 +port="${CUPS_TESTPORT:=8631}" cwd=`pwd` root=`dirname $cwd` CUPS_TESTROOT="$root"; export CUPS_TESTROOT -if test -d /private/tmp; then - BASE=/private/tmp/cups-$user -else - BASE=/tmp/cups-$user +BASE="${CUPS_TESTBASE:=}" +if test -z "$BASE"; then + if test -d /private/tmp; then + BASE=/private/tmp/cups-$user + else + BASE=/tmp/cups-$user + fi fi export BASE @@ -381,7 +384,7 @@ instfilter() { dst="$2" format="$3" - for dir in /usr/libexec/cups/filter /usr/lib/cups/filter; do + for dir in /usr/local/libexec/cups/filter /usr/libexec/cups/filter /usr/lib/cups/filter; do if test -x "$dir/$src"; then ln -s "$dir/$src" "$BASE/bin/filter/$dst" return @@ -608,7 +611,7 @@ fi export SHLIB_PATH CUPS_DISABLE_APPLE_DEFAULT=yes; export CUPS_DISABLE_APPLE_DEFAULT -CUPS_SERVER=localhost:8631; export CUPS_SERVER +CUPS_SERVER=localhost:$port; export CUPS_SERVER CUPS_SERVERROOT=$BASE; export CUPS_SERVERROOT CUPS_STATEDIR=$BASE; export CUPS_STATEDIR CUPS_DATADIR=$BASE/share; export CUPS_DATADIR |