Skip to content

Commit 2c3426c

Browse files
Merge pull request #342 from tschneidereit/custom-runtime
Support custom StarlingMonkey runtime builds
2 parents 4a964be + c5ee52a commit 2c3426c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bin/j2w.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ const args = yargs(hideBin(process.argv))
2323
alias: 'd',
2424
describe: 'Path to wit file or folder',
2525
})
26+
.option('runtime-path', {
27+
alias: 'r',
28+
describe: 'Path to a custom runtime wasm file',
29+
})
2630
.option('output', {
2731
alias: 'o',
2832
describe: 'Path to the output file',
@@ -115,6 +119,7 @@ async function saveBuildData(buildDataPath, checksum, version) {
115119
const { component } = await componentize(precompiledSource, {
116120
sourceName: basename(src),
117121
witPath,
122+
engine: args.runtimePath,
118123
worldName: args.triggerType,
119124
disableFeatures: [],
120125
enableFeatures: ["http"],

test/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ echo "built the test app successfully"
1818
# Start the spin app in the background
1919
echo "Starting Spin app"
2020
spin up &
21+
SPIN_PID=$!
2122

2223
# wait for app to be up and running
2324
echo "Waiting for Spin app to be ready"
@@ -30,10 +31,10 @@ echo "\n\nTest completed"
3031

3132
# kill the spin app
3233
echo "Stopping Spin"
33-
killall spin
34+
kill -9 $SPIN_PID
3435

3536

3637
if [ "$isFailed" = true ] ; then
3738
echo "Some tests failed"
3839
exit 1
39-
fi
40+
fi

0 commit comments

Comments
 (0)