Skip to content

Commit ae49b39

Browse files
remove an unused function
1 parent 94fe901 commit ae49b39

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/test/scala/genwasym/TestBenchmarkBtree.scala

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,6 @@ class TestBenchmarkBtree extends FunSuite {
3737
}
3838
}
3939

40-
// only test concrete execution and its result
41-
def testFileConcreteCpp(filename: String, main: Option[String] = None, expect: Option[List[Float]] = None) = {
42-
val moduleInst = ModuleInstance(Parser.parseFile(filename))
43-
val cppFile = s"$filename.cpp"
44-
val exe = s"$cppFile.exe"
45-
WasmToCppCompiler.compileToExe(moduleInst, main, cppFile, exe, true, optimizeLevel=0, "NO_INFO", "RUN_ONCE", "USE_IMM")
46-
47-
import sys.process._
48-
val result = s"./$exe".!!
49-
println(result)
50-
51-
expect.map(vs => {
52-
val stackValues = result
53-
.split("Stack contents: \n")(1)
54-
.split("\n")
55-
.map(_.toFloat)
56-
.toList
57-
assert(vs == stackValues)
58-
})
59-
}
60-
6140
test("compile-btree-benchmarks") { compileDirToCpp("./benchmarks/pldi2026/btree/", Some("main")) }
6241

6342
}

0 commit comments

Comments
 (0)