1 # "cd" and globbing are unsupported in lit internal runner.
6 RUN: cp %p/Inputs/test* .
8 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda | diff test_no_options.output -
9 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -f | diff test_-f.output -
10 RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
11 RUN: diff -aub test_no_options.h.gcov test.h.gcov
13 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
14 RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
15 RUN: diff -aub test_-a.h.gcov test.h.gcov
17 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b | diff test_-b.output -
18 # This is expected to fail because gcov doesn't actually output real branch or
19 # call statistics on a per function basis.
20 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -f | not diff test_-b_-f.output -
21 RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
22 RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
24 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -u
25 RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
26 RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
28 RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -c -u
29 RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov
30 RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov
32 RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
34 RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
36 RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
38 XFAIL: powerpc64, s390x, mips