From ae658f23f41e8324e0bff1084e3f537c24328d65 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 20 Sep 2018 08:40:25 +0200 Subject: [PATCH] improved testing scheme --- tests/.gitignore | 3 +-- tests/Makefile | 11 ++++++----- tests/{crc.cc => crc_test.cc} | 0 tests/{kahan.cc => kahan_test.cc} | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename tests/{crc.cc => crc_test.cc} (100%) rename tests/{kahan.cc => kahan_test.cc} (100%) diff --git a/tests/.gitignore b/tests/.gitignore index 87996df..8144904 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,2 +1 @@ -kahan -crc +*_test diff --git a/tests/Makefile b/tests/Makefile index 85193d0..c935b00 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,14 +1,15 @@ -CXXFLAGS = -I.. -std=c++11 -W -Wall -O3 -march=native -ffast-math +CXXFLAGS = -I.. -std=c++17 -W -Wall -Ofast -fno-exceptions -fno-rtti -march=native CXX = clang++ -stdlib=libc++ #CXX = g++ .PHONY: clean test -test: kahan crc - ./kahan - ./crc +tests := $(basename $(wildcard *_test.*)) + +test: $(tests) + $(patsubst %,./%;,$(tests)) clean: - rm -f kahan crc + rm -f *_test diff --git a/tests/crc.cc b/tests/crc_test.cc similarity index 100% rename from tests/crc.cc rename to tests/crc_test.cc diff --git a/tests/kahan.cc b/tests/kahan_test.cc similarity index 100% rename from tests/kahan.cc rename to tests/kahan_test.cc