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
|
|
|
|
2013-12-18 21:12:51 +00:00
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda | diff test_no_options.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
|
|
|
|
|
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
|
|
|
|
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
|
|
|
|
2013-12-18 21:12:51 +00:00
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b | diff test_-b.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
|
|
|
|
|
2013-12-16 22:14:02 +00:00
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -u
|
|
|
|
RUN: diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov
|
|
|
|
RUN: diff -aub test_-a_-b_-u.h.gcov test.h.gcov
|
|
|
|
|
2013-12-18 18:40:15 +00:00
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b -c -u
|
|
|
|
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
|
|
|
|
|
2013-11-14 00:07:15 +00:00
|
|
|
RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
|
|
|
|
|
2013-12-04 08:57:17 +00:00
|
|
|
RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
|
|
|
|
|
|
|
|
RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
|
2013-11-20 04:15:05 +00:00
|
|
|
|
2013-11-29 21:59:09 +00:00
|
|
|
XFAIL: powerpc64, s390x, mips
|