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

Side by Side Diff: test/test262/upstream-local-tests.sh

Issue 2733843002: test262 roll (Closed)
Patch Set: in a comment, s/gn/gyp Created 3 years, 9 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/test262/testcfg.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 the V8 project authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # usage: test/test262/upstream-local-tests.sh 5 # usage: test/test262/upstream-local-tests.sh
6 # This script takes the files which were modified in the test262 local-test 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 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). 8 # creates a new patch in the local test262 checkout (test/test262/data).
9 # This patch could then hopefully be used for upstreaming tests. 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. 10 # The script should be run from the top level directory of the V8 checkout.
11 11
12 git show | grep '+++ b/test/test262/local-tests' | while read test; do 12 git show $1 | grep '+++ b/test/test262/local-tests' | while read test; do
13 path=${test:6} 13 path=${test:6}
14 datapath=${path/local-tests/data} 14 datapath=${path/local-tests/data}
15 echo cp $path $datapath 15 echo cp $path $datapath
16 cp $path $datapath 16 cp $path $datapath
17 cd test/test262/data 17 cd test/test262/data
18 git add ${datapath:18} || exit 1 18 git add ${datapath:18} || exit 1
19 cd ../../../ 19 cd ../../../
20 done 20 done
21 cd test/test262/data 21 cd test/test262/data
22 git commit || exit 1 22 git commit || exit 1
OLDNEW
« no previous file with comments | « test/test262/testcfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698