blob: abca45f359b106bafabce2091b0191f0442011ef [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 Wu8256ee62013-12-18 21:12:51 +00008RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda | diff test_no_options.output -
Yuchen Wubb6a4772013-12-19 00:29:25 +00009RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -f | diff test_-f.output -
Yuchen Wu8c6bb5f2013-12-10 01:02:07 +000010RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
11RUN: diff -aub test_no_options.h.gcov test.h.gcov
12
13RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
14RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
15RUN: diff -aub test_-a.h.gcov test.h.gcov
Yuchen Wuaae88012013-11-13 22:50:15 +000016
Yuchen Wu8256ee62013-12-18 21:12:51 +000017RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b | diff test_-b.output -
Yuchen Wubb6a4772013-12-19 00:29:25 +000018# This is expected to fail because gcov doesn't actually output real branch or
19# call statistics on a per function basis.
20RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -f | not diff test_-b_-f.output -
Yuchen Wu342714c2013-12-13 01:15:07 +000021RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
22RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
23
Yuchen Wu66d93b82013-12-16 22:14:02 +000024RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -u
25RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
26RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
27
Yuchen Wu73dc3812013-12-18 18:40:15 +000028RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -c -u
29RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov
30RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov
31
Yuchen Wue28da842013-11-14 00:07:15 +000032RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
33
Daniel Jasper87a24d52013-12-04 08:57:17 +000034RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
35
36RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
Yuchen Wubabe7492013-11-20 04:15:05 +000037
Venkatraman Govindarajud97acf32014-01-25 22:54:47 +000038XFAIL: powerpc64, s390x, mips, sparc