Add wmem unit test binary (still empty) to nmake build and to

the unit test part of the test suite. Once I know it's building and
running properly on the buildbots then I'll actually start writing tests.

svn path=/trunk/; revision=48517
This commit is contained in:
Evan Huus 2013-03-23 23:51:07 +00:00
parent 65a6e05827
commit 4ba4e1df70
2 changed files with 23 additions and 1 deletions

View File

@ -20,12 +20,28 @@ wmem.lib: $(WMEM_OBJECTS)
link /lib /out:wmem.lib $(WMEM_OBJECTS)
clean:
rm -f $(WMEM_OBJECTS) wmem.lib *.pdb *.sbr
rm -f $(WMEM_OBJECTS) wmem.lib *.pdb *.sbr wmem_test.obj wmem_test.exe
distclean: clean
maintainer-clean: distclean
# Rule for making unit tests
wmem_test: wmem_test.exe
# Object files for wmem_test
WMEM_TEST_OBJ=wmem_test.obj
WMEM_TEST_LIBS= wmem.lib
wmem_test.exe: $(WMEM_TEST_OBJ) $(WMEM_TEST_LIBS)
@echo Linking $@
link /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
$(WMEM_TEST_LIBS) $(GLIB_LIBS) $(WMEM_TEST_OBJ)
wmem_test_install:
set copycmd=/y
if exist wmem_test.exe xcopy wmem_test.exe ..\..\$(INSTALL_DIR) /d
checkapi:
$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
$(WMEM_SRC)

View File

@ -78,6 +78,11 @@ unittests_step_tvbtest() {
unittests_step_test
}
unittests_step_wmem_test() {
DUT=../epan/wmem/wmem_test
unittests_step_test
}
unittests_cleanup_step() {
rm -f ./testout.txt
}
@ -88,6 +93,7 @@ unittests_suite() {
test_step_add "exntest" unittests_step_exntest
test_step_add "reassemble_test" unittests_step_reassemble_test
test_step_add "tvbtest" unittests_step_tvbtest
test_step_add "wmem_test" unittests_step_wmem_test
}
#
# Editor modelines - http://www.wireshark.org/tools/modelines.html