mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-15 19:52:05 +00:00
Add rules to compile tests with MSVC.
This commit is contained in:
parent
3f9e947ea9
commit
53a3c3cab1
19
makefile.vc
19
makefile.vc
@ -246,3 +246,22 @@ $(ASE): $(ASE_DEPS) $(OBJ_DIR)/resources_win32.res
|
|||||||
rm $@.manifest
|
rm $@.manifest
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Rules to make tests
|
||||||
|
|
||||||
|
src/tests/%$(EXE): src/tests/%.cpp $(COMMON_OBJS) $(THIRD_PARTY_LIBS)
|
||||||
|
$(CC) $(CFLAGS) -Foobj/msvc/test.obj -c $<
|
||||||
|
link $(LFLAGS) obj/msvc/test.obj $(COMMON_OBJS) $(THIRD_PARTY_LIBS) $(LIBS) -OUT:$@
|
||||||
|
|
||||||
|
tests: $(TESTS)
|
||||||
|
|
||||||
|
runtests: $(AUTOTESTS)
|
||||||
|
@-$(foreach TEST, $(AUTOTESTS), \
|
||||||
|
echo Running ./$(TEST) ... ; \
|
||||||
|
if ./$(TEST) ; then \
|
||||||
|
echo " - OK" ; \
|
||||||
|
else \
|
||||||
|
echo " - *FAIL*" ; \
|
||||||
|
fi ; \
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user