diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-27 14:17:10 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-27 14:17:10 +0100 |
commit | 2a7e16bd02039ae4e6fa466c4f11f1813c5a4f5a (patch) | |
tree | 017e9bc11bf7698d30cde538b3f25529671db88a /tests/port | |
parent | 5f7c401d3a5553f628d83df3832e19de22e64ca9 (diff) | |
download | wolfbones-2a7e16bd02039ae4e6fa466c4f11f1813c5a4f5a.tar.gz wolfbones-2a7e16bd02039ae4e6fa466c4f11f1813c5a4f5a.tar.bz2 |
port tests on windows work
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 + |