1#!/usr/bin/env bash
2ulimit -c unlimited
3
4# This file should never exist or be needed for production machine,
5# but allows an easy way for a "local user" to provide this file
6# somewhere on the search path ($HOME/bin is common),
7# and it will be included here, thus can provide "override values"
8# to those defined by defaults for production machine.,
9# such as for jvm
10
11source localBuildProperties.shsource 2>/dev/null
12
13echo "PWD: $PWD"
14jvm=${jvm:-/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/bin/java}
15
16# production machine is x86_64, but some local setups may be 32 bit and will need to provide
17# this value in localBuildProperties.shsource.
18eclipseArch=${eclipseArch:-x86_64}
19
20# vm.properties is used by default on production machines, but will
21# need to override on local setups to specify appropriate vm (usually same as jvm).
22# see bug 388269
23propertyFile=${propertyFile:-vm.properties}
24
25echo "jvm in testAll: ${jvm}"
26echo "extdir in testAll (if any): ${extdir}"
27echo "propertyFile in testAll: ${propertyFile}"
28echo "contents of propertyFile:"
29cat ${propertyFile}
30
31#execute command to run tests
32/bin/chmod 755 runtestsmac.sh
33/bin/mkdir -p results/consolelogs
34
35if [[ -n "${extdir}" ]]
36then
37  ./runtestsmac.sh -os macosx -ws cocoa -arch $eclipseArch -extdirprop "${extdir}" -vm "${jvm}" -properties ${propertyFile} $* > results/consolelogs/${testedPlatform}_consolelog.txt
38else
39  ./runtestsmac.sh -os macosx -ws cocoa -arch $eclipseArch -vm "${jvm}" -properties ${propertyFile} $* > results/consolelogs/${testedPlatform}_consolelog.txt
40fi
41