head	1.46;
access;
symbols
	build_200707111554:1.35
	build_200707111516:1.46
	build_200706262000:1.46
	build_200706261953:1.46
	build_200706251320:1.46
	build_200706200000:1.46
	build_200706130003:1.46
	build_200706081355:1.2.2.4
	build_200706081256:1.2.2.4
	build_200706081150:1.33.2.1
	build_200706081147:1.2.2.4
	build_200706072040:1.2.2.4
	build_200706071855:1.2.2.4
	build_200706071847:1.2.2.4
	build_200706071839:1.2.2.4
	build_200706070004:1.35
	build_200706061821:1.46
	build_200706042055:1.33.2.1
	build_200706020522:1.2.2.4
	build_200705311616:1.35
	build_200705310000:1.35
	build_200705300200:1.46
	build_200705241030:1.35
	build_200705240000:1.35
	build_200705230200:1.46
	build_200705160200:1.46
	build_200705141058:1.35
	build_200705141045:1.35
	build_200705110650:1.46
	build_200705090200:1.46
	build_200705090000:1.35
	build_200705020400:1.35
	build_200705020200:1.46
	build_200704250200:1.46
	build_200704191605:1.46
	build_200704121441:1.46
	build_200704050200:1.46
	build_200704050000:1.35
	build_200703291501:1.46
	build_200703291400:1.46
	build_200703291200:1.46
	build_200703290000:1.35
	build_200703221305:1.46
	build_200703150200:1.46
	build_200703080200:1.46
	build_200703062300:1.46
	build_200703052300:1.46
	build_200703042300:1.46
	build_200703010200:1.46
	build_200703010000:1.35
	build_200702221030:1.46
	build_200702220000:1.35
	build_200702131851:1.35
	build_200702121527:1.46
	build_200702121014:1.35
	build_200702100827:1.35
	build_200702071857:1.46
	build_200702071707:1.35
	build_200702062350:1.35
	build_200702061712:1.35
	build_200702010200:1.46
	build_200702010000:1.35
	build_200701250200:1.43
	build_200701250000:1.35
	build_200701181443:1.42
	build_200701181347:1.42
	build_200701181044:1.35
	build_200701110200:1.37
	build_200701110000:1.35
	build_200701040200:1.37
	build_200701040000:1.35
	build_200612280100:1.37
	build_200612211251:1.37
	build_200612211127:1.35
	build_200612210100:1.37
	build_200612141025:1.37
	build_200612140300:1.35
	build_200612140100:1.37
	build_200612071030:1.37
	build_200612070200:1.35
	build_200612070020:1.37
	build_200611300200:1.35
	build_200611300000:1.36
	build_200611230200:1.35
	build_200611230000:1.36
	build_200611161558:1.36
	build_200611161441:1.35
	build_200611161131:1.35
	build_200611101136:1.35
	build_200611091648:1.35
	build_200611091546:1.36
	build_200611021608:1.36
	build_200611020834:1.35
	R2_2_maintenance:1.35.0.2
	R2_2_1:1.35
	build_200609210005:1.35
	build_200609141116:1.35
	build_200609071016:1.35
	build_200608311032:1.35
	build_200608241248:1.35
	build_200608241201:1.35
	build_200608170000:1.35
	build_200608100000:1.35
	build_200608030000:1.35
	build_200607270021:1.35
	build_200607200000:1.35
	build_200607131143:1.35
	build_200606271057:1.35
	build_200606270954:1.35
	build_200606221156:1.35
	build_200606201609:1.35
	build_200606162202:1.35
	build_200606150000:1.35
	build_200606080000:1.35
	build_200606051102:1.35
	build_200606010000:1.35
	build_200605300949:1.35
	build_200605300005:1.35
	build_200605291149:1.35
	build_200605250000:1.35
	build_200605231736:1.35
	build_200605181255:1.35
	build_200605151820:1.35
	build_200605110000:1.35
	build_200605081806:1.35
	build_200605051423:1.35
	build_200605041055:1.35
	build_200605020900:1.35
	build_200604270000:1.35
	build_200604200629:1.35
	build_200604130000:1.35
	build_200604060931:1.35
	build_200603300000:1.35
	build_200603230128:1.35
	build_200603160000:1.35
	build_200603090000:1.35
	build_200603020000:1.35
	build_200602241148:1.35
	build_200602231302:1.35
	build_200602231020:1.35
	build_200602160000:1.35
	build_200602090000:1.35
	build_200602020000:1.35
	build_200601260300:1.33.2.1
	build_200601260027:1.35
	build_200601191349:1.33.2.1
	build_200601190000:1.35
	build_200601120200:1.35
	build_200601050100:1.35
	build_200601041804:1.33.2.1
	build_200512220106:1.35
	build_200512151150:1.35
	build_200512150200:1.35
	build_200512100118:1.33.2.1
	build_200512080200:1.35
	build_200512011155:1.35
	build_200511291418:1.2.2.4
	build_200511291417:1.33.2.1
	build_200511291121:1.35
	build_200511240817:1.35
	build_200511240558:1.35
	build_200511240200:1.35
	build_200511170200:1.35
	build_200511162320:1.35
	build_200511161952:1.33.2.1
	build_200511100200:1.35
	build_200511030200:1.35
	build_200510270200:1.35
	build_200510200124:1.35
	build_200510131245:1.35
	build_200510060200:1.35
	build_200509300951:1.2.2.4
	build_200509290200:1.35
	build_200509281310:1.33.2.1
	build_200509271509:1.33.2.1
	build_200509220200:1.35
	build_200509161514:1.35
	build_200509150200:1.35
	build_200509081011:1.2.2.4
	build_200509081004:1.33.2.1
	build_200509080200:1.35
	build_200509011153:1.33.2.1
	build_200509010200:1.35
	build_200508251028:1.35
	build_200508180200:1.35
	build_200508111102:1.35
	build_200508110300:1.33.2.1
	build_200508040200:1.35
	build_200508040005:1.33.2.1
	build_200508031751:1.2.2.4
	R2_1_maintenance:1.33.0.2
	R2_1_0:1.33
	build_200507070200:1.33
	build_200506300200:1.33
	build_200506230200:1.33
	build_200506160200:1.33
	build_200506091102:1.33
	build_200506091052:1.2.2.3
	build_200506021148:1.2.2.3
	build_200506020944:1.33
	build_200505311255:1.2.2.3
	build_200505301857:1.2.2.3
	build_200505271408:1.2.2.3
	build_200505261142:1.33
	build_200505191347:1.33
	build_200505050300:1.33
	build_200504280300:1.33
	build_200504210500:1.33
	build_200504141117:1.30
	build_200504070700:1.30
	build_200503310700:1.30
	build_200503240700:1.30
	build_200503181320:1.30
	build_200503151315:1.2.2.2
	build_200503100800:1.30
	build_200503081329:1.2.2.2
	build_200503081324:1.2.2.2
	build_200503030800:1.30
	build_200502281726:1.2.2.2
	build_200502240800:1.29
	build_200502171619:1.28
	build_200502171209:1.2.2.2
	build_200502100800:1.10
	build_200502100700:1.2.2.1
	build_200502030800:1.8
	build_200502030700:1.2.2.1
	build_200501270800:1.8
	build_200501270700:1.2.2.1
	build_200501191212:1.2.2.1
	build_200501190800:1.8
	build_200501121156:1.8
	R2_0_maintenance:1.2.0.2
	R2_0_1:1.2
	build_200501041213:1.8
	build_200412230800:1.8
	build_200412160800:1.8
	build_200412091159:1.8
	build_200412020800:1.8
	build_200411250800:1.8
	build_200411180800:1.5
	build_200409171617:1.2
	build_200409011021:1.2
	build_200408261626:1.2
	build_200406280827:1.2
	build_200405200923:1.2;
