Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 1634593006: Add chrome clang tests as custom targets instead of tests. (Closed)

Created:
4 years, 11 months ago by dcheng
Modified:
4 years, 10 months ago
Reviewers:
hans
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add chrome clang tests as custom targets instead of tests. It seems like tests don't create an actual target to use for add_dependencies(). With add_test(), CMake always fires this warning: Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "plugins_test" of target "cr-check-all" does not exist. Call Stack (most recent call first): /usr/local/google/ssd/src/chrome/src/tools/clang/plugins/CMakeLists.txt:28 (cr_add_test) This warning is for project developers. Use -Wno-dev to suppress it. BUG=none Committed: https://crrev.com/e64fc662ec5670fcb5b6562f0ba2e47af1043718 Cr-Commit-Position: refs/heads/master@{#371553}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M tools/clang/CMakeLists.txt View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
dcheng
The warning is spammy and has been bugging me for a couple months.
4 years, 11 months ago (2016-01-25 23:54:25 UTC) #2
dcheng
(Also, I verified that the tests still run)
4 years, 11 months ago (2016-01-25 23:54:34 UTC) #3
hans
lgtm
4 years, 11 months ago (2016-01-26 18:33:07 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634593006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634593006/1
4 years, 11 months ago (2016-01-26 18:37:24 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-26 19:13:01 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/e64fc662ec5670fcb5b6562f0ba2e47af1043718 Cr-Commit-Position: refs/heads/master@{#371553}
4 years, 11 months ago (2016-01-26 19:14:03 UTC) #9
dcheng
4 years, 10 months ago (2016-02-02 07:45:02 UTC) #10
Message was sent while issue was closed.
So upon further inspection, this appears to cause the plugin tests to /always/
run. I'm going to manually revert this tomorrow and try to find a better
solution.

Powered by Google App Engine
This is Rietveld 408576698