build: add test target

This commit is contained in:
rr- 2021-11-15 20:02:02 +01:00
parent fe7e59b4f0
commit 03360f50f1
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A

View file

@ -28,4 +28,16 @@ clean:
lint:
clang-format -i **/*.c **/*.h
.PHONY: debug release docker clean lint
test_base:
cp build/*.exe test/
cp build/*.dll test/
ln -rsft test/ bin/*
rm -f test/Winplay.dll
test: build test_base
WINEARCH=win32 MESA_GL_VERSION_OVERRIDE=3.3 wine test/Tomb1Main.exe
test_gold: build test_base
WINEARCH=win32 MESA_GL_VERSION_OVERRIDE=3.3 wine test/Tomb1Main.exe -gold
.PHONY: debug release docker clean lint test_base test test_gold