Daniel Jasper | cf765e3 | 2013-12-03 08:21:14 +0000 | [diff] [blame] | 1 | # "cd" and globbing are unsupported in lit internal runner. |
Daniel Jasper | 80b2ffb | 2013-12-03 07:56:23 +0000 | [diff] [blame] | 2 | REQUIRES: shell |
Daniel Jasper | cf765e3 | 2013-12-03 08:21:14 +0000 | [diff] [blame] | 3 | RUN: rm -rf %t |
| 4 | RUN: mkdir %t |
| 5 | RUN: cd %t |
Yuchen Wu | c8e0f81 | 2013-12-03 19:05:03 +0000 | [diff] [blame] | 6 | RUN: cp %p/Inputs/test* . |
Daniel Jasper | cf765e3 | 2013-12-03 08:21:14 +0000 | [diff] [blame] | 7 | |
Yuchen Wu | 8256ee6 | 2013-12-18 21:12:51 +0000 | [diff] [blame] | 8 | RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda | diff test_no_options.output - |
Yuchen Wu | bb6a477 | 2013-12-19 00:29:25 +0000 | [diff] [blame] | 9 | RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -f | diff test_-f.output - |
Yuchen Wu | 8c6bb5f | 2013-12-10 01:02:07 +0000 | [diff] [blame] | 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 |
Yuchen Wu | aae8801 | 2013-11-13 22:50:15 +0000 | [diff] [blame] | 16 | |
Yuchen Wu | 8256ee6 | 2013-12-18 21:12:51 +0000 | [diff] [blame] | 17 | RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b | diff test_-b.output - |
Yuchen Wu | bb6a477 | 2013-12-19 00:29:25 +0000 | [diff] [blame] | 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 - |
Yuchen Wu | 342714c | 2013-12-13 01:15:07 +0000 | [diff] [blame] | 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 | |
Yuchen Wu | 66d93b8 | 2013-12-16 22:14:02 +0000 | [diff] [blame] | 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 | |
Yuchen Wu | 73dc381 | 2013-12-18 18:40:15 +0000 | [diff] [blame] | 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 | |
Yuchen Wu | e28da84 | 2013-11-14 00:07:15 +0000 | [diff] [blame] | 32 | RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda |
| 33 | |
Daniel Jasper | 87a24d5 | 2013-12-04 08:57:17 +0000 | [diff] [blame] | 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 |
Yuchen Wu | babe749 | 2013-11-20 04:15:05 +0000 | [diff] [blame] | 37 | |
Venkatraman Govindaraju | d97acf3 | 2014-01-25 22:54:47 +0000 | [diff] [blame] | 38 | XFAIL: powerpc64, s390x, mips, sparc |