locks; strict;
comment	@# @;


1.46
date	2007.01.31.18.58.04;	author nickb;	state Exp;
branches;
next	1.45;
commitid	1e7745c0e6bc4567;

1.45
date	2007.01.26.00.17.06;	author nickb;	state Exp;
branches;
next	1.44;
commitid	5edf45b948824567;

1.44
date	2007.01.25.23.53.04;	author nickb;	state Exp;
branches;
next	1.43;
commitid	266745b942df4567;

1.43
date	2007.01.19.02.31.34;	author nickb;	state Exp;
branches;
next	1.42;
commitid	d9145b02d854567;

1.42
date	2007.01.18.18.46.47;	author nickb;	state Exp;
branches;
next	1.41;
commitid	163145afc0974567;

1.41
date	2007.01.18.00.04.08;	author nickb;	state Exp;
branches;
next	1.40;
commitid	509445aeb9784567;

1.40
date	2007.01.17.22.30.19;	author nickb;	state Exp;
branches;
next	1.39;
commitid	567245aea37a4567;

1.39
date	2007.01.17.22.07.44;	author nickb;	state Exp;
branches;
next	1.38;
commitid	21af45ae9e304567;

1.38
date	2007.01.17.21.02.27;	author nickb;	state Exp;
branches;
next	1.37;
commitid	147145ae8ee34567;

1.37
date	2006.12.01.18.43.22;	author nickb;	state Exp;
branches;
next	1.36;
commitid	360457077c94567;

1.36
date	2006.10.11.20.58.16;	author nickb;	state Exp;
branches;
next	1.35;

1.35
date	2005.07.22.18.39.25;	author nickb;	state Exp;
branches;
next	1.34;

1.34
date	2005.07.22.16.03.37;	author nickb;	state Exp;
branches;
next	1.33;

1.33
date	2005.04.19.20.44.37;	author nickb;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2005.04.19.20.27.52;	author nickb;	state Exp;
branches;
next	1.31;

1.31
date	2005.04.19.19.56.26;	author nickb;	state Exp;
branches;
next	1.30;

1.30
date	2005.02.28.21.06.17;	author nickb;	state Exp;
branches;
next	1.29;

1.29
date	2005.02.21.18.36.18;	author marcelop;	state Exp;
branches;
next	1.28;

1.28
date	2005.02.16.19.09.59;	author nickb;	state Exp;
branches;
next	1.27;

1.27
date	2005.02.16.18.35.56;	author nickb;	state Exp;
branches;
next	1.26;

1.26
date	2005.02.16.18.05.58;	author nickb;	state Exp;
branches;
next	1.25;

1.25
date	2005.02.16.17.41.11;	author nickb;	state Exp;
branches;
next	1.24;

1.24
date	2005.02.15.23.45.43;	author nickb;	state Exp;
branches;
next	1.23;

1.23
date	2005.02.15.21.21.10;	author nickb;	state Exp;
branches;
next	1.22;

1.22
date	2005.02.15.03.27.15;	author nickb;	state Exp;
branches;
next	1.21;

1.21
date	2005.02.14.22.00.19;	author nickb;	state Exp;
branches;
next	1.20;

1.20
date	2005.02.14.21.19.53;	author nickb;	state Exp;
branches;
next	1.19;

1.19
date	2005.02.14.21.07.12;	author nickb;	state Exp;
branches;
next	1.18;

1.18
date	2005.02.14.20.54.54;	author nickb;	state Exp;
branches;
next	1.17;

1.17
date	2005.02.14.20.42.17;	author nickb;	state Exp;
branches;
next	1.16;

1.16
date	2005.02.12.21.54.28;	author nickb;	state Exp;
branches;
next	1.15;

1.15
date	2005.02.12.05.44.53;	author nickb;	state Exp;
branches;
next	1.14;

1.14
date	2005.02.12.04.44.39;	author nickb;	state Exp;
branches;
next	1.13;

1.13
date	2005.02.12.04.24.32;	author nickb;	state Exp;
branches;
next	1.12;

1.12
date	2005.02.12.01.33.26;	author nickb;	state Exp;
branches;
next	1.11;

1.11
date	2005.02.10.21.23.12;	author nickb;	state Exp;
branches;
next	1.10;

1.10
date	2005.02.08.21.55.52;	author nickb;	state Exp;
branches;
next	1.9;

1.9
date	2005.02.08.21.35.02;	author nickb;	state Exp;
branches;
next	1.8;

1.8
date	2004.11.19.08.16.05;	author nickb;	state Exp;
branches;
next	1.7;

1.7
date	2004.11.19.07.56.52;	author nickb;	state Exp;
branches;
next	1.6;

1.6
date	2004.11.19.07.02.47;	author nickb;	state Exp;
branches;
next	1.5;

1.5
date	2004.10.21.15.14.22;	author marcelop;	state Exp;
branches;
next	1.4;

1.4
date	2004.10.20.22.49.50;	author nickb;	state dead;
branches;
next	1.3;

1.3
date	2004.10.20.20.10.59;	author nickb;	state Exp;
branches;
next	1.2;

1.2
date	2004.04.22.07.09.46;	author marcelop;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2004.03.06.17.54.39;	author marcelop;	state Exp;
branches;
next	;

1.2.2.1
date	2005.01.14.00.06.16;	author nickb;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	2005.02.10.21.23.17;	author nickb;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2005.05.27.18.04.15;	author nickb;	state Exp;
branches;
next	1.2.2.4;

1.2.2.4
date	2005.07.28.21.31.52;	author nickb;	state Exp;
branches;
next	;

1.33.2.1
date	2005.07.22.19.25.14;	author nickb;	state Exp;
branches;
next	;


desc
@@


1.46
log
@[170831] remove hack (moved into customTargets.xml and test.xml)
@
text
@#!/bin/sh

# by default, use the java executable on the path
export JAVA_HOME=/opt/sun-java2-5.0
vm=java

#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
dir=.

# operating system, windowing system and architecture variables
os=
ws=
arch=

# list of tests (targets) to execute in test.xml
tests=

# default target to run in org.eclipse.emf.releng.build/tests/scripts/test.xml
antTestTarget=all

# default value to determine if eclipse should be reinstalled between running of tests
installmode="clean"

# name of a property file to pass to Ant
properties=

# message printed to console
usage="usage: $0 -os <osType> -ws <windowingSystemType> -arch <architecture> [-noclean] [<test target>][-properties <path>]"

Xflags="";
Dflags="";

echo "[runtests] runtests started on: `date +%Y%m%d\ %H\:%M\:%S`";

# process command line arguments
echo "[runtests] Got these commandline args:"
while [ $# -gt 0 ]
do
	case "$1" in
		-project) project="$2"; echo "  "$1 $2; shift;;
		-dir) dir="$2"; echo "  "$1 $2; shift;;
		-os) os="$2"; echo "  "$1 $2; shift;;
		-ws) ws="$2"; echo "  "$1 $2; shift;;
		-arch) arch="$2"; echo "  "$1 $2; shift;;
		-noclean) installmode="noclean" echo "  "$1;;
		-properties) properties="-propertyfile $2"; echo "  "$1 $2; shift;;
		-javaHome) javaHome="$2"; echo "  "$1 $2; shift;;
		-cp) cp="$2"; echo "  "$1 $2; shift;;
		-antTestTarget) antTestTarget="$2"; echo "  "$1 $2; shift;;
		-X*) Xflags=$Xflags\ $1; echo "  "$1;;
		-D*) Dflags=$Dflags\ $1; echo "  "$1;;
	esac
	shift
done

if [ "x$javaHome" != "x" ]; then export JAVA_HOME=$javaHome; fi

# for *nix systems, os, ws and arch values must be specified
if [ "x$os" = "x" ]
then
	echo >&2 "$usage"
	exit 1
fi

if [ "x$ws" = "x" ]
then
	echo >&2 "$usage"
	exit 1
fi

if [ "x$arch" = "x" ]
then
	echo >&2 "$usage"
	exit 1
fi

execCmd ()
{
	echo ""; echo "[runtests] [`date +%H\:%M\:%S`]"; 
	echo "  $1" | perl -pe "s/ -/\n  -/g"
	$1;
}

#necessary when invoking this script through rsh
cd $dir
workspaceDir="$dir/eclipse/workspace"

# verify os, ws and arch values passed in are valid before running tests
if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-sparc" ] || [ "$os-$ws-$arch" = "hpux-motif-ppc" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ]
then
	# Replace the boot eclipse (The eclipse used to run the main test.xml, this will start another eclipse later)
	if [ -d $dir/eclipse ] ; then
		rm -rf $dir/eclipse
	fi
	if [ -d $workspaceDir ] ; then
		rm -rf $dir/workspace
	fi

	echo "[runtests] Currently in `pwd`:"
	# need conditional processing here: M3.0.2 = zip, I3.1.0 = tar.gz
	sdks=`find $dir -name "eclipse-SDK-*"`
	# get extension from file(s)
	for sdk in $sdks; do
		sdk="eclipse"${sdk##*eclipse}; # trim up to eclipse (substring notation)
		echo -n "[runtests] Eclipse SDK $sdk is a";
		ext=${sdk%%\.zip}; # trim off .zip (substring notation)
		if [ "$ext" != "$sdk" ]; then # it's a zip
			echo " zip. Unpacking...";
			unzip -qq -o $sdk
		else
			ext=${sdk%%\.tar\.gz}; # trim off .tar.gz (substring notation)
			if [ "$ext" != "$sdk" ]; then # it's a tar.gz
				echo " tar.gz. Unpacking...";
				tar -xzf $sdk
			else
				ext=${sdk%%\.tar\.Z}; # trim off .tar.Z (substring notation)
				if [ "$ext" != "$sdk" ]; then # it's a tar.Z
					echo " tar.Z. Unpacking...";
					tar -xZf $sdk
				else
					echo "n UNKNOWN file type. Script aborting!";
					exit 2
				fi
			fi
		fi
	done

	J2SE15flags="";
	# TODO: if a 1.5 JDK and want source/target = 1.5, leave these in
	# TODO: if source/target = 1.4, remove these!
	if [ ${JAVA_HOME##*1.5*}"" = "" -o ${JAVA_HOME##*15*}"" = "" -o ${JAVA_HOME##*5.0*}"" = "" -o ${JAVA_HOME##*50*}"" = "" ]; then
		# set J2SE-1.5 properties (-Dflags)
		bootclasspath="."`find $JAVA_HOME/jre/lib -name "*.jar" -printf ":%p"`;
		J2SE15flags=$J2SE15flags" -DJ2SE-1.5=$bootclasspath"
		J2SE15flags=$J2SE15flags" -DbundleBootClasspath=$bootclasspath"
		J2SE15flags=$J2SE15flags" -DjavacSource=1.5"
		J2SE15flags=$J2SE15flags" -DjavacTarget=1.5"
		J2SE15flags=$J2SE15flags" -DbundleJavacSource=1.5"
		J2SE15flags=$J2SE15flags" -DbundleJavacTarget=1.5"
	fi
	
	# default classpath - can be overridden by relengbuildgtk.sh
	# up to Eclipse 3.3M4, use eclipse/startup.jar
	# after Eclipse 3.3M4, use eclipse/plugins/org.eclipse.equinox.launcher_*.jar
	cp=`find eclipse/ -name "org.eclipse.equinox.launcher_*.jar" | sort | head -1`
	
	# run tests
	echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget, -enableassertions) ..."
	execCmd "$JAVA_HOME/bin/java $Xflags -enableassertions -cp $cp org.eclipse.equinox.launcher.Main -ws $ws -os $os -arch $arch \
	-application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget \
	$Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $J2SE15flags \
	$properties -logger org.apache.tools.ant.DefaultLogger";
	echo "[runtests] [`date +%H\:%M\:%S`] Eclipse test run completed. "

	# display message to user if os, ws and arch are invalid
	else
		echo "The os, ws and arch values are either invalid or are an invalid combination"

	exit 1
fi
@


1.45
log
@[170831] hack library.xml to test a fix
@
text
@a126 2
	echo "[runtests] Unpack JUnit Tests..."
	unzip -qq -o -C emf-sdo-xsd-JUnit-Tests-*.zip */plugins/org.eclipse.test*
a146 16
	# testing a fix for post3.3M4 - must make library.xml use correct launcher and Main class
	cpNoEclipse=${cp#eclipse/};
	libraryXML=`find eclipse/plugins/ -name "library.xml" | grep "org.eclipse.test" | sort | head -1`;
	if [[ $libraryXML ]]; then
		echo "[runtests] [Equinox Hack] Fix $libraryXML";
		temp=`mktemp`; 
		cat $libraryXML | perl -pe "s/startup.jar/$cp/g" | perl -pe "s/org.eclipse.core.launcher.Main/org.eclipse.equinox.launcher.Main/g" > $temp;
		mv -f $temp $libraryXML;
		echo "[runtests] [Equinox Hack] $libraryXML now contains:";
		echo "   -----";
		cat $libraryXML | egrep -A2 -B1 "launcher|startup|equinox";
		echo "   -----";
	else
		echo "Error! Can't find org.eclipse.test*/library.xml!";
	fi	

@


1.44
log
@[170831] hack library.xml to test a fix
@
text
@d152 1
a152 1
	if [[ $libraryXML ]];
d154 2
a155 1
		temp=`mktemp`; cat $libraryXML | perl -pe "s/startup.jar/$cp/g" | perl -pe "s/org.eclipse.core.launcher.Main/org.eclipse.equinox.launcher.Main/g" > $temp;
a160 1
		
@


1.43
log
@[170831] fix for Eclipse 3.3 >M4
@
text
@d149 16
@


1.42
log
@revert changes to run with M4
@
text
@d4 2
a5 1
vm=/opt/sun-java2-5.0/bin/java
a14 3
# default classpath - can be overridden by relengbuildgtk.sh
cp="eclipse/startup.jar";

d33 4
a36 1
# proces command line arguments
d40 12
a51 11
		-dir) dir="$2"; shift;;
		-os) os="$2"; shift;;
		-ws) ws="$2"; shift;;
		-arch) arch="$2"; shift;;
		-noclean) installmode="noclean";;
		-properties) properties="-propertyfile $2";shift;;
		-vm) vm="$2";shift;;
		-cp) cp="$2";shift;;
		-antTestTarget) antTestTarget="$2";shift;;
		-X*) Xflags=$Xflags\ $1;;
		-D*) Dflags=$Dflags\ $1;;
