OLD | NEW |
(Empty) | |
| 1 # usage: test/test262/upstream-local-tests.sh |
| 2 # This script takes the files which were modified in the test262 local-test |
| 3 # directory (test/test262/local-tests) in the top patch of the v8 tree and |
| 4 # creates a new patch in the local test262 checkout (test/test262/data). |
| 5 # This patch could then hopefully be used for upstreaming tests. |
| 6 # The script should be run from the top level directory of the V8 checkout. |
| 7 |
| 8 git show | grep '+++ b/test/test262/local-tests' | while read test; do |
| 9 path=${test:6} |
| 10 datapath=${path/local-tests/data} |
| 11 echo cp $path $datapath |
| 12 cp $path $datapath |
| 13 cd test/test262/data |
| 14 git add ${datapath:18} || exit 1 |
| 15 cd ../../../ |
| 16 done |
| 17 cd test/test262/data |
| 18 git commit || exit 1 |
OLD | NEW |