improved testing scheme

This commit is contained in:
Ahmet Inan 2018-09-20 08:40:25 +02:00
commit ae658f23f4
4 changed files with 7 additions and 7 deletions

3
tests/.gitignore vendored
View file

@ -1,2 +1 @@
kahan
crc
*_test

View file

@ -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