Skip to content

Instantly share code, notes, and snippets.

@troZee
Created May 29, 2025 11:22
Show Gist options
  • Save troZee/e3f2be4796810fcc927cdd5320aa2f8b to your computer and use it in GitHub Desktop.
Save troZee/e3f2be4796810fcc927cdd5320aa2f8b to your computer and use it in GitHub Desktop.
How to run e2e intl hermes tests
# SOURCE: https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml#L544
# in the terminal, run the below command
emulator -avd AVD_NAME -timezone Europe/Paris -no-snapshot-save -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
#in the different terminal
rm -rf build build_android staging
export HERMES_WS_DIR=/Users/nick/xxxx/xxx
cd $HERMES_WS_DIR
if [ ! -d "test262" ]; then
git clone https://github.com/tc39/test262
cd test262
git checkout 62626e083bd506124aac6c799464d76c2c42851b
cd ..
fi
cmake -S hermes -B ./build -DCMAKE_BUILD_TYPE=Release
cmake --build ./build -j 4 --target hermesc
cd "$HERMES_WS_DIR/hermes/android"
./gradlew :intltest:prepareTests
ABI=$(adb shell getprop ro.product.cpu.abi | tr -d '\r')
if [ "$ABI" = "arm64-v8a" ]; then
./gradlew -Pabis=arm64-v8a :intltest:connectedAndroidTest
else
./gradlew -Pabis=x86 :intltest:connectedAndroidTest
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment