blob: 02b8a3db9a5105a3f563731fef99730ded5ab685 [file] [log] [blame]
Daniel Jaspercf765e32013-12-03 08:21:14 +00001# "cd" and globbing are unsupported in lit internal runner.
Daniel Jasper80b2ffb2013-12-03 07:56:23 +00002REQUIRES: shell
Daniel Jaspercf765e32013-12-03 08:21:14 +00003RUN: rm -rf %t
4RUN: mkdir %t
5RUN: cd %t
Yuchen Wuc8e0f812013-12-03 19:05:03 +00006RUN: cp %p/Inputs/test* .
Daniel Jaspercf765e32013-12-03 08:21:14 +00007
Yuchen Wu26326ad2013-12-03 00:57:11 +00008RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda
Yuchen Wu8c6bb5f2013-12-10 01:02:07 +00009RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
10RUN: diff -aub test_no_options.h.gcov test.h.gcov
11
12RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
13RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
14RUN: diff -aub test_-a.h.gcov test.h.gcov
Yuchen Wuaae88012013-11-13 22:50:15 +000015
Yuchen Wu342714c2013-12-13 01:15:07 +000016RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b
17RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
18RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
19
Yuchen Wu66d93b82013-12-16 22:14:02 +000020RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -u
21RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
22RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
23
Yuchen Wu73dc3812013-12-18 18:40:15 +000024RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -c -u
25RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov
26RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov
27
Yuchen Wue28da842013-11-14 00:07:15 +000028RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
29
Daniel Jasper87a24d52013-12-04 08:57:17 +000030RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
31
32RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
Yuchen Wubabe7492013-11-20 04:15:05 +000033
Petar Jovanovice3e940d2013-11-29 21:59:09 +000034XFAIL: powerpc64, s390x, mips