llvm-cov: Added -c option for branch counts.
[oota-llvm.git] / test / tools / llvm-cov / llvm-cov.test
1 # "cd" and globbing are unsupported in lit internal runner.
2 REQUIRES: shell
3 RUN: rm -rf %t
4 RUN: mkdir %t
5 RUN: cd %t
6 RUN: cp %p/Inputs/test* .
7
8 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda
9 RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
10 RUN: diff -aub test_no_options.h.gcov test.h.gcov
11
12 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
13 RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
14 RUN: diff -aub test_-a.h.gcov test.h.gcov
15
16 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b
17 RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
18 RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
19
20 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -u
21 RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
22 RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
23
24 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -c -u
25 RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov
26 RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov
27
28 RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
29
30 RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
31
32 RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
33
34 XFAIL: powerpc64, s390x, mips