General Purpose library for Freestanding C++ and POSIX systems
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

17 строки
1.0 KiB

5 лет назад
4 лет назад
5 лет назад
5 лет назад
  1. CXX= clang++-10
  2. CXXFLAGS= --std=c++20 -O0 -g -pthread -DGP_TESTS -DFUZZ_STRENGTH=500 -DNO_BENCH=1 -pedantic \
  3. -fprofile-instr-generate -fcoverage-mapping -Wno-unknown-attributes \
  4. -fsanitize=address -fno-omit-frame-pointer
  5. all: tests
  6. tests: bin/tests
  7. LLVM_PROFILE_FILE="./bin/tests.profraw" ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer ./bin/tests
  8. @llvm-profdata merge -sparse ./bin/tests.profraw -o ./bin/tests.profdata
  9. @llvm-cov report ./bin/tests -instr-profile=./bin/tests.profdata include/*.hpp include/gp/*.hpp include/gp/algorithm/*.hpp include/gp/allocator/*.hpp
  10. @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'
  11. bin/tests: tests.cpp $(wildcard tests/*.cpp) $(wildcard include/*.hpp) ./tests/test_scaffold.h
  12. @mkdir -p $(@D)
  13. $(CXX) $(CXXFLAGS) -Itests -Iinclude tests.cpp -o $@
  14. clean: ./bin
  15. @rm -rf $<