This is an archive of the discontinued LLVM Phabricator instance.

[benchmark] Re-enable building benchmark tests
ClosedPublic

Authored by mtrofin on Jul 2 2021, 10:44 AM.

Diff Detail

Repository
rT test-suite

Event Timeline

mtrofin created this revision.Jul 2 2021, 10:44 AM
mtrofin requested review of this revision.Jul 2 2021, 10:44 AM

Gentle reminder - thanks!

Gentle reminder - thanks!

No particular opinion, if it works - cool.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 15 2021, 7:41 AM
This revision was automatically updated to reflect the committed changes.

I've reverted this (https://github.com/llvm/llvm-test-suite/commit/f6b04890c21ac634fcba6075017ec1487a85e132) as it's causing cmake to fail on all of the Linaro bots running the test suite.

E.g. https://lab.llvm.org/buildbot/#/builders/178/builds/151/steps/19/logs/stdio

CMake Error at cmake/modules/TestSuite.cmake:99 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "donotoptimize_assembly_test".
  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  MicroBenchmarks/libs/CMakeLists.txt:16 (test_suite_add_build_dependencies)

Do we need to enable these targets elsewhere before trying to add dependencies for them?

If it turns out the cmake cache needs clearing I can do that on our side.

I've reverted this (https://github.com/llvm/llvm-test-suite/commit/f6b04890c21ac634fcba6075017ec1487a85e132) as it's causing cmake to fail on all of the Linaro bots running the test suite.

E.g. https://lab.llvm.org/buildbot/#/builders/178/builds/151/steps/19/logs/stdio

CMake Error at cmake/modules/TestSuite.cmake:99 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "donotoptimize_assembly_test".
  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  MicroBenchmarks/libs/CMakeLists.txt:16 (test_suite_add_build_dependencies)

Do we need to enable these targets elsewhere before trying to add dependencies for them?

If it turns out the cmake cache needs clearing I can do that on our side.

This may be a caching issue. Can you look at the cache and see if BENCHMARK_ENABLE_TESTING is defined, and what value?

Locally, on a clean build directory, this has no issue.