diff options
Diffstat (limited to 'tests/port')
-rw-r--r-- | tests/port/GNUmakefile | 6 | ||||
-rw-r--r-- | tests/port/Makefile.W32 | 39 |
2 files changed, 42 insertions, 3 deletions
diff --git a/tests/port/GNUmakefile b/tests/port/GNUmakefile index a51a8ec..0410187 100644 --- a/tests/port/GNUmakefile +++ b/tests/port/GNUmakefile @@ -1,11 +1,11 @@ TOPDIR = ../.. -INCLUDE_LIBS = \ - $(TOPDIR)/src/libwolf.a - INCLUDE_DIRS = \ -I$(TOPDIR)/include/wolf -I. -I$(TOPDIR)/src +INCLUDE_LIBS = \ + $(TOPDIR)/src/libwolf.a + TEST_BINS = \ test_strdup$(EXE) \ test_strerror_r$(EXE) \ diff --git a/tests/port/Makefile.W32 b/tests/port/Makefile.W32 new file mode 100644 index 0000000..c338d87 --- /dev/null +++ b/tests/port/Makefile.W32 @@ -0,0 +1,39 @@ +TOPDIR = ..\.. + +INCLUDE_DIRS = \ + /I$(TOPDIR)\include\wolf /I. /I$(TOPDIR)\src + +INCLUDE_LIBS = \ + $(TOPDIR)\src\wolf.lib + +TEST_BINS = \ + test_strdup.exe \ + test_strerror_r.exe \ + test_strcasecmp.exe \ + test_strncasecmp.exe + +!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk + +# TODO: what is the autogeneration rule for NMAKE? +test_strdup.exe: test_strdup.obj +test_strerror_r.exe: test_strerror_r.obj +test_strcasecmp.exe: test_strcasecmp.obj +test_strncasecmp.exe: test_strncasecmp.obj + +local_all: + +local_clean: + +local_distclean: + +# TODO: make test dependencies in compile.mk +local_test: $(TEST_BINS) + @echo Testing strdup.. + @test_strdup >NUL 2>NUL + @echo Testing strerror_r... + @test_strerror_r >NUL 2>NUL + @echo Testing strcasecmp.. + @test_strcasecmp >NUL 2>NUL + @echo Testing strncasecmp.. + @test_strncasecmp >NUL 2>NUL + |