Skip to content

Commit

Permalink
chore(ses): improve Hermes test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Aug 14, 2024
1 parent 258b6e9 commit 138ebd7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/ses/scripts/hermes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ esac
HERMESC="../../node_modules/hermes-engine-cli/$OS_DIR/hermesc"
HERMES="../../node_modules/hermes-engine-cli/$OS_DIR/hermes"

echo "Catenating SES to Hermes smoke test"
echo "Catenating: dist/ses.cjs + test/hermes-smoke.js"
cat dist/ses.cjs test/hermes-smoke.js > test/hermes-smoke-dist.js
echo "Generated: test/hermes-smoke-dist.js"

echo "Executing smoke test on Hermes compiler"
$HERMESC -emit-binary -out test/hermes-smoke.hbc test/hermes-smoke-dist.js
echo "Executing: test/hermes-smoke-dist.js on Hermes compiler"
$HERMESC -emit-binary -out test/hermes-smoke-dist.hbc test/hermes-smoke-dist.js
echo "Generated: test/hermes-smoke-dist.hbc"
echo "Hermes compiler done"

# Disabled until https://github.com/endojs/endo/issues/1891 complete
# TODO: Disabled until https://github.com/endojs/endo/issues/1891 complete
# echo "Executing generated bytecode file on Hermes VM"
# $HERMES -b hermes-smoke.hbc
# echo "Hermes VM done"
echo "Skipping Hermes VM"

echo "Hermes tests complete"

0 comments on commit 138ebd7

Please sign in to comment.