summaryrefslogtreecommitdiff
path: root/Tests/BundleGeneratorTest/StartupCommand
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/BundleGeneratorTest/StartupCommand')
-rwxr-xr-xTests/BundleGeneratorTest/StartupCommand12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/BundleGeneratorTest/StartupCommand b/Tests/BundleGeneratorTest/StartupCommand
new file mode 100755
index 000000000..5bc5ad237
--- /dev/null
+++ b/Tests/BundleGeneratorTest/StartupCommand
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'`"
+RESOURCES="$BUNDLE/Contents/Resources"
+
+echo "BUNDLE: $BUNDLE"
+echo "RESOURCES: $RESOURCES"
+
+export DYLD_LIBRARY_PATH=$RESOURCES/lib
+
+exec "$RESOURCES/bin/Executable"
+