|
1 | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
2 | 2 |
|
3 | | -<project name="DBX Test Cases" default="build" basedir="."> |
4 | | - |
| 3 | +<project name="DBX Test Cases" default="build" xmlns:if="ant:if" xmlns:unless="ant:unless"> |
5 | 4 | <taskdef resource="net/sf/antcontrib/antlib.xml"/> |
6 | 5 |
|
7 | 6 | <fail unless="program" message="missing 'program' property. Example: ant -Dprogram=..\..\project\win32\debug\dbxfbTests.exe -Ddrivers=Y:\firebird" /> |
|
11 | 10 | <property name="program.conf" location="dbxfbTests.ini" /> |
12 | 11 |
|
13 | 12 | <target name="build" depends="t.platform,t.platform.testcount"> |
| 13 | + <for param="i" begin="1" end="${p.embedded.end}" parallel="true" keepgoing="true"> |
| 14 | + <sequential> |
| 15 | + <antcall target="dbx.test"> |
| 16 | + <param name="execute_fb_400_402" value="@{execute_fb_400_402}" /> |
| 17 | + <param name="index" value="@{i}" /> |
| 18 | + <param name="test" value="embedded_@{i}" /> |
| 19 | + <param name="suite" value="1" /> |
| 20 | + </antcall> |
| 21 | + </sequential> |
| 22 | + </for> |
| 23 | + |
14 | 24 | <for param="i" begin="1" end="${p.embedded.end}" parallel="true" keepgoing="true"> |
15 | 25 | <sequential> |
16 | 26 | <antcall target="dbx.test"> |
| 27 | + <param name="execute_fb_400_402" value="true" /> |
| 28 | + <param name="index" value="@{i}" /> |
17 | 29 | <param name="test" value="embedded_@{i}" /> |
18 | 30 | <param name="suite" value="1" /> |
19 | 31 | </antcall> |
|
43 | 55 | </for> |
44 | 56 | </target> |
45 | 57 |
|
46 | | - <target name="dbx.test"> |
| 58 | + <target name="dbx.test" depends="commit#d0e33f1" if="p.execute"> |
47 | 59 | <tempfile property="p.script" destdir="${env.TEMP}" suffix=".cmd"/> |
48 | 60 |
|
49 | 61 | <condition property="p.config" value="" else="release"> |
|
65 | 77 | <delete file="${p.script}" /> |
66 | 78 | </target> |
67 | 79 |
|
| 80 | + <target name="commit#d0e33f1" description="https://github.com/FirebirdSQL/firebird/issues/7347 commit d0e33f1: Use Windows private namespace for kernel objects used in server-to-server IPC"> |
| 81 | + <condition property="is.win32"> |
| 82 | + <contains string="${program}" substring="win32" casesensitive="false" /> |
| 83 | + </condition> |
| 84 | + |
| 85 | + <condition property="is.win64"> |
| 86 | + <contains string="${program}" substring="win64" casesensitive="false" /> |
| 87 | + </condition> |
| 88 | + |
| 89 | + <condition property="p.execute"> |
| 90 | + <xor> |
| 91 | + <isfalse value="${execute_fb_400_402}" /> |
| 92 | + <or> |
| 93 | + <equals if:set="is.win32" arg1="${index}" arg2="44" /> <!-- Firebird 4.0.0 --> |
| 94 | + <equals if:set="is.win32" arg1="${index}" arg2="45" /> <!-- Firebird 4.0.1 --> |
| 95 | + <equals if:set="is.win32" arg1="${index}" arg2="46" /> <!-- Firebird 4.0.2 --> |
| 96 | + |
| 97 | + <equals if:set="is.win64" arg1="${index}" arg2="29" /> <!-- Firebird 4.0.0 --> |
| 98 | + <equals if:set="is.win64" arg1="${index}" arg2="30" /> <!-- Firebird 4.0.1 --> |
| 99 | + <equals if:set="is.win64" arg1="${index}" arg2="31" /> <!-- Firebird 4.0.2 --> |
| 100 | + </or> |
| 101 | + </xor> |
| 102 | + </condition> |
| 103 | + </target> |
| 104 | + |
68 | 105 | <target name="t.platform"> |
69 | 106 | <fail unless="program" /> |
70 | 107 | <condition property="p.platform" value="Win32" else="Win64"> |
|
0 commit comments