Skip to content

Commit 796a7d7

Browse files
committed
Add test:new command
1 parent c7ed2b6 commit 796a7d7

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

instrumentation-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ opt-level = "s"
2727
lto = true
2828

2929
[package.metadata.wasm-pack.profile.release]
30-
wasm-opt = ["--enable-bulk-memory", "--enable-nontrapping-float-to-int"]
30+
wasm-opt = ["-O", "--enable-bulk-memory", "--enable-nontrapping-float-to-int"]

library/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"scripts": {
136136
"test": "node ../scripts/run-tap.js",
137137
"test:ci": "CI=true node ../scripts/run-tap.js",
138+
"test:new": "node ../scripts/run-tap.js --test-new-instrumentation",
138139
"build": "tsc -p tsconfig.build.json",
139140
"build:watch": "tsc --watch -p tsconfig.build.json",
140141
"lint": "npm run lint-eslint && npm run lint-tsc && npm run check-format",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"watch": "cd library && npm run build:watch",
1414
"test": "cd library && npm run test",
1515
"test:ci": "cd library && npm run test:ci",
16+
"test:new": "cd library && npm run test:new",
1617
"lint": "cd library && npm run lint",
1718
"end2end": "cd end2end && npm run test",
1819
"format": "prettier --write .",

scripts/run-tap.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ if (process.env.CI) {
1515
args += " --coverage-report=lcov";
1616
}
1717

18+
if (process.argv.includes("--test-new-instrumentation")) {
19+
process.env.AIKIDO_TEST_NEW_INSTRUMENTATION = "true";
20+
}
21+
1822
execSync(`tap ${args}`, {
1923
stdio: "inherit",
2024
env: {

0 commit comments

Comments
 (0)