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

Side by Side Diff: test/determinism/gyptest-determinism.py

Issue 1506733002: GYP: Make GYP build deterministic (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Fixes cosmetic issue Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/determinism/empty-targets.gyp ('k') | test/determinism/gyptest-empty-target-names.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2015 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """
8 Verifies builds are the same even with different PYTHONHASHSEEDs.
9 Tests target_short_names and FlattenToList.
10 """
11
12 import os
13 import sys
14 import TestGyp
15
16 test = TestGyp.TestGyp()
17 if test.format == 'ninja':
18 os.environ["PYTHONHASHSEED"] = "1"
19 test.run_gyp('determinism.gyp')
20 base = open(test.built_file_path('build.ninja')).read()
21
22 for i in range(1,5):
23 os.environ["PYTHONHASHSEED"] = str(i)
24 test.run_gyp('determinism.gyp')
25 contents = open(test.built_file_path('build.ninja')).read()
26 if base != contents:
27 test.fail_test()
28
29 del os.environ["PYTHONHASHSEED"]
30 test.pass_test()
OLDNEW
« no previous file with comments | « test/determinism/empty-targets.gyp ('k') | test/determinism/gyptest-empty-target-names.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698