The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
602 B

2 months ago
  1. #!/bin/sh
  2. CMAKE_BINARY_DIR=$1
  3. mkdir -p ${CMAKE_BINARY_DIR}/coverage
  4. mkdir -p ${CMAKE_BINARY_DIR}/coverage-out
  5. rm -f ${CMAKE_BINARY_DIR}/coverage/*
  6. rm -f ${CMAKE_BINARY_DIR}/coverage-out/*
  7. make
  8. make test LLVM_PROFILE_FILE=${CMAKE_BINARY_DIR}/coverage/%p.profraw
  9. llvm-profdata merge -sparse ${CMAKE_BINARY_DIR}/coverage/*.profraw -o ${CMAKE_BINARY_DIR}/llvm.profdata
  10. llvm-cov show -instr-profile llvm.profdata libcarl.so > coverage-out/coverage.txt
  11. for f in `ls bin/` ; do
  12. llvm-cov show -instr-profile llvm.profdata bin/$f > coverage-out/coverage-$f.txt
  13. done
  14. cat coverage-out/*.txt > coverage.txt