Skip to content

Commit

Permalink
run some tests with single wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Oct 23, 2024
1 parent 81155d8 commit 8914c57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions system_tests/program_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ func TestProgramKeccak(t *testing.T) {
builder.WithExtraArchs(allWasmTargets)
})
})

t.Run("WithOnlyLocalTarget", func(t *testing.T) {
keccakTest(t, true, func(builder *NodeBuilder) {
builder.WithExtraArchs([]string{string(rawdb.LocalTarget())})
})
})
}

func keccakTest(t *testing.T, jit bool, builderOpts ...func(*NodeBuilder)) {
Expand Down Expand Up @@ -163,6 +169,11 @@ func TestProgramActivateTwice(t *testing.T) {
builder.WithExtraArchs(allWasmTargets)
})
})
t.Run("WithOnlyLocalTarget", func(t *testing.T) {
testActivateTwice(t, true, func(builder *NodeBuilder) {
builder.WithExtraArchs([]string{string(rawdb.LocalTarget())})
})
})
}

func testActivateTwice(t *testing.T, jit bool, builderOpts ...func(*NodeBuilder)) {
Expand Down

0 comments on commit 8914c57

Please sign in to comment.