8038615: test262 repo is now a git repo in github
Reviewed-by: lagergren, hannesw
This commit is contained in:
parent
7ea75c6bbb
commit
0a8095d53a
@ -81,13 +81,13 @@ TestNG library and placing its jar file into the lib subdirectory:
|
||||
|
||||
After that, you can run the tests using:
|
||||
cd make
|
||||
ant test
|
||||
ant clean test
|
||||
|
||||
You can also run the ECMA-262 test suite with Nashorn. In order to do
|
||||
that, you will need to get a copy of it and put it in
|
||||
test/script/external/test262 directory. A convenient way to do it is:
|
||||
|
||||
hg clone http://hg.ecmascript.org/tests/test262/ test/script/external/test262
|
||||
git clone https://github.com/tc39/test262 test/script/external/test262
|
||||
|
||||
Alternatively, you can check it out elsewhere and make
|
||||
test/script/external/test262 a symbolic link to that directory. After
|
||||
@ -95,6 +95,11 @@ you've done this, you can run the ECMA-262 tests using:
|
||||
|
||||
cd nashorn~jdk8/nashorn/make
|
||||
ant test262
|
||||
|
||||
Ant target to get/update external test suites:
|
||||
|
||||
ant externals
|
||||
ant update-externals
|
||||
|
||||
These tests take time, so we have a parallelized runner for them that
|
||||
takes advantage of all processor cores on the computer:
|
||||
|
@ -42,6 +42,9 @@
|
||||
<condition property="hg.executable" value="/usr/local/bin/hg" else="hg">
|
||||
<available file="/usr/local/bin/hg"/>
|
||||
</condition>
|
||||
<condition property="git.executable" value="/usr/local/bin/git" else="git">
|
||||
<available file="/usr/local/bin/git"/>
|
||||
</condition>
|
||||
<!-- check if JDK already has ASM classes -->
|
||||
<available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/>
|
||||
<!-- check if testng.jar is avaiable -->
|
||||
@ -503,18 +506,17 @@ grant codeBase "file:/${basedir}/test/script/markdown.js" {
|
||||
|
||||
<!-- test262 test suite -->
|
||||
<target name="get-test262" depends="init" unless="${test-sys-prop.external.test262}">
|
||||
<!-- clone test262 mercurial repo -->
|
||||
<exec executable="${hg.executable}">
|
||||
<!-- clone test262 git repo -->
|
||||
<exec executable="${git.executable}">
|
||||
<arg value="clone"/>
|
||||
<arg value="http://hg.ecmascript.org/tests/test262"/>
|
||||
<arg value="https://github.com/tc39/test262"/>
|
||||
<arg value="${test.external.dir}/test262"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="update-test262" depends="init" if="${test-sys-prop.external.test262}">
|
||||
<!-- update test262 mercurial repo -->
|
||||
<exec executable="${hg.executable}" dir="${test.external.dir}/test262">
|
||||
<!-- update test262 git repo -->
|
||||
<exec executable="${git.executable}" dir="${test.external.dir}/test262">
|
||||
<arg value="pull"/>
|
||||
<arg value="-u"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user