rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make Making LLVM 'lit.site.cfg' file... Making LLVM unittest 'lit.site.cfg' file... ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \ /usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s -v . ) XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784) ******************** TEST 'LLVM :: tools/llvm-cov/llvm-cov.test' FAILED ******************** Script: -- rm -rf /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp mkdir /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp cd /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp cp /home/rkotler/workspace/llvm/test/tools/llvm-cov/Inputs/test* . /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff -u test_no_options.output - diff -aub test_no_options.cpp.gcov test.cpp.gcov diff -aub test_no_options.h.gcov test.h.gcov mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir cp test.gcno test.gcda /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test.o test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir/nested_dir cp test.cpp test.h /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -p test_paths.cpp | diff -u test_preserve_paths.output - diff -aub test_paths.cpp.gcov srcdir#nested_dir#^#test.cpp.gcov diff -aub test_paths.h.gcov srcdir#nested_dir#^#test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test_paths.cpp | diff -u test_no_preserve_paths.output - diff -aub test_paths.cpp.gcov test.cpp.gcov diff -aub test_paths.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -f | diff -u test_-f.output - diff -aub test_no_options.cpp.gcov test.cpp.gcov diff -aub test_no_options.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a | diff -u test_no_options.output - diff -aub test_-a.cpp.gcov test.cpp.gcov diff -aub test_-a.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b | diff -u test_-b.output - diff -aub test_-a_-b.cpp.gcov test.cpp.gcov diff -aub test_-a_-b.h.gcov test.h.gcov On a native mips linux machine, we are failing a make check test which seems like it is supposed to already xfail. For one, the file test.c does not even exist (it is called test.cpp) And in the test file there is a line: XFAIL: powerpc64, s390x, mips, sparc The script in make check thinks that it passed but clearly it does not. llvm-cov is returning 0 in this case. Anybody know about this issue? /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -f | /home/rkotler/caviumllvm/build/Debug+Asserts/bin/not diff -u test_-b_-f.output - >/dev/null diff -aub test_-a_-b.cpp.gcov test.cpp.gcov diff -aub test_-a_-b.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -u | diff -u test_-b.output - diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov diff -aub test_-a_-b_-u.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -c -u | diff -u test_-b.output - diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=no_such_gcda_file | diff -u test_no_gcda.output - diff -aub test_no_gcda.cpp.gcov test.cpp.gcov diff -aub test_no_gcda.h.gcov test.h.gcov not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcno=test_read_fail.gcno not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_file_checksum_fail.gcda not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_func_checksum_fail.gcda -- Exit Code: 0 Command Output (stderr): -- Unexpected end of memory buffer: 72. Invalid .gcno File! File checksums do not match: 557866544 != 1280071245. Invalid .gcda File! File checksums do not match: 557866544 != 3906235290. Invalid .gcda File! -- ******************** Testing Time: 418.75s ******************** Unexpected Passing Tests (1): LLVM :: tools/llvm-cov/llvm-cov.test Expected Passes : 9678 Expected Failures : 70 Unsupported Tests : 35 Unexpected Passes : 1 make: *** [check-local] Error 1
Is this a big-endian system? Yuchen had a tentative patch for that but it never went anywhere because he hadn’t figured out how to test it. If you’ve got a big-endian system and are willing to try out the patch, please let me know. On Feb 20, 2014, at 4:58 PM, reed kotler <rkotler at mips.com> wrote:> rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make > Making LLVM 'lit.site.cfg' file... > Making LLVM unittest 'lit.site.cfg' file... > ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \ > /usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s -v . ) > XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784) > ******************** TEST 'LLVM :: tools/llvm-cov/llvm-cov.test' FAILED ******************** > Script: > -- > rm -rf /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > mkdir /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > cd /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > cp /home/rkotler/workspace/llvm/test/tools/llvm-cov/Inputs/test* . > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff -u test_no_options.output - > diff -aub test_no_options.cpp.gcov test.cpp.gcov > diff -aub test_no_options.h.gcov test.h.gcov > mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir > cp test.gcno test.gcda /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test.o test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir/nested_dir > cp test.cpp test.h /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -p test_paths.cpp | diff -u test_preserve_paths.output - > diff -aub test_paths.cpp.gcov srcdir#nested_dir#^#test.cpp.gcov > diff -aub test_paths.h.gcov srcdir#nested_dir#^#test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test_paths.cpp | diff -u test_no_preserve_paths.output - > diff -aub test_paths.cpp.gcov test.cpp.gcov > diff -aub test_paths.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -f | diff -u test_-f.output - > diff -aub test_no_options.cpp.gcov test.cpp.gcov > diff -aub test_no_options.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a | diff -u test_no_options.output - > diff -aub test_-a.cpp.gcov test.cpp.gcov > diff -aub test_-a.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b | diff -u test_-b.output - > diff -aub test_-a_-b.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b.h.gcov test.h.gcov > On a native mips linux machine, we are failing a make check test which seems like it is supposed to already xfail. > > For one, the file test.c does not even exist (it is called test.cpp) > > And in the test file there is a line: > XFAIL: powerpc64, s390x, mips, sparc > > The script in make check thinks that it passed but clearly it does not. llvm-cov is returning 0 in this case. > > Anybody know about this issue? > > > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -f | /home/rkotler/caviumllvm/build/Debug+Asserts/bin/not diff -u test_-b_-f.output - >/dev/null > diff -aub test_-a_-b.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -u | diff -u test_-b.output - > diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b_-u.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -c -u | diff -u test_-b.output - > diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=no_such_gcda_file | diff -u test_no_gcda.output - > diff -aub test_no_gcda.cpp.gcov test.cpp.gcov > diff -aub test_no_gcda.h.gcov test.h.gcov > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcno=test_read_fail.gcno > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_file_checksum_fail.gcda > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_func_checksum_fail.gcda > -- > Exit Code: 0 > > Command Output (stderr): > -- > Unexpected end of memory buffer: 72. > Invalid .gcno File! > File checksums do not match: 557866544 != 1280071245. > Invalid .gcda File! > File checksums do not match: 557866544 != 3906235290. > Invalid .gcda File! > > -- > > ******************** > Testing Time: 418.75s > ******************** > Unexpected Passing Tests (1): > LLVM :: tools/llvm-cov/llvm-cov.test > > Expected Passes : 9678 > Expected Failures : 70 > Unsupported Tests : 35 > Unexpected Passes : 1 > make: *** [check-local] Error 1 > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
This board is little endian. We do have a big endian machine too that I can try things on. ________________________________________ From: Bob Wilson [bob.wilson at apple.com] Sent: Thursday, February 20, 2014 5:18 PM To: Reed Kotler Cc: LLVMdev at cs.uiuc.edu Subject: Re: [LLVMdev] make check issue with llvm-cov Is this a big-endian system? Yuchen had a tentative patch for that but it never went anywhere because he hadn’t figured out how to test it. If you’ve got a big-endian system and are willing to try out the patch, please let me know. On Feb 20, 2014, at 4:58 PM, reed kotler <rkotler at mips.com> wrote:> rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make > Making LLVM 'lit.site.cfg' file... > Making LLVM unittest 'lit.site.cfg' file... > ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \ > /usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s -v . ) > XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784) > ******************** TEST 'LLVM :: tools/llvm-cov/llvm-cov.test' FAILED ******************** > Script: > -- > rm -rf /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > mkdir /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > cd /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > cp /home/rkotler/workspace/llvm/test/tools/llvm-cov/Inputs/test* . > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff -u test_no_options.output - > diff -aub test_no_options.cpp.gcov test.cpp.gcov > diff -aub test_no_options.h.gcov test.h.gcov > mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir > cp test.gcno test.gcda /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test.o test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir/nested_dir > cp test.cpp test.h /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -p test_paths.cpp | diff -u test_preserve_paths.output - > diff -aub test_paths.cpp.gcov srcdir#nested_dir#^#test.cpp.gcov > diff -aub test_paths.h.gcov srcdir#nested_dir#^#test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test_paths.cpp | diff -u test_no_preserve_paths.output - > diff -aub test_paths.cpp.gcov test.cpp.gcov > diff -aub test_paths.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -f | diff -u test_-f.output - > diff -aub test_no_options.cpp.gcov test.cpp.gcov > diff -aub test_no_options.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a | diff -u test_no_options.output - > diff -aub test_-a.cpp.gcov test.cpp.gcov > diff -aub test_-a.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b | diff -u test_-b.output - > diff -aub test_-a_-b.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b.h.gcov test.h.gcov > On a native mips linux machine, we are failing a make check test which seems like it is supposed to already xfail. > > For one, the file test.c does not even exist (it is called test.cpp) > > And in the test file there is a line: > XFAIL: powerpc64, s390x, mips, sparc > > The script in make check thinks that it passed but clearly it does not. llvm-cov is returning 0 in this case. > > Anybody know about this issue? > > > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -f | /home/rkotler/caviumllvm/build/Debug+Asserts/bin/not diff -u test_-b_-f.output - >/dev/null > diff -aub test_-a_-b.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -u | diff -u test_-b.output - > diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b_-u.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -c -u | diff -u test_-b.output - > diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=no_such_gcda_file | diff -u test_no_gcda.output - > diff -aub test_no_gcda.cpp.gcov test.cpp.gcov > diff -aub test_no_gcda.h.gcov test.h.gcov > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcno=test_read_fail.gcno > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_file_checksum_fail.gcda > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_func_checksum_fail.gcda > -- > Exit Code: 0 > > Command Output (stderr): > -- > Unexpected end of memory buffer: 72. > Invalid .gcno File! > File checksums do not match: 557866544 != 1280071245. > Invalid .gcda File! > File checksums do not match: 557866544 != 3906235290. > Invalid .gcda File! > > -- > > ******************** > Testing Time: 418.75s > ******************** > Unexpected Passing Tests (1): > LLVM :: tools/llvm-cov/llvm-cov.test > > Expected Passes : 9678 > Expected Failures : 70 > Unsupported Tests : 35 > Unexpected Passes : 1 > make: *** [check-local] Error 1 > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
The immediate issue her for me is that llvm-cov is clearly failing but it returns 0. This causes make check to fail because then it becomes an unexpected pass because this test is xfailed for mips. ________________________________________ From: reed kotler [rkotler at mips.com] Sent: Thursday, February 20, 2014 4:58 PM To: LLVMdev at cs.uiuc.edu Subject: make check issue with llvm-cov rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make Making LLVM 'lit.site.cfg' file... Making LLVM unittest 'lit.site.cfg' file... ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \ /usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s -v . ) XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784) ******************** TEST 'LLVM :: tools/llvm-cov/llvm-cov.test' FAILED ******************** Script: -- rm -rf /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp mkdir /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp cd /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp cp /home/rkotler/workspace/llvm/test/tools/llvm-cov/Inputs/test* . /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff -u test_no_options.output - diff -aub test_no_options.cpp.gcov test.cpp.gcov diff -aub test_no_options.h.gcov test.h.gcov mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir cp test.gcno test.gcda /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test.o test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir/nested_dir cp test.cpp test.h /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -p test_paths.cpp | diff -u test_preserve_paths.output - diff -aub test_paths.cpp.gcov srcdir#nested_dir#^#test.cpp.gcov diff -aub test_paths.h.gcov srcdir#nested_dir#^#test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test_paths.cpp | diff -u test_no_preserve_paths.output - diff -aub test_paths.cpp.gcov test.cpp.gcov diff -aub test_paths.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -f | diff -u test_-f.output - diff -aub test_no_options.cpp.gcov test.cpp.gcov diff -aub test_no_options.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a | diff -u test_no_options.output - diff -aub test_-a.cpp.gcov test.cpp.gcov diff -aub test_-a.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b | diff -u test_-b.output - diff -aub test_-a_-b.cpp.gcov test.cpp.gcov diff -aub test_-a_-b.h.gcov test.h.gcov On a native mips linux machine, we are failing a make check test which seems like it is supposed to already xfail. For one, the file test.c does not even exist (it is called test.cpp) And in the test file there is a line: XFAIL: powerpc64, s390x, mips, sparc The script in make check thinks that it passed but clearly it does not. llvm-cov is returning 0 in this case. Anybody know about this issue? /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -f | /home/rkotler/caviumllvm/build/Debug+Asserts/bin/not diff -u test_-b_-f.output - >/dev/null diff -aub test_-a_-b.cpp.gcov test.cpp.gcov diff -aub test_-a_-b.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -u | diff -u test_-b.output - diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov diff -aub test_-a_-b_-u.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b -c -u | diff -u test_-b.output - diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=no_such_gcda_file | diff -u test_no_gcda.output - diff -aub test_no_gcda.cpp.gcov test.cpp.gcov diff -aub test_no_gcda.h.gcov test.h.gcov not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcno=test_read_fail.gcno not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_file_checksum_fail.gcda not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -gcda=test_func_checksum_fail.gcda -- Exit Code: 0 Command Output (stderr): -- Unexpected end of memory buffer: 72. Invalid .gcno File! File checksums do not match: 557866544 != 1280071245. Invalid .gcda File! File checksums do not match: 557866544 != 3906235290. Invalid .gcda File! -- ******************** Testing Time: 418.75s ******************** Unexpected Passing Tests (1): LLVM :: tools/llvm-cov/llvm-cov.test Expected Passes : 9678 Expected Failures : 70 Unsupported Tests : 35 Unexpected Passes : 1 make: *** [check-local] Error 1
I don’t have a mips system, so it’s hard to know what’s going on. The XFAIL may be too broad. As I remember, the intention was to XFAIL big-endian systems. Then again, it does seem like there is a real failure here. I would be happy to work with you to try to get it fixed, but you’ll have to do some debugging to figure out what the problem is. On Feb 20, 2014, at 9:04 PM, Reed Kotler <Reed.Kotler at imgtec.com> wrote:> The immediate issue her for me is that llvm-cov is clearly failing but it returns 0. > > This causes make check to fail because then it becomes an unexpected pass because > this test is xfailed for mips. > > ________________________________________ > From: reed kotler [rkotler at mips.com] > Sent: Thursday, February 20, 2014 4:58 PM > To: LLVMdev at cs.uiuc.edu > Subject: make check issue with llvm-cov > > rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make > Making LLVM 'lit.site.cfg' file... > Making LLVM unittest 'lit.site.cfg' file... > ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \ > /usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s > -v . ) > XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784) > ******************** TEST 'LLVM :: tools/llvm-cov/llvm-cov.test' FAILED > ******************** > Script: > -- > rm -rf > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > mkdir > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > cd > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp > cp /home/rkotler/workspace/llvm/test/tools/llvm-cov/Inputs/test* . > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff > -u test_no_options.output - > diff -aub test_no_options.cpp.gcov test.cpp.gcov > diff -aub test_no_options.h.gcov test.h.gcov > mkdir -p > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir > cp test.gcno test.gcda > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir > test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o > objdir/test.o test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir/test > test.c | diff -u test_no_options.output - > diff -aub test_objdir.cpp.gcov test.cpp.gcov > diff -aub test_objdir.h.gcov test.h.gcov > mkdir -p > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir/nested_dir > cp test.cpp test.h > /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/srcdir > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -p > test_paths.cpp | diff -u test_preserve_paths.output - > diff -aub test_paths.cpp.gcov srcdir#nested_dir#^#test.cpp.gcov > diff -aub test_paths.h.gcov srcdir#nested_dir#^#test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test_paths.cpp > | diff -u test_no_preserve_paths.output - > diff -aub test_paths.cpp.gcov test.cpp.gcov > diff -aub test_paths.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -f | > diff -u test_-f.output - > diff -aub test_no_options.cpp.gcov test.cpp.gcov > diff -aub test_no_options.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a | > diff -u test_no_options.output - > diff -aub test_-a.cpp.gcov test.cpp.gcov > diff -aub test_-a.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b | > diff -u test_-b.output - > diff -aub test_-a_-b.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b.h.gcov test.h.gcov > On a native mips linux machine, we are failing a make check test which > seems like it is supposed to already xfail. > > For one, the file test.c does not even exist (it is called test.cpp) > > And in the test file there is a line: > XFAIL: powerpc64, s390x, mips, sparc > > The script in make check thinks that it passed but clearly it does not. > llvm-cov is returning 0 in this case. > > Anybody know about this issue? > > > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b > -f | /home/rkotler/caviumllvm/build/Debug+Asserts/bin/not diff -u > test_-b_-f.output - >/dev/null > diff -aub test_-a_-b.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b > -u | diff -u test_-b.output - > diff -aub test_-a_-b_-u.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b_-u.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c -a -b > -c -u | diff -u test_-b.output - > diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov > diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov > /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c > -gcda=no_such_gcda_file | diff -u test_no_gcda.output - > diff -aub test_no_gcda.cpp.gcov test.cpp.gcov > diff -aub test_no_gcda.h.gcov test.h.gcov > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c > -gcno=test_read_fail.gcno > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c > -gcda=test_file_checksum_fail.gcda > not /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c > -gcda=test_func_checksum_fail.gcda > -- > Exit Code: 0 > > Command Output (stderr): > -- > Unexpected end of memory buffer: 72. > Invalid .gcno File! > File checksums do not match: 557866544 != 1280071245. > Invalid .gcda File! > File checksums do not match: 557866544 != 3906235290. > Invalid .gcda File! > > -- > > ******************** > Testing Time: 418.75s > ******************** > Unexpected Passing Tests (1): > LLVM :: tools/llvm-cov/llvm-cov.test > > Expected Passes : 9678 > Expected Failures : 70 > Unsupported Tests : 35 > Unexpected Passes : 1 > make: *** [check-local] Error 1 > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
reed kotler <rkotler at mips.com> writes:> On a native mips linux machine, we are failing a make check test which > seems like it is supposed to already xfail.I think you're mistaken. The test below looks like it's passing.> For one, the file test.c does not even exist (it is called test.cpp)This should probably be test.o, rather than test.c or test.cpp, but the interface to llvm-cov is compatible with gcov, which completely ignores the file given as an argument other than to base the .gcno and .gcno file names on it.> And in the test file there is a line: > XFAIL: powerpc64, s390x, mips, sparcThis is a crude attempt at "XFAIL: big-endian". The mips entry here is just wrong if the system is little-endian - the test passes on little-endian machines and fails on big-endian. This is obviously a problem.> The script in make check thinks that it passed but clearly it does not. > llvm-cov is returning 0 in this case.I'm not sure which case you're referring to. This test file really has too many tests in it, which makes it confusing to debug failures. Someone (me?) should probably split this into several tests that invoke llvm-cov once each. The use of diff should be replaced with FileCheck as well, so that error messages are clearer. In any case, all of the llvm-cov calls except the read/checksum fail invocations should (and do) return zero on little-endian. I think the only problem here is that the XFAIL line is wrong.
> > And in the test file there is a line: > > XFAIL: powerpc64, s390x, mips, sparc > > This is a crude attempt at "XFAIL: big-endian". The mips entry here is just > wrong if the system is little-endian - the test passes on little-endian machines > and fails on big-endian. This is obviously a problem.'XFAIL: mips' counts as an XFAIL for all mips targets because lit is checking for substrings (using the 'in' operator) of the target triple and 'mips' is a substring of 'mipsel-...'. I haven't tested this but I think that we need 'XFAIL: mips-, mips64-' to distinguish little/big-endian correctly for MIPS. The relevant code is the isExpectedToFail() function in utils/lit/lit/Test.py.> -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Justin Bogner > Sent: 21 February 2014 08:21 > To: Reed Kotler > Cc: LLVMdev at cs.uiuc.edu > Subject: Re: [LLVMdev] make check issue with llvm-cov > > reed kotler <rkotler at mips.com> writes: > > On a native mips linux machine, we are failing a make check test which > > seems like it is supposed to already xfail. > > I think you're mistaken. The test below looks like it's passing. > > > For one, the file test.c does not even exist (it is called test.cpp) > > This should probably be test.o, rather than test.c or test.cpp, but the > interface to llvm-cov is compatible with gcov, which completely ignores the > file given as an argument other than to base the .gcno and .gcno file names > on it. > > > And in the test file there is a line: > > XFAIL: powerpc64, s390x, mips, sparc > > This is a crude attempt at "XFAIL: big-endian". The mips entry here is just > wrong if the system is little-endian - the test passes on little-endian machines > and fails on big-endian. This is obviously a problem. > > > The script in make check thinks that it passed but clearly it does not. > > llvm-cov is returning 0 in this case. > > I'm not sure which case you're referring to. This test file really has too many > tests in it, which makes it confusing to debug failures. > Someone (me?) should probably split this into several tests that invoke llvm- > cov once each. The use of diff should be replaced with FileCheck as well, so > that error messages are clearer. > > In any case, all of the llvm-cov calls except the read/checksum fail invocations > should (and do) return zero on little-endian. I think the only problem here is > that the XFAIL line is wrong. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reasonably Related Threads
- Writing a test for gcov style coverage crashing after dlclose
- [LLVMdev] GCC compatibility code coverage issue .
- [LLVMdev] GCC compatibility code coverage issue .
- Unable to generate lcov test coverage reports (Out of memory error)
- Xen GCOV Patches for latest Xen Unbstable and linux 2.6.18.8 kernel(32/64bit)