This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] enable test-suite discovery in source tree for libFuzzer & profile
AbandonedPublic

Authored by ychen on Jan 23 2020, 4:06 PM.

Details

Summary

so I could use llvm-lit /path/to/*.test. If preferred, this could
be done for other parts like ASan etc..

Diff Detail

Event Timeline

ychen created this revision.Jan 23 2020, 4:06 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 23 2020, 4:06 PM
Herald added subscribers: llvm-commits, Restricted Project, mgorny. · View Herald Transcript

Unit tests: fail. 62153 tests passed, 5 failed and 812 were skipped.

failed: libc++.std/language_support/cmp/cmp_partialord/partialord.pass.cpp
failed: libc++.std/language_support/cmp/cmp_strongeq/cmp.strongeq.pass.cpp
failed: libc++.std/language_support/cmp/cmp_strongord/strongord.pass.cpp
failed: libc++.std/language_support/cmp/cmp_weakeq/cmp.weakeq.pass.cpp
failed: libc++.std/language_support/cmp/cmp_weakord/weakord.pass.cpp

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

ychen updated this revision to Diff 240093.Jan 23 2020, 10:56 PM
  • enable profile test-suite discovery
ychen retitled this revision from [libFuzzer] for lit, enable discovering test-suite in source tree to [compiler-rt] enable test-suite discovery in source tree for libFuzzer & profile.Jan 23 2020, 10:57 PM

Unit tests: fail. 62152 tests passed, 5 failed and 811 were skipped.

failed: libc++.std/language_support/cmp/cmp_partialord/partialord.pass.cpp
failed: libc++.std/language_support/cmp/cmp_strongeq/cmp.strongeq.pass.cpp
failed: libc++.std/language_support/cmp/cmp_strongord/strongord.pass.cpp
failed: libc++.std/language_support/cmp/cmp_weakeq/cmp.weakeq.pass.cpp
failed: libc++.std/language_support/cmp/cmp_weakord/weakord.pass.cpp

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

rnk added inline comments.Jan 27 2020, 4:21 PM
compiler-rt/test/fuzzer/CMakeLists.txt
67–68

This isn't going to work well when the same test suite is configured multiple times. If you look at llvm-lit.in, it just adds a dictionary entry. Adding multiple entries for the same source directory will make the later ones overwrite the first, and the choice will be arbitrary. If you could generalize it a bit to run the same test in all supported configs (static/dynamic/32/64) for example, that would be useful.

ychen added inline comments.Jan 27 2020, 5:09 PM
compiler-rt/test/fuzzer/CMakeLists.txt
67–68

Understood. I'll try to add support for this.

If you could generalize it a bit to run the same test in all supported configs

ychen marked an inline comment as done.Feb 4 2020, 10:56 AM
ychen added inline comments.
compiler-rt/test/fuzzer/CMakeLists.txt
67–68
ychen abandoned this revision.Feb 10 2020, 2:51 PM

Created D73981 instead.