mirror of
https://github.com/wazero/wazero
synced 2026-06-21 14:12:37 +00:00
8c7e0caead
Signed-off-by: Adrian Cole <adrian@tetrate.io>
62 lines
1.3 KiB
Go
62 lines
1.3 KiB
Go
//go:build cgo && wasmedge
|
|
|
|
// wasmedge depends on manual installation of a shared library, so is guarded by a flag by default.
|
|
|
|
package wasmedge
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/tetratelabs/wazero/internal/integration_test/vs"
|
|
)
|
|
|
|
var runtime = newWasmedgeRuntime
|
|
|
|
func TestAllocation(t *testing.T) {
|
|
vs.RunTestAllocation(t, runtime)
|
|
}
|
|
|
|
func BenchmarkAllocation(b *testing.B) {
|
|
vs.RunBenchmarkAllocation(b, runtime)
|
|
}
|
|
|
|
func TestBenchmarkAllocation_Call_CompilerFastest(t *testing.T) {
|
|
vs.RunTestBenchmarkAllocation_Call_CompilerFastest(t, runtime())
|
|
}
|
|
|
|
func TestFactorial(t *testing.T) {
|
|
vs.RunTestFactorial(t, runtime)
|
|
}
|
|
|
|
func BenchmarkFactorial(b *testing.B) {
|
|
vs.RunBenchmarkFactorial(b, runtime)
|
|
}
|
|
|
|
func TestBenchmarkFactorial_Call_CompilerFastest(t *testing.T) {
|
|
vs.RunTestBenchmarkFactorial_Call_CompilerFastest(t, runtime())
|
|
}
|
|
|
|
func TestHostCall(t *testing.T) {
|
|
vs.RunTestHostCall(t, runtime)
|
|
}
|
|
|
|
func BenchmarkHostCall(b *testing.B) {
|
|
vs.RunBenchmarkHostCall(b, runtime)
|
|
}
|
|
|
|
func TestBenchmarkHostCall_CompilerFastest(t *testing.T) {
|
|
vs.RunTestBenchmarkHostCall_CompilerFastest(t, runtime())
|
|
}
|
|
|
|
func TestMemory(t *testing.T) {
|
|
vs.RunTestMemory(t, runtime)
|
|
}
|
|
|
|
func BenchmarkMemory(b *testing.B) {
|
|
vs.RunBenchmarkMemory(b, runtime)
|
|
}
|
|
|
|
func TestBenchmarkMemory_CompilerFastest(t *testing.T) {
|
|
vs.RunTestBenchmarkMemory_CompilerFastest(t, runtime())
|
|
}
|