d56 2
d99 1
d130 12
a141 11
	if [ "$installmode" = "noclean" ]
	then
		# if tests are to run without reinstalling eclipse, only install the test eclipse if it does not exist
		# If the test-eclipse directory is in a partially installed state, it should be deleted manually
		if [ ! -r target/eclipse ]
		then
			# NB: this may not work. is this even ever used ?
			echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget) ..."
			$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
			echo "[runtests] [`date +%H\:%M\:%S`] Eclipse run completed. "
		fi
d143 6
a148 1

d150 5
a154 2
	echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget) ..."
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
a162 2

## <!-- $Id: runtests,v 1.37 2006/12/01 18:43:22 nickb Exp $ --> ##@


1.41
log
@[170831]
@
text
@a13 1
# after 3.3M4, startup.jar has been moved, so must find a startup.jar candidate
d15 1
a15 1
cp=`find $dir -name "*startup*.jar" | sort | tail -1`;
d125 13
d139 2
a140 2
	echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget, startup = $cp) ..."
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
d150 1
a150 1
## <!-- $Id: runtests,v 1.40 2007/01/17 22:30:19 nickb Exp $ --> ##@


1.40
log
@[170831] remove -noupdate flag
@
text
@d128 1
a128 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
d138 1
a138 1
## <!-- $Id: runtests,v 1.39 2007/01/17 22:07:44 nickb Exp $ --> ##@


1.39
log
@[170831]
@
text
@d128 1
a128 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
d138 1
a138 1
## <!-- $Id: runtests,v 1.38 2007/01/17 21:02:27 nickb Exp $ --> ##@


1.38
log
@[170831] first pass
@
text
@d14 1
d16 1
a16 1
cp="eclipse/startup.jar";
d127 2
a128 4
	echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget) ..."
	#execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
	# after 3.3M4, startup.jar has been moved, so launch with eclipse instead of java
	execCmd "eclipse/eclipse -vm $vm -nosplash -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger -vmargs $Xflags";
d138 1
a138 1
## <!-- $Id: runtests,v 1.37 2006/12/01 18:43:22 nickb Exp $ --> ##@


1.37
log
@[166532] remove encoding dependency issues in executeCommand.sh and similar
@
text
@a124 13
	if [ "$installmode" = "noclean" ]
	then
		# if tests are to run without reinstalling eclipse, only install the test eclipse if it does not exist
		# If the test-eclipse directory is in a partially installed state, it should be deleted manually
		if [ ! -r target/eclipse ]
		then
			# NB: this may not work. is this even ever used ?
			echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget) ..."
			$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
			echo "[runtests] [`date +%H\:%M\:%S`] Eclipse run completed. "
		fi
	fi

d127 3
a129 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
d139 1
a139 1
## <!-- $Id: runtests,v 1.36 2006/10/11 20:58:16 nickb Exp $ --> ##@


1.36
log
@set JDK 5.0 defaults
@
text
@d75 2
a76 1
	echo ""; echo "[runtests] [`date +%H\:%M\:%S`]"; echo "  $1" | sed -e 's/\ \-/\�\ \ \ \ \-/g' | tr "�" "\n"; echo "";
d150 1
a150 1
## <!-- $Id: runtests,v 1.35 2005/07/22 18:39:25 nickb Exp $ --> ##@


1.35
log
@remove perf
@
text
@d4 1
a4 1
vm=/opt/ibm-java2-1.4/bin/java
d75 1
a75 1
	echo ""; echo "[runtests] [`date +%H\:%M\:%S`]"; echo "  $1" | sed -e 's/\ \-/\\ \ \ \ \-/g' | tr "" "\n"; echo "";
d149 1
a149 1
## <!-- $Id: runtests,v 1.34 2005/07/22 16:03:37 nickb Exp $ --> ##@


1.34
log
@new allAndPerf target; remove most of the perf stuff from releng/runtests (no longer used this way)
@
text
@d14 1
a14 1
# default classpath - can be overridden by relengbuildgtk.sh to include things like the org.apache.derby jars
a20 2
# for running performance tests only (bypass non-perf tests) use target "runPerfTestsOnly"
# or all, or all + perf: allAndPerf
a31 4
# path to derby jars (if using derby to store perf test results)
# eg., /opt/incubating-derby-10.0.2.1-bin/lib
# need access to the following jars: derby.jar, derbynet.jar, derbytools.jar, db2jcc.jar, db2jcc_license_c.jar
#derbyJars="";
a46 1
#		-derbyJars) derbyJars="$2";shift;;
a123 11
#	# Copy derby into plugins folder (if folder exists)
#	if [ "x$derbyJars" != "x" ]; then
#		if [ -d $derbyJars ]; then
#			derbyJars="-DderbyJars=$derbyJars";
#			#echo "[runtests] Copy derby jars and plugin.xml into eclipse/plugins/org.apache.derby/";
#			#mkdir -p					$dir/target/eclipse/plugins/org.apache.derby/
#			#cp $derbyJars/*.jar			$dir/target/eclipse/plugins/org.apache.derby/
#			#cp $derbyJars/plugin.xml	$dir/target/eclipse/plugins/org.apache.derby/
#		fi
#	fi

d130 1
a130 1
			# NB: this may not log perf data to derby properly... not sure if this if-block is ever used anymore
