diff options
author | Justin Clark-Casey (justincc) | 2010-09-11 01:13:08 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-09-11 01:13:08 +0100 |
commit | 7e65590a55ba575d0086bdfc25addaf1051d799b (patch) | |
tree | 1dc11683170d45d80d7aab6eefdfcc836d3e773b /Prebuild/tests | |
parent | Make it clear that the "create region" command will reference ini files in th... (diff) | |
download | opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.zip opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.gz opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.bz2 opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.xz |
Update Prebuild.exe with Prebuild r323 + an existing OpenSim specific nant hack to correctly clean up chosen OpenSim exes and dlls in bin/ on a "nant clean"
Source code is included for reference. This can go away again once Prebuild is updated with a more general mechanism for cleaning up files.
The Prebuild source code here can be built with nant, or regnerated for other tools using the prebuild at {root}/bin/Prebuild.exe
Diffstat (limited to '')
20 files changed, 763 insertions, 0 deletions
diff --git a/Prebuild/tests/.svn/all-wcprops b/Prebuild/tests/.svn/all-wcprops new file mode 100644 index 0000000..0668acb --- /dev/null +++ b/Prebuild/tests/.svn/all-wcprops | |||
@@ -0,0 +1,59 @@ | |||
1 | K 25 | ||
2 | svn:wc:ra_dav:version-url | ||
3 | V 47 | ||
4 | /svnroot/dnpb/!svn/ver/280/trunk/Prebuild/tests | ||
5 | END | ||
6 | include-001.expected | ||
7 | K 25 | ||
8 | svn:wc:ra_dav:version-url | ||
9 | V 68 | ||
10 | /svnroot/dnpb/!svn/ver/279/trunk/Prebuild/tests/include-001.expected | ||
11 | END | ||
12 | include-002.expected | ||
13 | K 25 | ||
14 | svn:wc:ra_dav:version-url | ||
15 | V 68 | ||
16 | /svnroot/dnpb/!svn/ver/280/trunk/Prebuild/tests/include-002.expected | ||
17 | END | ||
18 | include-001.include | ||
19 | K 25 | ||
20 | svn:wc:ra_dav:version-url | ||
21 | V 67 | ||
22 | /svnroot/dnpb/!svn/ver/279/trunk/Prebuild/tests/include-001.include | ||
23 | END | ||
24 | include-002-2.include | ||
25 | K 25 | ||
26 | svn:wc:ra_dav:version-url | ||
27 | V 69 | ||
28 | /svnroot/dnpb/!svn/ver/280/trunk/Prebuild/tests/include-002-2.include | ||
29 | END | ||
30 | include-002.include | ||
31 | K 25 | ||
32 | svn:wc:ra_dav:version-url | ||
33 | V 67 | ||
34 | /svnroot/dnpb/!svn/ver/280/trunk/Prebuild/tests/include-002.include | ||
35 | END | ||
36 | include-001.prebuild | ||
37 | K 25 | ||
38 | svn:wc:ra_dav:version-url | ||
39 | V 68 | ||
40 | /svnroot/dnpb/!svn/ver/279/trunk/Prebuild/tests/include-001.prebuild | ||
41 | END | ||
42 | include-002.prebuild | ||
43 | K 25 | ||
44 | svn:wc:ra_dav:version-url | ||
45 | V 68 | ||
46 | /svnroot/dnpb/!svn/ver/280/trunk/Prebuild/tests/include-002.prebuild | ||
47 | END | ||
48 | README.txt | ||
49 | K 25 | ||
50 | svn:wc:ra_dav:version-url | ||
51 | V 58 | ||
52 | /svnroot/dnpb/!svn/ver/279/trunk/Prebuild/tests/README.txt | ||
53 | END | ||
54 | Makefile | ||
55 | K 25 | ||
56 | svn:wc:ra_dav:version-url | ||
57 | V 56 | ||
58 | /svnroot/dnpb/!svn/ver/279/trunk/Prebuild/tests/Makefile | ||
59 | END | ||
diff --git a/Prebuild/tests/.svn/entries b/Prebuild/tests/.svn/entries new file mode 100644 index 0000000..2a70cf9 --- /dev/null +++ b/Prebuild/tests/.svn/entries | |||
@@ -0,0 +1,334 @@ | |||
1 | 10 | ||
2 | |||
3 | dir | ||
4 | 323 | ||
5 | https://dnpb.svn.sourceforge.net/svnroot/dnpb/trunk/Prebuild/tests | ||
6 | https://dnpb.svn.sourceforge.net/svnroot/dnpb | ||
7 | |||
8 | |||
9 | |||
10 | 2008-12-10T02:26:03.443834Z | ||
11 | 280 | ||
12 | dmoonfire | ||
13 | |||
14 | |||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
20 | |||
21 | |||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | 3355ff64-970d-0410-bbe8-d0fbd18be4fb | ||
28 | |||
29 | include-001.expected | ||
30 | file | ||
31 | |||
32 | |||
33 | |||
34 | |||
35 | 2010-09-10T22:51:45.000000Z | ||
36 | d65010a81975867917d4468950ec7ccc | ||
37 | 2008-12-10T02:04:22.474237Z | ||
38 | 279 | ||
39 | dmoonfire | ||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | 1784 | ||
62 | |||
63 | include-002.expected | ||
64 | file | ||
65 | |||
66 | |||
67 | |||
68 | |||
69 | 2010-09-10T22:51:45.000000Z | ||
70 | dcef68172b57f9e1b2228f1dba535934 | ||
71 | 2008-12-10T02:26:03.443834Z | ||
72 | 280 | ||
73 | dmoonfire | ||
74 | |||
75 | |||
76 | |||
77 | |||
78 | |||
79 | |||
80 | |||
81 | |||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | 1150 | ||
96 | |||
97 | include-001.include | ||
98 | file | ||
99 | |||
100 | |||
101 | |||
102 | |||
103 | 2010-09-10T22:51:45.000000Z | ||
104 | 92601282deffe7c461f80b407525446d | ||
105 | 2008-12-10T02:04:22.474237Z | ||
106 | 279 | ||
107 | dmoonfire | ||
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | |||
116 | |||
117 | |||
118 | |||
119 | |||
120 | |||
121 | |||
122 | |||
123 | |||
124 | |||
125 | |||
126 | |||
127 | |||
128 | |||
129 | 983 | ||
130 | |||
131 | include-002-2.include | ||
132 | file | ||
133 | |||
134 | |||
135 | |||
136 | |||
137 | 2010-09-10T22:51:45.000000Z | ||
138 | d9f24dc85d95d7310516187910433c8c | ||
139 | 2008-12-10T02:26:03.443834Z | ||
140 | 280 | ||
141 | dmoonfire | ||
142 | |||
143 | |||
144 | |||
145 | |||
146 | |||
147 | |||
148 | |||
149 | |||
150 | |||
151 | |||
152 | |||
153 | |||
154 | |||
155 | |||
156 | |||
157 | |||
158 | |||
159 | |||
160 | |||
161 | |||
162 | |||
163 | 307 | ||
164 | |||
165 | include-002.include | ||
166 | file | ||
167 | |||
168 | |||
169 | |||
170 | |||
171 | 2010-09-10T22:51:45.000000Z | ||
172 | 44815ffa6c2dc32d4df9977b5fe49ca4 | ||
173 | 2008-12-10T02:26:03.443834Z | ||
174 | 280 | ||
175 | dmoonfire | ||
176 | |||
177 | |||
178 | |||
179 | |||
180 | |||
181 | |||
182 | |||
183 | |||
184 | |||
185 | |||
186 | |||
187 | |||
188 | |||
189 | |||
190 | |||
191 | |||
192 | |||
193 | |||
194 | |||
195 | |||
196 | |||
197 | 332 | ||
198 | |||
199 | include-001.prebuild | ||
200 | file | ||
201 | |||
202 | |||
203 | |||
204 | |||
205 | 2010-09-10T22:51:45.000000Z | ||
206 | d01a5391189ada3dcd7d3becf254f151 | ||
207 | 2008-12-10T02:04:22.474237Z | ||
208 | 279 | ||
209 | dmoonfire | ||
210 | |||
211 | |||
212 | |||
213 | |||
214 | |||
215 | |||
216 | |||
217 | |||
218 | |||
219 | |||
220 | |||
221 | |||
222 | |||
223 | |||
224 | |||
225 | |||
226 | |||
227 | |||
228 | |||
229 | |||
230 | |||
231 | 742 | ||
232 | |||
233 | include-002.prebuild | ||
234 | file | ||
235 | |||
236 | |||
237 | |||
238 | |||
239 | 2010-09-10T22:51:45.000000Z | ||
240 | 22ad11b07dd489b41ec998e03c83a397 | ||
241 | 2008-12-10T02:26:03.443834Z | ||
242 | 280 | ||
243 | dmoonfire | ||
244 | |||
245 | |||
246 | |||
247 | |||
248 | |||
249 | |||
250 | |||
251 | |||
252 | |||
253 | |||
254 | |||
255 | |||
256 | |||
257 | |||
258 | |||
259 | |||
260 | |||
261 | |||
262 | |||
263 | |||
264 | |||
265 | 289 | ||
266 | |||
267 | README.txt | ||
268 | file | ||
269 | |||
270 | |||
271 | |||
272 | |||
273 | 2010-09-10T22:51:45.000000Z | ||
274 | 6b111c08a76e929cb94b77c99774ef78 | ||
275 | 2008-12-10T02:04:22.474237Z | ||
276 | 279 | ||
277 | dmoonfire | ||
278 | |||
279 | |||
280 | |||
281 | |||
282 | |||
283 | |||
284 | |||
285 | |||
286 | |||
287 | |||
288 | |||
289 | |||
290 | |||
291 | |||
292 | |||
293 | |||
294 | |||
295 | |||
296 | |||
297 | |||
298 | |||
299 | 326 | ||
300 | |||
301 | Makefile | ||
302 | file | ||
303 | |||
304 | |||
305 | |||
306 | |||
307 | 2010-09-10T22:51:45.000000Z | ||
308 | eed6712c3f5e4478d92137f6657aba56 | ||
309 | 2008-12-10T02:04:22.474237Z | ||
310 | 279 | ||
311 | dmoonfire | ||
312 | |||
313 | |||
314 | |||
315 | |||
316 | |||
317 | |||
318 | |||
319 | |||
320 | |||
321 | |||
322 | |||
323 | |||
324 | |||
325 | |||
326 | |||
327 | |||
328 | |||
329 | |||
330 | |||
331 | |||
332 | |||
333 | 456 | ||
334 | |||
diff --git a/Prebuild/tests/.svn/text-base/Makefile.svn-base b/Prebuild/tests/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..4a8ddf4 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/Makefile.svn-base | |||
@@ -0,0 +1,24 @@ | |||
1 | # | ||
2 | # Executable | ||
3 | # | ||
4 | |||
5 | # Executables | ||
6 | PREBUILD = mono ../src/bin/Release/prebuild.exe /target makefile | ||
7 | |||
8 | # Files | ||
9 | PREBUILDS = $(wildcard *.prebuild) | ||
10 | RESULTS = $(PREBUILDS:prebuild=results) | ||
11 | TESTS = $(PREBUILDS:prebuild=test) | ||
12 | |||
13 | all: $(TESTS) | ||
14 | |||
15 | clean: | ||
16 | rm -f *~ *.log | ||
17 | rm -f $(RESULTS) | ||
18 | |||
19 | %.test: %.prebuild | ||
20 | $(PREBUILD) /log $*.log /file $*.prebuild /ppi $*.results >& /dev/null | ||
21 | if ! cmp $*.expected $*.results; then \ | ||
22 | echo $*.prebuild failed; \ | ||
23 | false; \ | ||
24 | fi | ||
diff --git a/Prebuild/tests/.svn/text-base/README.txt.svn-base b/Prebuild/tests/.svn/text-base/README.txt.svn-base new file mode 100644 index 0000000..2c2de3b --- /dev/null +++ b/Prebuild/tests/.svn/text-base/README.txt.svn-base | |||
@@ -0,0 +1,5 @@ | |||
1 | There are some tests that are run via a Makfile in this | ||
2 | directory. They haven't been included in any form of unit tests, but | ||
3 | they are there to help test the functionality in some what. Simply | ||
4 | build prebuild (so there is a src/bin/Release/prebuild.exe) and type | ||
5 | `make` in this directory. Everything should pass without errors. | ||
diff --git a/Prebuild/tests/.svn/text-base/include-001.expected.svn-base b/Prebuild/tests/.svn/text-base/include-001.expected.svn-base new file mode 100644 index 0000000..26374b5 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-001.expected.svn-base | |||
@@ -0,0 +1,46 @@ | |||
1 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
2 | <Solution name="include-001" version="1.2.3"> | ||
3 | <Configuration name="Debug"> | ||
4 | <Options> | ||
5 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
6 | <OptimizeCode>false</OptimizeCode> | ||
7 | <OutputPath>bin/Debug</OutputPath> | ||
8 | <DebugInformation>true</DebugInformation> | ||
9 | </Options> | ||
10 | </Configuration> | ||
11 | <Configuration name="Release"> | ||
12 | <Options> | ||
13 | <CompilerDefines>TRACE</CompilerDefines> | ||
14 | <OutputPath>bin/Release</OutputPath> | ||
15 | <OptimizeCode>true</OptimizeCode> | ||
16 | <DebugInformation>false</DebugInformation> | ||
17 | </Options> | ||
18 | </Configuration> | ||
19 | <Project name="Prebuild" path="src" language="C#" assemblyName="include-001" type="Exe" version="1.2.3" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
20 | <Configuration name="Debug"> | ||
21 | <Options> | ||
22 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
23 | <OptimizeCode>false</OptimizeCode> | ||
24 | <OutputPath>bin/Debug</OutputPath> | ||
25 | <DebugInformation>true</DebugInformation> | ||
26 | <KeyFile>Prebuild.snk</KeyFile> | ||
27 | <SuppressWarnings>1595</SuppressWarnings> | ||
28 | </Options> | ||
29 | </Configuration> | ||
30 | <Configuration name="Release"> | ||
31 | <Options> | ||
32 | <CompilerDefines>TRACE</CompilerDefines> | ||
33 | <OutputPath>bin/Release</OutputPath> | ||
34 | <OptimizeCode>true</OptimizeCode> | ||
35 | <DebugInformation>false</DebugInformation> | ||
36 | <KeyFile>Prebuild.snk</KeyFile> | ||
37 | <SuppressWarnings>1595</SuppressWarnings> | ||
38 | </Options> | ||
39 | </Configuration> | ||
40 | <Reference name="System" /> | ||
41 | <Files> | ||
42 | <Match pattern="*.cs" recurse="true" /> | ||
43 | </Files> | ||
44 | </Project> | ||
45 | </Solution> | ||
46 | </Prebuild> | ||
diff --git a/Prebuild/tests/.svn/text-base/include-001.include.svn-base b/Prebuild/tests/.svn/text-base/include-001.include.svn-base new file mode 100644 index 0000000..7f75962 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-001.include.svn-base | |||
@@ -0,0 +1,33 @@ | |||
1 | <Project name="Prebuild" | ||
2 | path="src" | ||
3 | language="C#" | ||
4 | assemblyName="include-001" | ||
5 | type="Exe" | ||
6 | version="1.2.3" | ||
7 | xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" | ||
8 | > | ||
9 | <Configuration name="Debug"> | ||
10 | <Options> | ||
11 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
12 | <OptimizeCode>false</OptimizeCode> | ||
13 | <OutputPath>bin/Debug</OutputPath> | ||
14 | <DebugInformation>true</DebugInformation> | ||
15 | <KeyFile>Prebuild.snk</KeyFile> | ||
16 | <SuppressWarnings>1595</SuppressWarnings> | ||
17 | </Options> | ||
18 | </Configuration> | ||
19 | <Configuration name="Release"> | ||
20 | <Options> | ||
21 | <CompilerDefines>TRACE</CompilerDefines> | ||
22 | <OutputPath>bin/Release</OutputPath> | ||
23 | <OptimizeCode>true</OptimizeCode> | ||
24 | <DebugInformation>false</DebugInformation> | ||
25 | <KeyFile>Prebuild.snk</KeyFile> | ||
26 | <SuppressWarnings>1595</SuppressWarnings> | ||
27 | </Options> | ||
28 | </Configuration> | ||
29 | <Reference name="System" /> | ||
30 | <Files> | ||
31 | <Match pattern="*.cs" recurse="true"/> | ||
32 | </Files> | ||
33 | </Project> | ||
diff --git a/Prebuild/tests/.svn/text-base/include-001.prebuild.svn-base b/Prebuild/tests/.svn/text-base/include-001.prebuild.svn-base new file mode 100644 index 0000000..8047008 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-001.prebuild.svn-base | |||
@@ -0,0 +1,22 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" ?> | ||
2 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
3 | <Solution name="include-001" version="1.2.3"> | ||
4 | <Configuration name="Debug"> | ||
5 | <Options> | ||
6 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
7 | <OptimizeCode>false</OptimizeCode> | ||
8 | <OutputPath>bin/Debug</OutputPath> | ||
9 | <DebugInformation>true</DebugInformation> | ||
10 | </Options> | ||
11 | </Configuration> | ||
12 | <Configuration name="Release"> | ||
13 | <Options> | ||
14 | <CompilerDefines>TRACE</CompilerDefines> | ||
15 | <OutputPath>bin/Release</OutputPath> | ||
16 | <OptimizeCode>true</OptimizeCode> | ||
17 | <DebugInformation>false</DebugInformation> | ||
18 | </Options> | ||
19 | </Configuration> | ||
20 | <?include file="include-001.include"?> | ||
21 | </Solution> | ||
22 | </Prebuild> | ||
diff --git a/Prebuild/tests/.svn/text-base/include-002-2.include.svn-base b/Prebuild/tests/.svn/text-base/include-002-2.include.svn-base new file mode 100644 index 0000000..661b7f3 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-002-2.include.svn-base | |||
@@ -0,0 +1,8 @@ | |||
1 | <Configuration name="Debug" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
2 | <Options> | ||
3 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
4 | <OptimizeCode>false</OptimizeCode> | ||
5 | <OutputPath>bin/Debug</OutputPath> | ||
6 | <DebugInformation>true</DebugInformation> | ||
7 | </Options> | ||
8 | </Configuration> | ||
diff --git a/Prebuild/tests/.svn/text-base/include-002.expected.svn-base b/Prebuild/tests/.svn/text-base/include-002.expected.svn-base new file mode 100644 index 0000000..9849658 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-002.expected.svn-base | |||
@@ -0,0 +1,26 @@ | |||
1 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
2 | <Solution name="include-002" version="1.2.3"> | ||
3 | <Configuration name="Debug" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
4 | <Options> | ||
5 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
6 | <OptimizeCode>false</OptimizeCode> | ||
7 | <OutputPath>bin/Debug</OutputPath> | ||
8 | <DebugInformation>true</DebugInformation> | ||
9 | </Options> | ||
10 | </Configuration> | ||
11 | <Project name="Prebuild" path="src" language="C#" assemblyName="include-001" type="Exe" version="1.2.3" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
12 | <Configuration name="Debug" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
13 | <Options> | ||
14 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
15 | <OptimizeCode>false</OptimizeCode> | ||
16 | <OutputPath>bin/Debug</OutputPath> | ||
17 | <DebugInformation>true</DebugInformation> | ||
18 | </Options> | ||
19 | </Configuration> | ||
20 | <Reference name="System" /> | ||
21 | <Files> | ||
22 | <Match pattern="*.cs" recurse="true" /> | ||
23 | </Files> | ||
24 | </Project> | ||
25 | </Solution> | ||
26 | </Prebuild> | ||
diff --git a/Prebuild/tests/.svn/text-base/include-002.include.svn-base b/Prebuild/tests/.svn/text-base/include-002.include.svn-base new file mode 100644 index 0000000..64f4058 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-002.include.svn-base | |||
@@ -0,0 +1,14 @@ | |||
1 | <Project name="Prebuild" | ||
2 | path="src" | ||
3 | language="C#" | ||
4 | assemblyName="include-001" | ||
5 | type="Exe" | ||
6 | version="1.2.3" | ||
7 | xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" | ||
8 | > | ||
9 | <?include file="include-002-2.include"?> | ||
10 | <Reference name="System" /> | ||
11 | <Files> | ||
12 | <Match pattern="*.cs" recurse="true"/> | ||
13 | </Files> | ||
14 | </Project> | ||
diff --git a/Prebuild/tests/.svn/text-base/include-002.prebuild.svn-base b/Prebuild/tests/.svn/text-base/include-002.prebuild.svn-base new file mode 100644 index 0000000..9e85f20 --- /dev/null +++ b/Prebuild/tests/.svn/text-base/include-002.prebuild.svn-base | |||
@@ -0,0 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" ?> | ||
2 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
3 | <Solution name="include-002" version="1.2.3"> | ||
4 | <?include file="include-002-2.include"?> | ||
5 | <?include file="include-002.include"?> | ||
6 | </Solution> | ||
7 | </Prebuild> | ||
diff --git a/Prebuild/tests/Makefile b/Prebuild/tests/Makefile new file mode 100644 index 0000000..4a8ddf4 --- /dev/null +++ b/Prebuild/tests/Makefile | |||
@@ -0,0 +1,24 @@ | |||
1 | # | ||
2 | # Executable | ||
3 | # | ||
4 | |||
5 | # Executables | ||
6 | PREBUILD = mono ../src/bin/Release/prebuild.exe /target makefile | ||
7 | |||
8 | # Files | ||
9 | PREBUILDS = $(wildcard *.prebuild) | ||
10 | RESULTS = $(PREBUILDS:prebuild=results) | ||
11 | TESTS = $(PREBUILDS:prebuild=test) | ||
12 | |||
13 | all: $(TESTS) | ||
14 | |||
15 | clean: | ||
16 | rm -f *~ *.log | ||
17 | rm -f $(RESULTS) | ||
18 | |||
19 | %.test: %.prebuild | ||
20 | $(PREBUILD) /log $*.log /file $*.prebuild /ppi $*.results >& /dev/null | ||
21 | if ! cmp $*.expected $*.results; then \ | ||
22 | echo $*.prebuild failed; \ | ||
23 | false; \ | ||
24 | fi | ||
diff --git a/Prebuild/tests/README.txt b/Prebuild/tests/README.txt new file mode 100644 index 0000000..2c2de3b --- /dev/null +++ b/Prebuild/tests/README.txt | |||
@@ -0,0 +1,5 @@ | |||
1 | There are some tests that are run via a Makfile in this | ||
2 | directory. They haven't been included in any form of unit tests, but | ||
3 | they are there to help test the functionality in some what. Simply | ||
4 | build prebuild (so there is a src/bin/Release/prebuild.exe) and type | ||
5 | `make` in this directory. Everything should pass without errors. | ||
diff --git a/Prebuild/tests/include-001.expected b/Prebuild/tests/include-001.expected new file mode 100644 index 0000000..26374b5 --- /dev/null +++ b/Prebuild/tests/include-001.expected | |||
@@ -0,0 +1,46 @@ | |||
1 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
2 | <Solution name="include-001" version="1.2.3"> | ||
3 | <Configuration name="Debug"> | ||
4 | <Options> | ||
5 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
6 | <OptimizeCode>false</OptimizeCode> | ||
7 | <OutputPath>bin/Debug</OutputPath> | ||
8 | <DebugInformation>true</DebugInformation> | ||
9 | </Options> | ||
10 | </Configuration> | ||
11 | <Configuration name="Release"> | ||
12 | <Options> | ||
13 | <CompilerDefines>TRACE</CompilerDefines> | ||
14 | <OutputPath>bin/Release</OutputPath> | ||
15 | <OptimizeCode>true</OptimizeCode> | ||
16 | <DebugInformation>false</DebugInformation> | ||
17 | </Options> | ||
18 | </Configuration> | ||
19 | <Project name="Prebuild" path="src" language="C#" assemblyName="include-001" type="Exe" version="1.2.3" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
20 | <Configuration name="Debug"> | ||
21 | <Options> | ||
22 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
23 | <OptimizeCode>false</OptimizeCode> | ||
24 | <OutputPath>bin/Debug</OutputPath> | ||
25 | <DebugInformation>true</DebugInformation> | ||
26 | <KeyFile>Prebuild.snk</KeyFile> | ||
27 | <SuppressWarnings>1595</SuppressWarnings> | ||
28 | </Options> | ||
29 | </Configuration> | ||
30 | <Configuration name="Release"> | ||
31 | <Options> | ||
32 | <CompilerDefines>TRACE</CompilerDefines> | ||
33 | <OutputPath>bin/Release</OutputPath> | ||
34 | <OptimizeCode>true</OptimizeCode> | ||
35 | <DebugInformation>false</DebugInformation> | ||
36 | <KeyFile>Prebuild.snk</KeyFile> | ||
37 | <SuppressWarnings>1595</SuppressWarnings> | ||
38 | </Options> | ||
39 | </Configuration> | ||
40 | <Reference name="System" /> | ||
41 | <Files> | ||
42 | <Match pattern="*.cs" recurse="true" /> | ||
43 | </Files> | ||
44 | </Project> | ||
45 | </Solution> | ||
46 | </Prebuild> | ||
diff --git a/Prebuild/tests/include-001.include b/Prebuild/tests/include-001.include new file mode 100644 index 0000000..7f75962 --- /dev/null +++ b/Prebuild/tests/include-001.include | |||
@@ -0,0 +1,33 @@ | |||
1 | <Project name="Prebuild" | ||
2 | path="src" | ||
3 | language="C#" | ||
4 | assemblyName="include-001" | ||
5 | type="Exe" | ||
6 | version="1.2.3" | ||
7 | xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" | ||
8 | > | ||
9 | <Configuration name="Debug"> | ||
10 | <Options> | ||
11 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
12 | <OptimizeCode>false</OptimizeCode> | ||
13 | <OutputPath>bin/Debug</OutputPath> | ||
14 | <DebugInformation>true</DebugInformation> | ||
15 | <KeyFile>Prebuild.snk</KeyFile> | ||
16 | <SuppressWarnings>1595</SuppressWarnings> | ||
17 | </Options> | ||
18 | </Configuration> | ||
19 | <Configuration name="Release"> | ||
20 | <Options> | ||
21 | <CompilerDefines>TRACE</CompilerDefines> | ||
22 | <OutputPath>bin/Release</OutputPath> | ||
23 | <OptimizeCode>true</OptimizeCode> | ||
24 | <DebugInformation>false</DebugInformation> | ||
25 | <KeyFile>Prebuild.snk</KeyFile> | ||
26 | <SuppressWarnings>1595</SuppressWarnings> | ||
27 | </Options> | ||
28 | </Configuration> | ||
29 | <Reference name="System" /> | ||
30 | <Files> | ||
31 | <Match pattern="*.cs" recurse="true"/> | ||
32 | </Files> | ||
33 | </Project> | ||
diff --git a/Prebuild/tests/include-001.prebuild b/Prebuild/tests/include-001.prebuild new file mode 100644 index 0000000..8047008 --- /dev/null +++ b/Prebuild/tests/include-001.prebuild | |||
@@ -0,0 +1,22 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" ?> | ||
2 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
3 | <Solution name="include-001" version="1.2.3"> | ||
4 | <Configuration name="Debug"> | ||
5 | <Options> | ||
6 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
7 | <OptimizeCode>false</OptimizeCode> | ||
8 | <OutputPath>bin/Debug</OutputPath> | ||
9 | <DebugInformation>true</DebugInformation> | ||
10 | </Options> | ||
11 | </Configuration> | ||
12 | <Configuration name="Release"> | ||
13 | <Options> | ||
14 | <CompilerDefines>TRACE</CompilerDefines> | ||
15 | <OutputPath>bin/Release</OutputPath> | ||
16 | <OptimizeCode>true</OptimizeCode> | ||
17 | <DebugInformation>false</DebugInformation> | ||
18 | </Options> | ||
19 | </Configuration> | ||
20 | <?include file="include-001.include"?> | ||
21 | </Solution> | ||
22 | </Prebuild> | ||
diff --git a/Prebuild/tests/include-002-2.include b/Prebuild/tests/include-002-2.include new file mode 100644 index 0000000..661b7f3 --- /dev/null +++ b/Prebuild/tests/include-002-2.include | |||
@@ -0,0 +1,8 @@ | |||
1 | <Configuration name="Debug" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
2 | <Options> | ||
3 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
4 | <OptimizeCode>false</OptimizeCode> | ||
5 | <OutputPath>bin/Debug</OutputPath> | ||
6 | <DebugInformation>true</DebugInformation> | ||
7 | </Options> | ||
8 | </Configuration> | ||
diff --git a/Prebuild/tests/include-002.expected b/Prebuild/tests/include-002.expected new file mode 100644 index 0000000..9849658 --- /dev/null +++ b/Prebuild/tests/include-002.expected | |||
@@ -0,0 +1,26 @@ | |||
1 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
2 | <Solution name="include-002" version="1.2.3"> | ||
3 | <Configuration name="Debug" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
4 | <Options> | ||
5 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
6 | <OptimizeCode>false</OptimizeCode> | ||
7 | <OutputPath>bin/Debug</OutputPath> | ||
8 | <DebugInformation>true</DebugInformation> | ||
9 | </Options> | ||
10 | </Configuration> | ||
11 | <Project name="Prebuild" path="src" language="C#" assemblyName="include-001" type="Exe" version="1.2.3" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
12 | <Configuration name="Debug" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd"> | ||
13 | <Options> | ||
14 | <CompilerDefines>DEBUG;TRACE</CompilerDefines> | ||
15 | <OptimizeCode>false</OptimizeCode> | ||
16 | <OutputPath>bin/Debug</OutputPath> | ||
17 | <DebugInformation>true</DebugInformation> | ||
18 | </Options> | ||
19 | </Configuration> | ||
20 | <Reference name="System" /> | ||
21 | <Files> | ||
22 | <Match pattern="*.cs" recurse="true" /> | ||
23 | </Files> | ||
24 | </Project> | ||
25 | </Solution> | ||
26 | </Prebuild> | ||
diff --git a/Prebuild/tests/include-002.include b/Prebuild/tests/include-002.include new file mode 100644 index 0000000..64f4058 --- /dev/null +++ b/Prebuild/tests/include-002.include | |||
@@ -0,0 +1,14 @@ | |||
1 | <Project name="Prebuild" | ||
2 | path="src" | ||
3 | language="C#" | ||
4 | assemblyName="include-001" | ||
5 | type="Exe" | ||
6 | version="1.2.3" | ||
7 | xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" | ||
8 | > | ||
9 | <?include file="include-002-2.include"?> | ||
10 | <Reference name="System" /> | ||
11 | <Files> | ||
12 | <Match pattern="*.cs" recurse="true"/> | ||
13 | </Files> | ||
14 | </Project> | ||
diff --git a/Prebuild/tests/include-002.prebuild b/Prebuild/tests/include-002.prebuild new file mode 100644 index 0000000..9e85f20 --- /dev/null +++ b/Prebuild/tests/include-002.prebuild | |||
@@ -0,0 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" ?> | ||
2 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
3 | <Solution name="include-002" version="1.2.3"> | ||
4 | <?include file="include-002-2.include"?> | ||
5 | <?include file="include-002.include"?> | ||
6 | </Solution> | ||
7 | </Prebuild> | ||