General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 regels
1017 B

4 jaren geleden
5 jaren geleden
4 jaren geleden
5 jaren geleden
5 jaren geleden
  1. CXX= clang++-8
  2. CXXFLAGS= --std=c++17 -O0 -pthread -DFUZZ_STRENGTH=500000 -pedantic -Werror \
  3. -fsanitize=address -fno-omit-frame-pointer \
  4. -Wno-unknown-attributes \
  5. -g -fprofile-instr-generate -fcoverage-mapping
  6. all: tests
  7. tests: bin/tests
  8. LLVM_PROFILE_FILE="./bin/tests.profraw" ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer ./bin/tests
  9. @llvm-profdata merge -sparse ./bin/tests.profraw -o ./bin/tests.profdata
  10. @llvm-cov report ./bin/tests -instr-profile=./bin/tests.profdata include/*.hpp include/gp/*.hpp include/gp/algorithm/*.hpp include/gp/allocator/*.hpp
  11. @llvm-cov report ./bin/tests -instr-profile=./bin/tests.profdata include/*.hpp include/gp/*.hpp include/gp/algorithm/*.hpp include/gp/allocator/*.hpp | tail -n 1 | tr -s " " | sed -e 's/ /,/g' -- | awk -F "," '{print $$9}' | sed -e 's/^/Untested lines: /g'
  12. bin/tests: tests.cpp $(wildcard tests/*.cpp) $(wildcard include/*.hpp) ./tests/test_scaffold.h
  13. @mkdir -p $(@D)
  14. $(CXX) $(CXXFLAGS) -Itests -Iinclude tests.cpp -o $@
  15. clean: ./bin
  16. @rm -rf $<