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 | 26326ad | 2013-12-03 00:57:11 +0000 | [diff] [blame] | 8 | RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda |
Yuchen Wu | 8c6bb5f | 2013-12-10 01:02:07 +0000 | [diff] [blame] | 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 |
Yuchen Wu | aae8801 | 2013-11-13 22:50:15 +0000 | [diff] [blame] | 15 | |
Yuchen Wu | 342714c | 2013-12-13 01:15:07 +0000 | [diff] [blame] | 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 | |
Yuchen Wu | 66d93b8 | 2013-12-16 22:14:02 +0000 | [diff] [blame] | 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 | |
Yuchen Wu | 73dc381 | 2013-12-18 18:40:15 +0000 | [diff] [blame^] | 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 | |
Yuchen Wu | e28da84 | 2013-11-14 00:07:15 +0000 | [diff] [blame] | 28 | RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda |
| 29 | |
Daniel Jasper | 87a24d5 | 2013-12-04 08:57:17 +0000 | [diff] [blame] | 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 |
Yuchen Wu | babe749 | 2013-11-20 04:15:05 +0000 | [diff] [blame] | 33 | |
Petar Jovanovic | e3e940d | 2013-11-29 21:59:09 +0000 | [diff] [blame] | 34 | XFAIL: powerpc64, s390x, mips |