OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 the V8 project authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # usage: test/test262/upstream-local-tests.sh |
| 6 # This script takes the files which were modified in the test262 local-test |
| 7 # directory (test/test262/local-tests) in the top patch of the v8 tree and |
| 8 # creates a new patch in the local test262 checkout (test/test262/data). |
| 9 # This patch could then hopefully be used for upstreaming tests. |
| 10 # The script should be run from the top level directory of the V8 checkout. |
| 11 |
| 12 git show | grep '+++ b/test/test262/local-tests' | while read test; do |
| 13 path=${test:6} |
| 14 datapath=${path/local-tests/data} |
| 15 echo cp $path $datapath |
| 16 cp $path $datapath |
| 17 cd test/test262/data |
| 18 git add ${datapath:18} || exit 1 |
| 19 cd ../../../ |
| 20 done |
| 21 cd test/test262/data |
| 22 git commit || exit 1 |
OLD | NEW |