ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 2 | <project name="JUnit tests" basedir="."> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 3 | |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 4 | <property environment="env" /> |
| 5 | <!-- basedir should be "eclipse-home", the eclipse install being tested --> |
| 6 | |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 7 | <property name="library-xml-file" |
| 8 | value="${basedir}/plugins/org.eclipse.test_3.1.0/library.xml" /> |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 9 | |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 10 | <import file="${library-xml-file}" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 11 | |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 12 | |
david_williams | e00bd35 | 2007-03-11 22:41:46 +0000 | [diff] [blame] | 13 | <property name="junit-report-output" |
david_williams | 50c0a0a | 2007-03-12 07:33:53 +0000 | [diff] [blame] | 14 | value="${basedir}/results" /> |
david_williams | e00bd35 | 2007-03-11 22:41:46 +0000 | [diff] [blame] | 15 | |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 16 | <property name="otherVMArgs" |
| 17 | value=" -Dwtp.autotest.noninteractive=true -Dosgi.clean=true -Dosgi.ws=${env.BASEWS} -Dosgi.os=${env.BASEOS} -Dosgi.arch=${env.BASEARCH}" /> |
| 18 | |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 19 | <target name="core-test"> |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 20 | <echo message="test-type: core-test" /> |
| 21 | |
| 22 | <echo message="basedir: ${basedir}" /> |
| 23 | <echo message="basedir: ${basedir}" /> |
| 24 | <echo message="library-xml-file: ${library-xml-file}" /> |
| 25 | <echo message="junit-report-output: ${junit-report-output}" /> |
| 26 | <!-- if not otherwise set, be sure extraVMargs is at least empty string --> |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 27 | <property name="extraVMargs" value="" /> |
david_williams | b9b0477 | 2007-03-13 06:34:15 +0000 | [diff] [blame] | 28 | |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 29 | <mkdir dir="${junit-report-output}" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 30 | |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 31 | <ant antfile="${library-xml-file}" |
| 32 | target="eclipse-test"> |
david_williams | dd6480b | 2007-03-13 07:43:22 +0000 | [diff] [blame] | 33 | <property name="application" |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 34 | value="org.eclipse.test.coretestapplication" /> |
| 35 | <property name="extraVMargs" |
| 36 | value="${extraVMargs} ${otherVMArgs}" /> |
david_williams | 5b60a13 | 2007-03-13 22:44:25 +0000 | [diff] [blame^] | 37 | <property name="timeout" value="1700000" /> |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 38 | <property name="junit-report-output" |
| 39 | value="${junit-report-output}" /> |
| 40 | <property name="plugin-path" |
| 41 | value="${basedir}/plugins/${plugin-name}" /> |
| 42 | <property name="formatter" |
| 43 | value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" /> |
| 44 | <property name="test-output" |
| 45 | value="${eclipse-home}/${classname}.xml" /> |
| 46 | <property name="useEclispeExe" value="true" /> |
| 47 | </ant> |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 48 | </target> |
| 49 | |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 50 | |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 51 | <target name="ui-test"> |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 52 | <echo message="test-type: ui-test" /> |
| 53 | |
| 54 | <echo message="basedir: ${basedir}" /> |
| 55 | <echo message="eclipse.home: ${eclipse.home}" /> |
| 56 | <echo message="library-xml-file: ${library-xml-file}" /> |
| 57 | <echo message="junit-report-output: ${junit-report-output}" /> |
| 58 | <!-- if not otherwise set, be sure extraVMargs is at least empty string --> |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 59 | <property name="extraVMargs" value="" /> |
| 60 | <mkdir dir="${junit-report-output}" /> |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 61 | |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 62 | <ant antfile="${library-xml-file}" |
| 63 | target="eclipse-test"> |
| 64 | <property name="application" |
| 65 | value="org.eclipse.test.uitestapplication" /> |
| 66 | <property name="extraVMargs" |
david_williams | b9b0477 | 2007-03-13 06:34:15 +0000 | [diff] [blame] | 67 | value="${extraVMargs} ${otherVMArgs}" /> |
david_williams | 02ac65b | 2007-03-13 05:06:34 +0000 | [diff] [blame] | 68 | <property name="timeout" value="600000" /> |
| 69 | <property name="junit-report-output" |
| 70 | value="${junit-report-output}" /> |
| 71 | <property name="plugin-path" |
| 72 | value="${basedir}/plugins/${plugin-name}" /> |
| 73 | <property name="formatter" |
| 74 | value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter" /> |
| 75 | <property name="test-output" |
| 76 | value="${eclipse-home}/${classname}.xml" /> |
| 77 | <property name="useEclispeExe" value="true" /> |
| 78 | </ant> |
david_williams | 746e7d6 | 2007-03-11 09:17:59 +0000 | [diff] [blame] | 79 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 80 | |
| 81 | </project> |