|
@@ -221,6 +221,7 @@ clean-dep:
|
221
|
221
|
clean-test:
|
222
|
222
|
@-echo "Cleaning test builds"
|
223
|
223
|
@-rm -f $(BUILD_TEST_DIR)/*.o
|
|
224
|
+ @-rm -rf $(BUILD_TEST_DIR)/*.dSYM
|
224
|
225
|
@-rm -f $(BUILD_TEST_DIR)/*.test
|
225
|
226
|
@-rm -rf $(BUILD_TEST_DIR)/*.build
|
226
|
227
|
@-echo "[DONE]"
|
|
@@ -278,11 +279,36 @@ endif
|
278
|
279
|
#################################################################
|
279
|
280
|
TEST_FLAGS=$(WARNINGS) -g -O0 -DDEBUG -lstdc++ -Iinclude
|
280
|
281
|
|
281
|
|
-TEST_MAP_TR5=~/projects/Data/models/tombraider/tr5/demo.trc
|
282
|
|
-TEST_MAP_TR4=~/projects/Data/models/tombraider/tr4/angkor1.tr4
|
283
|
|
-TEST_MAP_TR3=~/projects/Data/models/tombraider/tr3/scotland.tr2
|
284
|
|
-TEST_MAP_TR2=~/projects/Data/models/tombraider/tr2/unwater.tr2
|
285
|
|
-TEST_MAP_TR1=~/projects/Data/models/tombraider/tr1/level1.phd
|
|
282
|
+TEST_MAP_TR5=~/.OpenRaider/paks/tr5/demo.trc
|
|
283
|
+TEST_MAP_TR4=~/.OpenRaider/paks/tr4/angkor1.tr4
|
|
284
|
+TEST_MAP_TR3=~/.OpenRaider/paks/tr3/scotland.tr2
|
|
285
|
+TEST_MAP_TR2=~/.OpenRaider/paks/tr2/unwater.tr2
|
|
286
|
+TEST_MAP_TR1=~/.OpenRaider/paks/tr1/level1.phd
|
|
287
|
+
|
|
288
|
+test.build: Matrix.test Math.test Memory.test Network.test Sound.test TGA.test GLString.test TombRaider.test
|
|
289
|
+
|
|
290
|
+test: test.build
|
|
291
|
+ @-echo "================================================="
|
|
292
|
+ @-echo "Running Memory unit test"
|
|
293
|
+ $(BUILD_TEST_DIR)/memory_test.test
|
|
294
|
+ @-echo "================================================="
|
|
295
|
+ @-echo "Running Matrix unit test"
|
|
296
|
+ $(BUILD_TEST_DIR)/Matrix.test
|
|
297
|
+ @-echo "================================================="
|
|
298
|
+ @-echo "Running Math unit test"
|
|
299
|
+ $(BUILD_TEST_DIR)/Math.test
|
|
300
|
+ @-echo "================================================="
|
|
301
|
+ @-echo "Running Sound unit test"
|
|
302
|
+ $(BUILD_TEST_DIR)/Sound.test
|
|
303
|
+ @-echo "================================================="
|
|
304
|
+ @-echo "Running TGA unit test"
|
|
305
|
+ $(BUILD_TEST_DIR)/TGA.test
|
|
306
|
+ @-echo "================================================="
|
|
307
|
+ @-echo "Running GLString unit test"
|
|
308
|
+ $(BUILD_TEST_DIR)/GLString.test
|
|
309
|
+ @-echo "================================================="
|
|
310
|
+ @-echo "Running TombRaider unit test"
|
|
311
|
+ $(BUILD_TEST_DIR)/TombRaider.test load $(TEST_MAP_TR1)
|
286
|
312
|
|
287
|
313
|
TombRaider.reg_test:
|
288
|
314
|
$(MAKE) TombRaider.test
|
|
@@ -314,17 +340,6 @@ GLString.test:
|
314
|
340
|
|
315
|
341
|
#################################################################
|
316
|
342
|
|
317
|
|
-Hel.test: Quaternion.test Matrix.test Math.test
|
318
|
|
- @-echo "================================================="
|
319
|
|
- @-echo "Running Matrix unit test"
|
320
|
|
- $(BUILD_TEST_DIR)/Matrix.test
|
321
|
|
- @-echo "================================================="
|
322
|
|
- $(BUILD_TEST_DIR)/Math.test
|
323
|
|
- @-echo "Running hel Math unit test"
|
324
|
|
- @-echo "================================================="
|
325
|
|
- @-echo "Running Quaternion unit test"
|
326
|
|
- $(BUILD_TEST_DIR)/Quaternion.test
|
327
|
|
-
|
328
|
343
|
Matrix.test:
|
329
|
344
|
@-echo "Building Matrix unit test"
|
330
|
345
|
mkdir -p $(BUILD_TEST_DIR)
|
|
@@ -332,12 +347,6 @@ Matrix.test:
|
332
|
347
|
src/Matrix.cpp src/Quaternion.cpp src/Vector3d.cpp \
|
333
|
348
|
test/Matrix.cpp -o $(BUILD_TEST_DIR)/Matrix.test
|
334
|
349
|
|
335
|
|
-Quaternion.test:
|
336
|
|
- @-echo "Building Quaternion unit test"
|
337
|
|
- mkdir -p $(BUILD_TEST_DIR)
|
338
|
|
- $(CC) $(WARNINGS) -g -lm -lstdc++ -Iinclude \
|
339
|
|
- src/Quaternion.cpp test/Quaternion.cpp -o $(BUILD_TEST_DIR)/Quaternion.test
|
340
|
|
-
|
341
|
350
|
Math.test:
|
342
|
351
|
@-echo "Building Math unit test"
|
343
|
352
|
mkdir -p $(BUILD_TEST_DIR)
|