Forked from caiolima/gist:d7c538fa936dc62ed3cd7841bbe04dc3
Created
March 9, 2017 14:03
-
-
Save leobalter/a122cce216ca42552e91f5ff8ab1f48b to your computer and use it in GitHub Desktop.
Running JSC on test262-harness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First you need to build JSC. Since it is a module in WebKit, you can follow these instructions to get the code and learn how to build it. | |
https://webkit.org/getting-started/#building-webkit | |
After the machine setup, you can build JSC as a stand-alone CLI program running | |
```<path_to_webkit>/Tools/Scripts/build-jsc —release``` | |
It will build jsc into ```<path_to_webkit>/WebKitBuild/Release``` | |
Now, to run it using test262-harness, you need to configure an env var “DYLD_FRAMEWORK_PATH=<path_to_webkit>/WebKitBuild/Release”. To do that, I execute following command: | |
```export DYLD_FRAMEWORK_PATH=<path_to_webkit>/WebKitBuild/Release``` | |
and then run | |
```test262-harness --hostType jsc --hostPath '<path_to_webkit>/WebKitBuild/Debug/jsc' 'test/language/**/*.js'``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment