Skip to main content
summaryrefslogtreecommitdiffstats
blob: 29d0108cb480d39b39a809509846c6e02811993c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<%!
/*  Copyright 2008 IBM Corp.  All rights reserved.  This source code is made available under the terms of the Eclipse Public License, v1.0. */
%>
<project name="Customized testing instructions" default="customSetup">

	<property name="buildConfigFile" value="${testDir}/../../build.cfg" />
	<available file="${buildConfigFile}" type="file" property="buildConfigIsAvailable" />

	<target name="loadbuildConfig" if="buildConfigIsAvailable">
		<property file="${buildConfigFile}" />
	</target>

	<target name="customSetup">
		<fail unless="buildConfigIsAvailable" message="ERROR! Can't find ${buildConfigFile}"/>
		<antcall target="loadbuildConfig"/>
			
		<echo message="Unpack Eclipse SDK to ${testDir}..."/>
		<echo message="customTest.xml: basedir = ${basedir}"/>
		<property name="getTestDependencies.xml" value="${testDir}/../../org.eclipse.modeling.common.releng/scripts/getTestDependencies.xml"/>
		<ant target="getTestDependency" antfile="${getTestDependencies.xml}">
			<property name="basedir" value="${basedir}"/>
			<property name="url" value="${eclipseURL}"/>
			<property name="file" value="${eclipseFile}"/>
			<property name="unpackDest" value="${testDir}"/>
		</ant>
		
		<!-- TODO: if your project requires more dependencies for testing, add them here -->
		<echo message="Copy EMF SDK + Eclipse SDK to ${executionDir}..."/>
		<copy todir="${executionDir}">
			<fileset dir="${downloadsDir}" includes="${emfFile},${eclipseFile}"/>
		</copy>
		<property name="shell" value="relengbuildgtk.sh"/>
	
		<!--copy the script which invokes the tests -->
		<copy file="${tester}/${shell}" todir="${executionDir}"/>
		<chmod file="${executionDir}/${shell}" perm="ugo+rx"/>		

		<!--copy the testing.property files  -->
		<copy file="${tester}/testing.properties" todir="${executionDir}"/>

		<!-- at this point, we exit from this script and back into the parent script (presumably in pde or eclipse.releng?) -->
		<echo message="Running ${shell} ..."/>
	</target>
</project>

Back to the top