[Sparc] Add sparc to the list of XFAIL architecture. It seems that the llvm-cov test...
[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 | 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
12
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
16
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
23
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
27
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
31
32 RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
33
34 RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
35
36 RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
37
38 XFAIL: powerpc64, s390x, mips, sparc