From 7d14dae0476ee3e3ab7c2fac391c506ac320d5ea Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 14 Oct 2012 14:33:18 +0000 Subject: Update test script to check that it's being run from within Xcode. --- Frameworks/PostgresKit/Scripts/run-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Frameworks/PostgresKit') diff --git a/Frameworks/PostgresKit/Scripts/run-tests.sh b/Frameworks/PostgresKit/Scripts/run-tests.sh index 73e8292f..3bcb9457 100755 --- a/Frameworks/PostgresKit/Scripts/run-tests.sh +++ b/Frameworks/PostgresKit/Scripts/run-tests.sh @@ -32,6 +32,12 @@ # # More info at +if [ "${BUILT_PRODUCTS_DIR}x" == 'x' ] +then + echo 'This script should only be run by Xcode. Exiting...' + exit 1 +fi + export PGPASSWORD=pgkit if [ ! -f /Library/PostgreSQL/bin/psql ] -- cgit v1.2.3