forked from chaos-lang/chaos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coverage.sh
executable file
·29 lines (28 loc) · 979 Bytes
/
coverage.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
export LLVM_PROFILE_FILE="$PWD/.coverage/chaos-%p.profraw" && \
make clean && \
make clang-coverage && \
sudo make install && \
make test && \
make test-compiler && \
make test-extensions-linux-clang && \
make test-compiler-extensions-linux-clang && \
make test-cli-args && \
make test-official-spells && \
make rosetta-install-clang && \
make rosetta-test && \
make rosetta-test-compiler && \
llvm-profdata merge -output=chaos.profdata $PWD/.coverage/chaos-*.profraw && \
rm $PWD/.coverage/chaos-*.profraw && \
llvm-cov show /usr/local/bin/chaos -instr-profile=chaos.profdata > coverage.txt && \
llvm-cov report /usr/local/bin/chaos -instr-profile=chaos.profdata -use-color && \
llvm-cov show /usr/local/bin/chaos -instr-profile=chaos.profdata \
./Chaos.c \
./ast/*.c \
./compiler/*.c \
./vm/*.c \
./interpreter/*.c \
./lexer/*.c \
./parser/*.c \
./utilities/*.c \
-path-equivalence -use-color --format html > /tmp/coverage.html