Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions integrationTests/json/scenariosFeatures_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package vmjsonintegrationtest

import (
"path/filepath"
"testing"
)

Expand Down Expand Up @@ -95,6 +96,37 @@ func TestRustPayableFeatures(t *testing.T) {
CheckNoError()
}

func TestRustPayableFeaturesBarnard(t *testing.T) {
if testing.Short() {
t.Skip("not a short test")
}

// we run the exact same tests, but on a different compiled contract,
// this contract uses the new "managedGetAllTransfersCallValue" VM hook,
// which is only available in Barnard
// this will become the only test

ScenariosTest(t).
Folder("features/payable-features/scenarios").
ReplacePath(
"../output/payable-features.mxsc.json",
filepath.Join(getTestRoot(), "features/payable-features/output/payable-features-barnard.mxsc.json"),
).
Run().
CheckNoError()
}

func TestRustPanicMessageFeatures(t *testing.T) {
if testing.Short() {
t.Skip("not a short test")
}

ScenariosTest(t).
Folder("features/panic-message-features/scenarios").
Run().
CheckNoError()
}

func TestRustComposability(t *testing.T) {
ScenariosTest(t).
Folder("features/composability/scenarios").
Expand Down
2 changes: 1 addition & 1 deletion vmhost/hosttest/forbidden_opcodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func TestForbiddenOps_BulkAndSIMD(t *testing.T) {
wasmModules := []string{"data-drop", "memory-init", "memory-fill", "memory-copy", "simd"}
wasmModules := []string{"data-drop", "memory-init", "simd"}

for _, moduleName := range wasmModules {
testCase := testcommon.BuildInstanceCallTest(t).
Expand Down
2 changes: 2 additions & 0 deletions vmhost/vmhooks/generate/cmd/input/wasmer2_opcodes_short.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ LocalAllocate
Loop
MemoryGrow
MemorySize
MemoryCopy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need on VerifyContract and activation flag and to check these opcodes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added activation flags and checks

MemoryFill
Nop
RefFunc
RefIsNull
Expand Down
Binary file modified wasmer2/libvmexeccapi.dylib
Binary file not shown.
Binary file modified wasmer2/libvmexeccapi.so
Binary file not shown.
Binary file modified wasmer2/libvmexeccapi_arm.dylib
Binary file not shown.
Binary file modified wasmer2/libvmexeccapi_arm.so
Binary file not shown.
2 changes: 2 additions & 0 deletions wasmer2/opcodeCost.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading