summaryrefslogtreecommitdiff
path: root/deps/v8/tools/jsfunfuzz/download_jsfunfuzz.py
blob: 2925213ced53a617fe65cf70836863932181b1d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import re
import subprocess

FUZZ_PATH = os.path.dirname(os.path.abspath(__file__))
SHA1_PATH = os.path.join(FUZZ_PATH, 'jsfunfuzz.tar.gz.sha1')

if re.search(r'\bjsfunfuzz=1', os.environ.get('GYP_DEFINES', '')):
  subprocess.check_call([
    'download_from_google_storage',
    '-b', 'chrome-v8-jsfunfuzz',
    '-u', '--no_resume',
    '-s', SHA1_PATH,
    '--platform=linux*'
  ])