summaryrefslogtreecommitdiff
path: root/deps/v8/test/test262/list.py
blob: 9b36ce789c5baa217d118ecb5e5294c86336ffa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 sys
import tarfile
from itertools import chain

os.chdir(os.path.dirname(os.path.abspath(__file__)))

for root, dirs, files in chain(os.walk("data"), os.walk("harness")):
  dirs[:] = [d for d in dirs if not d.endswith('.git')]
  for name in files:
    # These names are for gyp, which expects slashes on all platforms.
    pathname = '/'.join(root.split(os.sep) + [name])
    # For gyp, quote the name in case it includes spaces
    if len(sys.argv) > 1 and sys.argv[1] == '--quoted':
      pathname = '"' + pathname + '"'
    print(pathname)