a137 1

a138 1
#	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $derbyJars $properties -logger org.apache.tools.ant.DefaultLogger";
d149 1
a149 1
## <!-- $Id: runtests,v 1.33 2005/04/19 20:44:37 nickb Exp $ --> ##@


1.33
log
@*** empty log message ***
@
text
@d4 1
a4 1
vm=java
d22 1
d37 1
a37 1
derbyJars="";
d53 1
a53 1
		-derbyJars) derbyJars="$2";shift;;
d131 10
a140 10
	# Copy derby into plugins folder (if folder exists)
	if [ "x$derbyJars" != "x" ]; then
		if [ -d $derbyJars ]; then
			derbyJars="-DderbyJars=$derbyJars";
			#echo "[runtests] Copy derby jars and plugin.xml into eclipse/plugins/org.apache.derby/";
			#mkdir -p					$dir/target/eclipse/plugins/org.apache.derby/
			#cp $derbyJars/*.jar			$dir/target/eclipse/plugins/org.apache.derby/
			#cp $derbyJars/plugin.xml	$dir/target/eclipse/plugins/org.apache.derby/
		fi
	fi
d158 2
a159 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $derbyJars $properties -logger org.apache.tools.ant.DefaultLogger";
d169 1
a169 1
## <!-- $Id: runtests,v 1.32 2001/04/07 22:36:07 nickb Exp $ --> ##@


1.33.2.1
log
@migrate changes from 2.2.0
@
text
@d4 1
a4 1
vm=/opt/ibm-java2-1.4/bin/java
d14 1
a14 1
# default classpath - can be overridden by relengbuildgtk.sh
d21 1
d33 4
d52 1
d130 11
d147 1
a147 1
			# NB: this may not work. is this even ever used ?
d155 1
d157 1
a157 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
d167 1
a167 1
## <!-- $Id: runtests,v 1.35 2005/07/22 18:39:25 nickb Exp $ --> ##@


1.32
log
@rename antTarget to antTestTarget to alleviate confusion between buildAll.xml and test.xml targets
@
text
@d148 1
a148 1
			echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode) ..."
d165 3
a167 1
fi@


1.31
log
@add support for decoupled perf tests - that is, running perf w/o other JUnit tests and w/o builds
@
text
@d22 1
a22 1
antTarget=all
d53 1
a53 1
		-antTarget) antTarget="$2";shift;;
d156 2
a157 2
	echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode) ..."
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $derbyJars $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.30
log
@typo
@
text
@d20 4
d53 1
d79 1
a79 1
execCmd () 
d142 1
a142 1
	then		
d157 1
a157 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $derbyJars $properties -logger org.apache.tools.ant.DefaultLogger";
d159 1
a159 1
	
d163 1
a163 1
	
@


1.29
log
@Specifying the workspace for the Eclipse that drives the tests.
@
text
@d14 1
a14 1
# default classpath - can be overriddend by relengbuildgtk.sh to include things like the org.apache.derby jars
@


1.28
log
@tweak
@
text
@d82 1
d91 1
a91 1
	if [ -d $dir/workspace ] ; then
d144 1
a144 1
			$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
d152 1
a152 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $derbyJars $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.27
log
@move copy from runtests to text.xml
@
text
@d127 1
a127 1
			derbyJars="-DderbyJars $derbyJars";
@


1.26
log
@move derby to OTHER eclipse/plugins folder (under target/)
@
text
@d124 1
a124 1
	# Copy derby into plugins folder
