summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-01-02 19:02:38 +0100
committerRoland Reichwein <mail@reichwein.it>2022-01-02 19:02:38 +0100
commitaa2edab739e3daac42cd5dbb44d10234ad880626 (patch)
treea89ff831861346ffb4ece6b0ca770c8be8315770 /Makefile
parentc3124ce89b53e0b1ff3b666aeee9d1829b74229c (diff)
Separated unit tests and performance tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 02498b3..3d228a9 100644
--- a/Makefile
+++ b/Makefile
@@ -83,12 +83,15 @@ SRC=\
src/file.cpp \
src/recode.cpp \
src/validate.cpp \
+ src/test-helper.cpp \
+ src/test-performance.cpp \
src/test-unicode.cpp
-all: src/recode src/test-unicode src/validate
+all: src/recode src/test-unicode src/test-performance src/validate
-test: src/test-unicode
+test: src/test-unicode src/test-performance
src/test-unicode
+ src/test-performance
src/recode: src/recode.o src/file.o dep
$(CXX) $(LDFLAGS) src/recode.o src/file.o $(LDLIBS) $(LIBS) -o $@
@@ -96,8 +99,11 @@ src/recode: src/recode.o src/file.o dep
src/validate: src/validate.o src/file.o dep
$(CXX) $(LDFLAGS) src/validate.o src/file.o $(LDLIBS) $(LIBS) -o $@
-src/test-unicode: src/test-unicode.o dep
- $(CXX) $(LDFLAGS) src/test-unicode.o $(LDLIBS) $(LIBS) -o $@
+src/test-unicode: src/test-unicode.o src/test-helper.o dep
+ $(CXX) $(LDFLAGS) src/test-unicode.o src/test-helper.o $(LDLIBS) $(LIBS) -o $@
+
+src/test-performance: src/test-performance.o src/test-helper.o dep
+ $(CXX) $(LDFLAGS) src/test-performance.o src/test-helper.o $(LDLIBS) $(LIBS) -o $@
dep: $(SRC:.cpp=.d)
@@ -108,7 +114,7 @@ dep: $(SRC:.cpp=.d)
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
- -rm -f src/recode src/test-unicode src/validate src/*.tmp
+ -rm -f src/recode src/test-unicode src/test-performance src/validate src/*.tmp
-rm -rf result
-find . -name '*.o' -o -name '*.d' -o -name '*.gcno' -o -name '*.gcda' | xargs rm -f
@@ -137,6 +143,7 @@ debs: $(DISTROS)
DISTFILES= \
$(SRC) \
src/file.h \
+ src/test-helper.h \
Makefile \
include/unicode.h \
include/unicode/endian.h \