16ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org#!/usr/bin/env python 26ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org 36ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org# Copyright (c) 2012 Google Inc. All rights reserved. 46ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org# Use of this source code is governed by a BSD-style license that can be 56ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org# found in the LICENSE file. 66ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org 76ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org""" 86ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgMake sure lots of actions in the same target don't cause exceeding command 96ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgline length. 106ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org""" 116ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org 126ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgimport TestGyp 136ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org 146ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgtest = TestGyp.TestGyp() 156ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org 166ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgtest.run_gyp('many-actions-unsorted.gyp') 176ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgtest.build('many-actions-unsorted.gyp', test.ALL) 186ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgfor i in range(15): 196ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.org test.built_file_must_exist('generated_%d.h' % i) 2016fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.org 2116fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.org# Make sure the optimized cygwin setup doesn't cause problems for incremental 2216fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.org# builds. 2316fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.touch('file1') 2416fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.build('many-actions-unsorted.gyp', test.ALL) 2516fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.org 2616fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.touch('file0') 2716fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.build('many-actions-unsorted.gyp', test.ALL) 2816fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.org 2916fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.touch('file2') 3016fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.touch('file3') 3116fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.touch('file4') 3216fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.orgtest.build('many-actions-unsorted.gyp', test.ALL) 3316fb10a3f76e43a5bf946e88ac9ea03e5efe505bscottmg@chromium.org 346ef9e771fb083918f003f4c54b1b978f3cad9530scottmg@chromium.orgtest.pass_test() 35