d127 5
a131 4
			echo "[runtests] Copy derby jars and plugin.xml into eclipse/plugins/org.apache.derby/";
			mkdir -p					$dir/target/eclipse/plugins/org.apache.derby/
			cp $derbyJars/*.jar			$dir/target/eclipse/plugins/org.apache.derby/
			cp $derbyJars/plugin.xml	$dir/target/eclipse/plugins/org.apache.derby/
d151 1
a151 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.25
log
@add refs to plugin.xml
@
text
@d128 3
a130 3
			mkdir -p					$dir/eclipse/plugins/org.apache.derby/
			cp $derbyJars/*.jar			$dir/eclipse/plugins/org.apache.derby/
			cp $derbyJars/plugin.xml	$dir/eclipse/plugins/org.apache.derby/
@


1.24
log
@move Xflags to earlier part in the commandline
@
text
@d127 4
a130 3
			echo "[runtests] Copy derby jars into eclipse/plugins/org.apache.derby/";
			mkdir -p $dir/eclipse/plugins/org.apache.derby/
			cp $derbyJars/*.jar $dir/eclipse/plugins/org.apache.derby/
@


1.23
log
@passing in params better
@
text
@d149 1
a149 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger $Xflags";
@


1.22
log
@fix derby config
@
text
@d33 2
d49 2
a50 1
		*) tests=$tests\ $1;;
d149 1
a149 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.21
log
@reorder -D flags
@
text
@a15 1
lib="";
d29 4
d46 1
a46 1
		-lib) lib="$2";shift;;
d121 9
a133 1

a144 1
	export ANT_HOME=/home/www-data/.ant/lib
d146 1
a146 1
	execCmd "$vm $tests -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.20
log
@add ant home value
@
text
@d136 1
a136 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.19
log
@*** empty log message ***
@
text
@d133 2
d136 1
a136 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -logfile /tmp/antRunner-$USER.log.txt -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.18
log
@*** empty log message ***
@
text
@d134 1
a134 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -lib $lib -logfile /tmp/antRunner.log.txt -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.17
log
@add -lib and -logfile
@
text
@d134 1
a134 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -lib $lib -logfile $dir/antRunner.log.txt -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.16
log
@trying to get derby to work w/ perf testing
@
text
@d16 1
d43 1
d134 1
a134 1
	execCmd "$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.15
log
@try with /path/to/derby instead of localhost
@
text
@d14 3
d41 1
d125 1
a125 1
			$vm -cp eclipse/startup.jar org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
d132 1
a132 1
	execCmd "$vm -cp eclipse/startup.jar org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
@


1.14
log
@tweak execCmd()
@
text
@d64 2
a65 6
	echo " "; echo "[`date +%k\:%M\:%S`]"; echo "  $1" | sed -e 's/\ \-/\\ \ \ \ \-/g' | tr "" "\n"; 
	if [ "x$2" != "x" ]; then
		$1 > $2;
	else 
		$1;
	fi
d87 1
a87 1
		echo -n "[runtests] $sdk ... ";
d90 1
a90 1
			echo "zip";
d95 1
a95 1
				echo "tar.gz";
d100 1
a100 1
					echo "tar.Z";
d103 1
a103 1
					echo "[runtests] SDK '$sdk' is of an unknown file type. Script aborting!";
d109 1
a109 1

d120 1
a120 1
			echo "[runtests] [`date +%k\:%M\:%S`] Launching Eclipse (installmode = $installmode) ..."
d122 1
a122 1
			echo "[runtests] [`date +%k\:%M\:%S`] Eclipse run completed. "
d127 1
a127 1
	echo "[runtests] [`date +%k\:%M\:%S`] Launching Eclipse (installmode = $installmode) ..."
d129 1
a129 1
	echo "[runtests] [`date +%k\:%M\:%S`] Eclipse test run completed. "
@


1.13
log
@processing...
@
text
@d64 6
a69 1
	echo " "; echo "[`date +%k\:%M\:%S`]"; echo "  $1" | sed -e 's/\ \-/\\ \ \ \ \-/g' | tr "" "\n"; $1
@


1.12
log
@first pass at enabling derby to store data
@
text
@d62 5
d127 2
a128 4
	cmd="$vm -cp eclipse/startup.jar org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
	echo "$cmd";
	$cmd;
	echo "[runtests] [`date +%k\:%M\:%S`] Eclipse run completed. "
@


1.11
log
@implement support for eclipse-SDK-*.tar.gz when running tests; turn off the targz2zip target in checkEclipseZipExists.xml; point testing.properties at the IBM JRE .tar.gz instead of the repacked .zip
@
text
@d113 1
d122 3
a124 1
	$vm -cp eclipse/startup.jar org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml $tests -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger
@


1.10
log
@remove unneeded code for copying/overriding; fix applied to o.e.e.releng.build\tests\customTargets.xml
@
text
@d75 29
a103 1
	unzip -qq -o eclipse-SDK*.zip
@


1.9
log
@override default org.eclipse.test/JUNIT.XSL with new custom version
@
text
@a77 5
	# experimenting... trying to override JUNIT.XSL in org.eclipse.test with custom version
	#echo -n "Source: "; cat $dir/plugins/org.eclipse.test/JUNIT.XSL | grep -c "e";
	#echo -n "Target: "; cat ../../staticDropFiles/junit.xsl | grep -c "e";
	#cp ../../staticDropFiles/junit.xsl $dir/plugins/org.eclipse.test/JUNIT.XSL
	
@


1.8
log
@*** empty log message ***
@
text
@d77 5
@


1.7
log
@better logging
@
text
@a5 1

@


1.6
log
@clean out errors in log
@
text
@d86 3
a88 1
			 $vm -cp eclipse/startup.jar org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
d93 1
d95 1
@


1.5
log
@This script is supposed to be named without the file extension so a user can type "runtests" to run the tests on Windows and on Linux.
@
text
@d70 6
a75 2
	rm -r eclipse
	rm -r workspace
d98 1
a98 1
fi
@


1.4
log
@renamed to runtests.sh; trying to fix problems w/ running .sh scripts from Ant under IBM JDK
@
text
@d94 1
a94 1
fi@


1.3
log
@"# !/bin/sh" -> "#!/bin/sh"
@
text
@@


1.2
log
@*** empty log message ***
@
text
@d1 1
a1 1
# !/bin/sh
@


1.2.2.1
log
@replace <exec> with <unzip>; add more debugging into runtests script
@
text
@d1 1
a1 1
#!/bin/sh
d6 1
d70 2
a71 6
	if [ -d $dir/eclipse ] ; then
		rm -rf $dir/eclipse
	fi
	if [ -d $dir/workspace ] ; then
		rm -rf $dir/workspace
	fi
d82 1
a82 3
			echo "[runtests] [`date +%k\:%M\:%S`] Launching Eclipse (installmode = $installmode) ..."
			$vm -cp eclipse/startup.jar org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
			echo "[runtests] [`date +%k\:%M\:%S`] Eclipse run completed. "
a86 1
	echo "[runtests] [`date +%k\:%M\:%S`] Launching Eclipse (installmode = $installmode) ..."
a87 1
	echo "[runtests] [`date +%k\:%M\:%S`] Eclipse run completed. "
@


1.2.2.2
log
@implement support for eclipse-SDK-*.tar.gz when running tests; turn off the targz2zip target in checkEclipseZipExists.xml; point testing.properties at the IBM JRE .tar.gz instead of the repacked .zip
@
text
@d75 1
a75 29

	# need conditional processing here: M3.0.2 = zip, I3.1.0 = tar.gz
	sdks=`find $dir -name "eclipse-SDK-*"`
	# get extension from file(s)
	for sdk in $sdks; do
		sdk="eclipse"${sdk##*eclipse}; # trim up to eclipse (substring notation)
		echo -n "[runtests] $sdk ... ";
		ext=${sdk%%\.zip}; # trim off .zip (substring notation)
		if [ "$ext" != "$sdk" ]; then # it's a zip
			echo "zip";
			unzip -qq -o $sdk
		else
			ext=${sdk%%\.tar\.gz}; # trim off .tar.gz (substring notation)
			if [ "$ext" != "$sdk" ]; then # it's a tar.gz
				echo "tar.gz";
				tar -xzf $sdk
			else
				ext=${sdk%%\.tar\.Z}; # trim off .tar.Z (substring notation)
				if [ "$ext" != "$sdk" ]; then # it's a tar.Z
					echo "tar.Z";
					tar -xZf $sdk
				else
					echo "[runtests] SDK '$sdk' is of an unknown file type. Script aborting!";
					exit 2
				fi
			fi
		fi
	done

d77 1
a77 1

@


1.2.2.3
log
@merge changes in HEAD to R2_0_maint branch
@
text
@a13 3
# default classpath - can be overridden by relengbuildgtk.sh to include things like the org.apache.derby jars
cp="eclipse/startup.jar";

a16 4
# default target to run in org.eclipse.emf.releng.build/tests/scripts/test.xml
# for running performance tests only (bypass non-perf tests) use target "runPerfTestsOnly"
antTestTarget=all

a25 6
# path to derby jars (if using derby to store perf test results)
# eg., /opt/incubating-derby-10.0.2.1-bin/lib
# need access to the following jars: derby.jar, derbynet.jar, derbytools.jar, db2jcc.jar, db2jcc_license_c.jar
derbyJars="";
Xflags="";
Dflags="";
d38 1
a38 5
		-cp) cp="$2";shift;;
		-derbyJars) derbyJars="$2";shift;;
		-antTestTarget) antTestTarget="$2";shift;;
		-X*) Xflags=$Xflags\ $1;;
		-D*) Dflags=$Dflags\ $1;;
a61 6
execCmd ()
{
	echo ""; echo "[runtests] [`date +%H\:%M\:%S`]"; echo "  $1" | sed -e 's/\ \-/\\ \ \ \ \-/g' | tr "" "\n"; echo "";
	$1;
}

a63 1
workspaceDir="$dir/eclipse/workspace"
d72 1
a72 1
	if [ -d $workspaceDir ] ; then
d81 1
a81 1
		echo -n "[runtests] Eclipse SDK $sdk is a";
d84 1
a84 1
			echo " zip. Unpacking...";
d89 1
a89 1
				echo " tar.gz. Unpacking...";
d94 1
a94 1
					echo " tar.Z. Unpacking...";
d97 1
a97 1
					echo "n UNKNOWN file type. Script aborting!";
d103 1
a103 1
	echo "[runtests] Unpack JUnit Tests..."
a105 11
	# Copy derby into plugins folder (if folder exists)
	if [ "x$derbyJars" != "x" ]; then
		if [ -d $derbyJars ]; then
			derbyJars="-DderbyJars=$derbyJars";
			#echo "[runtests] Copy derby jars and plugin.xml into eclipse/plugins/org.apache.derby/";
			#mkdir -p					$dir/target/eclipse/plugins/org.apache.derby/
			#cp $derbyJars/*.jar			$dir/target/eclipse/plugins/org.apache.derby/
			#cp $derbyJars/plugin.xml	$dir/target/eclipse/plugins/org.apache.derby/
		fi
	fi

d107 1
a107 1
	then
d110 1
d113 3
a115 4
			# NB: this may not log perf data to derby properly... not sure if this if-block is ever used anymore
			echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget) ..."
			$vm -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml setup -Dws=$ws -Dos=$os -Darch=$arch -Dclean=true -logger org.apache.tools.ant.DefaultLogger
			echo "[runtests] [`date +%H\:%M\:%S`] Eclipse run completed. "
d120 4
a123 5

	echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode, antTestTarget = $antTestTarget) ..."
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $derbyJars $properties -logger org.apache.tools.ant.DefaultLogger";
	echo "[runtests] [`date +%H\:%M\:%S`] Eclipse test run completed. "

d127 1
a127 1

d129 1
a129 3
fi

## <!-- $Id: runtests,v 1.33 2005/04/19 20:44:37 nickb Exp $ --> ##@


1.2.2.4
log
@migrate changes in HEAD to R2_0_m
@
text
@d4 1
a4 1
vm=/opt/ibm-java2-1.4/bin/java
d14 1
a14 1
# default classpath - can be overridden by relengbuildgtk.sh
d21 1
d33 4
d52 1
d130 11
d147 1
a147 1
			# NB: this may not work. is this even ever used ?
d155 1
d157 1
a157 1
	execCmd "$vm $Xflags -cp $cp org.eclipse.core.launcher.Main -noupdate -ws $ws -os $os -arch $arch -application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget $Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $properties -logger org.apache.tools.ant.DefaultLogger";
d167 1
a167 1
## <!-- $Id: runtests,v 1.2.2.3 2005/05/27 18:04:15 nickb Exp $ --> ##@


1.1
log
@Move the EMF, XSD and SDO source code to the Eclipse.org repository
@
text
@d73 1
a73 1
	unzip -qq -o -C emf-xsd-sdo-JUnit-Tests-*.zip */plugins/org.eclipse.test*
@

