aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/run-tests.sh
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-01-06 21:09:34 +0000
committerstuconnolly <stuart02@gmail.com>2011-01-06 21:09:34 +0000
commit9a7a6569899ab685133f91f97d19824ff4dec05c (patch)
tree87eafd73e3860cd11795cacf248d5b0ffced2c8e /Scripts/run-tests.sh
parentcc9be0fd6dd193db4615a6a5a94913a3c7b56a68 (diff)
downloadsequelpro-9a7a6569899ab685133f91f97d19824ff4dec05c.tar.gz
sequelpro-9a7a6569899ab685133f91f97d19824ff4dec05c.tar.bz2
sequelpro-9a7a6569899ab685133f91f97d19824ff4dec05c.zip
Fix the unit tests build target.
Diffstat (limited to 'Scripts/run-tests.sh')
-rwxr-xr-xScripts/run-tests.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/Scripts/run-tests.sh b/Scripts/run-tests.sh
new file mode 100755
index 00000000..d1472f5e
--- /dev/null
+++ b/Scripts/run-tests.sh
@@ -0,0 +1,18 @@
+#! /bin/ksh
+
+## $Id$
+##
+## Author: Stuart Connolly (stuconnolly.com)
+## Copyright (c) 2011 Stuart Connolly. All rights reserved.
+##
+## Paramters: <none>
+##
+## Description: Runs Sequel Pro's unit tests. This script should only be run by Xcode.
+
+# Add the unit test bundle's Frameworks/ path to the search paths for dynamic libraries
+export DYLD_FRAMEWORK_PATH="${CONFIGURATION_BUILD_DIR}/${FULL_PRODUCT_NAME}/Contents/Frameworks"
+
+# Run the unit tests in this test bundle
+"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
+
+exit 0