aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-06-05 21:43:20 +0200
committerjaseg <git@jaseg.de>2021-06-05 21:43:20 +0200
commitcc882a4195641178279f4c8c04331948ec017bce (patch)
tree278ba00a804a5fb81c5333bcfebf5941efab17be /svg-flatten
parent6685b7587a2d8c147715d89e27b0f3b40883b9f1 (diff)
downloadgerbolyze-cc882a4195641178279f4c8c04331948ec017bce.tar.gz
gerbolyze-cc882a4195641178279f4c8c04331948ec017bce.tar.bz2
gerbolyze-cc882a4195641178279f4c8c04331948ec017bce.zip
Throw out a bunch of test stuff, hopefully fix CI build
Diffstat (limited to 'svg-flatten')
-rw-r--r--svg-flatten/Makefile9
-rw-r--r--svg-flatten/src/test/svg_tests.py4
2 files changed, 6 insertions, 7 deletions
diff --git a/svg-flatten/Makefile b/svg-flatten/Makefile
index 2c9ff6c..18edfd9 100644
--- a/svg-flatten/Makefile
+++ b/svg-flatten/Makefile
@@ -26,11 +26,11 @@ SOURCES := src/svg_color.cpp \
src/lambda_sink.cpp \
src/flatten.cpp \
src/nopencv.cpp \
- $(UPSTREAM_DIR)/cpp-base64/base64.cpp
+ $(UPSTREAM_DIR)/cpp-base64/base64.cpp \
+ $(UPSTREAM_DIR)/clipper-6.4.2/cpp/clipper.cpp \
+ $(UPSTREAM_DIR)/pugixml/src/pugixml.cpp
-PUGIXML_SOURCES ?= $(UPSTREAM_DIR)/pugixml/src/pugixml.cpp
PUGIXML_INCLUDES ?= -I$(UPSTREAM_DIR)/pugixml/src
-CLIPPER_SOURCES ?= $(UPSTREAM_DIR)/clipper-6.4.2/cpp/clipper.cpp
CLIPPER_INCLUDES ?= -I$(UPSTREAM_DIR)/clipper-6.4.2/cpp
VORONOI_INCLUDES ?= -I$(UPSTREAM_DIR)/voronoi/src
POISSON_INCLUDES ?= -I$(UPSTREAM_DIR)/poisson-disk-sampling/thinks/poisson_disk_sampling/
@@ -41,10 +41,9 @@ SUBPROCESS_INCLUDES ?= -I$(UPSTREAM_DIR)/subprocess.h
MINUNIT_INCLUDES ?= -I$(UPSTREAM_DIR)/minunit
STB_INCLUDES ?= -isystem$(UPSTREAM_DIR)/stb
-SOURCES += $(CLIPPER_SOURCES)
INCLUDES := -Iinclude -Isrc $(CLIPPER_INCLUDES) $(VORONOI_INCLUDES) $(POISSON_INCLUDES) $(BASE64_INCLUDES) $(ARGAGG_INCLUDES) $(CAVC_INCLUDES) $(SUBPROCESS_INCLUDES) $(MINUNIT_INCLUDES) $(STB_INCLUDES)
-CXXFLAGS := -std=c++2a -g -Wall -Wextra -O0
+CXXFLAGS := -std=c++2a -g -Wall -Wextra -O2
LDFLAGS := -lm
PKG_CONFIG_DEPS :=
diff --git a/svg-flatten/src/test/svg_tests.py b/svg-flatten/src/test/svg_tests.py
index e4cff76..f98e367 100644
--- a/svg-flatten/src/test/svg_tests.py
+++ b/svg-flatten/src/test/svg_tests.py
@@ -100,9 +100,9 @@ class SVGRoundTripTests(unittest.TestCase):
#print_stats(ref)
#print_stats(out)
- print(f'{test_name}: mean={delta.mean():.5g}')
+ # print(f'{test_name}: mean={delta.mean():.5g}')
- self.fail('debug')
+ # self.fail('debug')
self.assertTrue(delta.mean() < mean,
f'Expected mean pixel difference between images to be <{mean}, was {delta.mean():.5g}')