General Purpose library for Freestanding C++ and POSIX systems
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

16 righe
855 B

  1. CXX= clang++-8
  2. CXXFLAGS= --std=c++17 -g -O0 -fprofile-instr-generate -fcoverage-mapping -pthread
  3. all: tests
  4. tests: bin/tests
  5. LLVM_PROFILE_FILE="./bin/tests.profraw" ./bin/tests
  6. @llvm-profdata merge -sparse ./bin/tests.profraw -o ./bin/tests.profdata
  7. @llvm-cov report ./bin/tests -instr-profile=./bin/tests.profdata include/*.hpp include/gp/*.hpp include/gp/algorithm/*.hpp include/gp/allocator/*.hpp
  8. @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'
  9. bin/tests: tests.cpp $(wildcard tests/*.cpp) $(wildcard include/*.hpp) ./tests/test_scaffold.h
  10. @mkdir -p $(@D)
  11. $(CXX) $(CXXFLAGS) -Itests -Iinclude tests.cpp -o $@
  12. clean: ./bin
  13. @rm -rf $<