2013-12-03 08:21:14 +00:00
|
|
|
# "cd" and globbing are unsupported in lit internal runner.
|
2013-12-03 07:56:23 +00:00
|
|
|
REQUIRES: shell
|
2013-12-03 08:21:14 +00:00
|
|
|
RUN: rm -rf %t
|
|
|
|
RUN: mkdir %t
|
|
|
|
RUN: cd %t
|
2013-12-03 19:05:03 +00:00
|
|
|
RUN: cp %p/Inputs/test* .
|
2013-12-03 08:21:14 +00:00
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: llvm-cov test.c | diff test_no_options.output -
|
|
|
|
RUN: llvm-cov test.c -f | diff test_-f.output -
|
2013-12-10 01:02:07 +00:00
|
|
|
RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
|
|
|
|
RUN: diff -aub test_no_options.h.gcov test.h.gcov
|
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: llvm-cov test.c -a
|
2013-12-10 01:02:07 +00:00
|
|
|
RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
|
|
|
|
RUN: diff -aub test_-a.h.gcov test.h.gcov
|
2013-11-13 22:50:15 +00:00
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: llvm-cov test.c -a -b | diff test_-b.output -
|
2013-12-19 00:29:25 +00:00
|
|
|
# This is expected to fail because gcov doesn't actually output real branch or
|
|
|
|
# call statistics on a per function basis.
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: llvm-cov test.c -a -b -f | not diff test_-b_-f.output -
|
2013-12-13 01:15:07 +00:00
|
|
|
RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
|
|
|
|
RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
|
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: llvm-cov test.c -a -b -u
|
2013-12-16 22:14:02 +00:00
|
|
|
RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
|
|
|
|
RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
|
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: llvm-cov test.c -a -b -c -u
|
2013-12-18 18:40:15 +00:00
|
|
|
RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov
|
|
|
|
RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov
|
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: not llvm-cov test.c -gcno=test_read_fail.gcno
|
2013-11-14 00:07:15 +00:00
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: not llvm-cov test.c -gcda=test_file_checksum_fail.gcda
|
2013-12-04 08:57:17 +00:00
|
|
|
|
2014-01-29 21:31:34 +00:00
|
|
|
RUN: not llvm-cov test.c -gcda=test_func_checksum_fail.gcda
|
2013-11-20 04:15:05 +00:00
|
|
|
|
2014-01-25 22:54:47 +00:00
|
|
|
XFAIL: powerpc64, s390x, mips, sparc
|