summaryrefslogtreecommitdiff
path: root/test/Makefile.win32
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-16 22:28:32 -0500
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-16 22:28:32 -0500
commitf7b3c9df5885a1cd7981ee12b91962bdbfff47af (patch)
tree249b63df71eb73c6fc520ef126e029581c42ad98 /test/Makefile.win32
parente380beae5382df547a1b538de94e90c0e2339141 (diff)
Add test/Makefile.sources
This lets test/Makefile.am and test/Makefile.win32 share a common list of sources. It also makes test/Makefile.win32 useful again.
Diffstat (limited to 'test/Makefile.win32')
-rw-r--r--test/Makefile.win32125
1 files changed, 25 insertions, 100 deletions
diff --git a/test/Makefile.win32 b/test/Makefile.win32
index 003d96a2..f4c12916 100644
--- a/test/Makefile.win32
+++ b/test/Makefile.win32
@@ -1,121 +1,46 @@
top_srcdir = ..
include $(top_srcdir)/build/Makefile.win32.common
+include $(top_srcdir)/test/Makefile.sources
CFLAGS += -I../src -I../boilerplate -I./pdiff
LDFLAGS += ./pdiff/pdiff.lib ../src/$(CFG)/cairo-static.lib $(PIXMAN_LIBS) ../boilerplate/$(CFG)/boiler.lib $(EXE_LDFLAGS)
-TESTS = \
-a8-mask \
-caps-joins \
-caps-joins-alpha \
-caps-sub-paths \
-clip-all \
-clip-fill-rule \
-clip-fill-rule-pixel-aligned \
-clip-nesting \
-clip-operator \
-clip-twice \
-composite-integer-translate-source \
-composite-integer-translate-over \
-composite-integer-translate-over-repeat \
-create-for-stream \
-create-from-png \
-create-from-png-stream \
-dash-caps-joins \
-dash-no-dash \
-dash-offset-negative \
-dash-scale \
-dash-zero-length \
-degenerate-path \
-device-offset \
-device-offset-positive \
-extend-pad \
-extend-reflect \
-fill-and-stroke \
-fill-and-stroke-alpha \
-fill-and-stroke-alpha-add \
-fill-rule \
-filter-nearest-offset \
-font-face-get-type \
-font-matrix-translation \
-glyph-cache-pressure \
-get-and-set \
-get-clip \
-get-group-target \
-get-path-extents \
-gradient-alpha \
-leaky-dash \
-leaky-polygon \
-line-width \
-line-width-scale \
-linear-gradient \
-mask \
-mask-ctm \
-mask-surface-ctm \
-move-to-show-surface \
-new-sub-path \
-nil-surface \
-operator-clear \
-operator-source \
-paint \
-paint-source-alpha \
-paint-with-alpha \
-pattern-get-type \
-pattern-getters \
-pixman-rotate \
-rectangle-rounding-error \
-scale-source-surface-paint \
-select-font-face \
-select-font-no-show-text \
-self-copy \
-self-intersecting \
-set-source \
-show-text-current-point \
-source-clip \
-source-surface-scale-paint \
-surface-finish-twice \
-surface-pattern \
-text-antialias-gray \
-text-antialias-none \
-text-antialias-subpixel \
-text-cache-crash \
-text-pattern \
-text-rotate \
-transforms \
-translate-show-surface \
-trap-clip \
-unantialiased-shapes \
-unbounded-operator \
-user-data \
-rel-path \
-push-group \
-zero-alpha \
-$(NULL)
TESTCORE_SOURCES = \
cairo-test.c \
buffer-diff.c \
$(NULL)
-TEST_EXE = $(patsubst %, $(CFG)/%.exe, $(TESTS))
-# TEST_EXE = $(addsuffix .exe,$(TESTS))
+all: cairo-test-suite.exe
-all: $(TEST_EXE)
+cairo-test-constructors.c: $(test_sources)
+ ./make-cairo-test-constructors.pl $(test_sources) > $@
-$(CFG)/%.exe: %.c ./pdiff/pdiff.lib
- @mkdir -p $(CFG)
- @$(CC) $(CFLAGS) -Fe"$@" $< $(TESTCORE_SOURCES) -link $(LDFLAGS)
+SOURCES = $(cairo_test_suite_sources) $(test_sources) cairo-test-constructors.c
+
+OBJECTS = $(patsubst %.c, $(CFG)/%.obj, $(SOURCES))
+
+cairo-test-suite.exe: $(OBJECTS)
+ $(CC) $(OPT) $(MS_MDFLAGS) $(OBJECTS) -Fe"$@" -link $(LDFLAGS) /NODEFAULTLIB:library
./pdiff/pdiff.lib:
(cd pdiff ; $(MAKE) -f Makefile.win32)
-test: $(TEST_EXE)
- @for exe in $(TEST_EXE) ; do \
- echo $$exe ; \
- ( ./$$exe || exit 0 ) ; \
- done
+.PHONY: check test html
+
+check: cairo-test-suite.exe
+ ./cairo-test-suite.exe
+
+# define gen-html so that both 'test' and 'html' targets
+# can generate html while having different dependencies
+define gen-html
+@echo Creating index.html...
+@perl make-html.pl > index.html
+endef
+
+test: check
+ $(gen-html)
html:
- @echo Creating index.html...
- @perl make-html.pl > index.html
+ $(gen-html)