| Index: scripts/slave/recipes/gn_buildbot.py
|
| diff --git a/scripts/slave/recipes/gn_buildbot.py b/scripts/slave/recipes/gn_buildbot.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2fb19bb478a1be2551c20284197348af60f6d39b
|
| --- /dev/null
|
| +++ b/scripts/slave/recipes/gn_buildbot.py
|
| @@ -0,0 +1,45 @@
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +DEPS = [
|
| + 'chromium',
|
| + 'gclient',
|
| + 'platform',
|
| + 'properties',
|
| +]
|
| +
|
| +
|
| +def GenSteps(api):
|
| + api.gclient.set_config('chromium')
|
| + yield api.gclient.checkout(revert=True)
|
| +
|
| + api.chromium.set_config('chromium')
|
| + yield api.chromium.runhooks(run_gyp=False)
|
| +
|
| + yield api.chromium.run_gn(api.chromium.output_dir)
|
| +
|
| + yield api.chromium.compile_with_ninja('compile', api.chromium.output_dir)
|
| +
|
| + # TODO(dpranke): crbug.com/353854. We should pull the list of test_targets
|
| + # from src/testing/buildbot.
|
| + yield api.chromium.runtest('gn_unittests', annotate='gtest')
|
| +
|
| +
|
| +def GenTests(api):
|
| + yield (
|
| + api.test('unittest_basic') +
|
| + api.properties.generic(build_config='Debug') +
|
| + api.platform.name('linux')
|
| + )
|
| +
|
| + # TODO(dpranke): This test should actually produce the same result
|
| + # as the previous test, but it specifically matches what is run
|
| + # on the "Linux GN (dbg)" bot. We should have one 'simulation' test
|
| + # for each bot config. Ideally this should live somewhere else
|
| + # closer to the master tests.
|
| + yield (
|
| + api.test('full_chromium_linux_Linux_GN__dbg_') +
|
| + api.properties.generic(build_config='Debug') +
|
| + api.platform.name('linux')
|
| + )
|
|
|