Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active July 8, 2017 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/b675baa14946e11968a3f191ee49f932 to your computer and use it in GitHub Desktop.
Save mfikes/b675baa14946e11968a3f191ee49f932 to your computer and use it in GitHub Desktop.

Get pre-built ChakraCore binary here: https://github.com/Microsoft/ChakraCore/releases (click on the OSX (x64) link, for example) and unarchive it.

Set an env var so that $CHAKRA_HOME/ch works:

export CHAKRA_HOME=.../ChakraCoreFiles/bin

Update the script/test to use it if set by adding:

if [ "$CHAKRA_HOME" = "" ]; then
  echo "CHAKRA_HOME not set, skipping ChakraCore tests"
else
  echo "Testing with ChakraCore"
  "${CHAKRA_HOME}/ch" builds/out-adv/core-advanced-test.js
  ran=$((ran+1))
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment