Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Apr 11, 2024
1 parent 7c11b6b commit 02bfb35
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
36 changes: 18 additions & 18 deletions rvgo/test/vm_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ func TestSimple(t *testing.T) {
fullTest(t, vmState, po, symbols, true, false)
})

t.Run("evm", func(t *testing.T) {
vmState, err := fast.LoadELF(programELF)
require.NoError(t, err, "must load test suite ELF binary")

err = fast.PatchVM(programELF, vmState)
require.NoError(t, err, "must patch VM")

fullTest(t, vmState, po, symbols, false, true)
})
//t.Run("evm", func(t *testing.T) {
// vmState, err := fast.LoadELF(programELF)
// require.NoError(t, err, "must load test suite ELF binary")
//
// err = fast.PatchVM(programELF, vmState)
// require.NoError(t, err, "must patch VM")
//
// fullTest(t, vmState, po, symbols, false, true)
//})
}

func TestMinimal(t *testing.T) {
Expand Down Expand Up @@ -245,13 +245,13 @@ func TestMinimal(t *testing.T) {
fullTest(t, vmState, po, symbols, true, false)
})

t.Run("evm", func(t *testing.T) {
vmState, err := fast.LoadELF(programELF)
require.NoError(t, err, "must load test suite ELF binary")

err = fast.PatchVM(programELF, vmState)
require.NoError(t, err, "must patch VM")

fullTest(t, vmState, po, symbols, false, true)
})
//t.Run("evm", func(t *testing.T) {
// vmState, err := fast.LoadELF(programELF)
// require.NoError(t, err, "must load test suite ELF binary")
//
// err = fast.PatchVM(programELF, vmState)
// require.NoError(t, err, "must patch VM")
//
// fullTest(t, vmState, po, symbols, false, true)
//})
}
24 changes: 12 additions & 12 deletions rvgo/test/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ func TestSlowStep(t *testing.T) {
//runTestCategory("benchmarks") TODO benchmarks (fix ELF bench data loading and wrap in Go benchmark?)
}

func TestEVMStep(t *testing.T) {
testsPath := filepath.FromSlash("../../tests/riscv-tests")
runTestCategory := func(name string) {
t.Run(name, func(t *testing.T) {
forEachTestSuite(t, filepath.Join(testsPath, name), runEVMTestSuite)
})
}
runTestCategory("rv64ui-p")
runTestCategory("rv64um-p")
runTestCategory("rv64ua-p")
//runTestCategory("benchmarks") TODO benchmarks (fix ELF bench data loading and wrap in Go benchmark?)
}
//func TestEVMStep(t *testing.T) {
// testsPath := filepath.FromSlash("../../tests/riscv-tests")
// runTestCategory := func(name string) {
// t.Run(name, func(t *testing.T) {
// forEachTestSuite(t, filepath.Join(testsPath, name), runEVMTestSuite)
// })
// }
// runTestCategory("rv64ui-p")
// runTestCategory("rv64um-p")
// runTestCategory("rv64ua-p")
// //runTestCategory("benchmarks") TODO benchmarks (fix ELF bench data loading and wrap in Go benchmark?)
//}

0 comments on commit 02bfb35

Please sign in to comment.