diff options
| author | ruki <[email protected]> | 2025-09-07 23:02:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-07 23:02:35 +0800 |
| commit | 3388f7cd075354cfdb9bee011f73268f626ba995 (patch) | |
| tree | ff58b62df53239368ad57f7029450b7178f5191a | |
| parent | 936758a450866cc95090001aab5e21bf095980ea (diff) | |
fix tests
| -rw-r--r-- | tests/benchmarks/build_targets/test.lua | 4 | ||||
| -rw-r--r-- | tests/benchmarks/config_targets/test.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmarks/build_targets/test.lua b/tests/benchmarks/build_targets/test.lua index 0107e44fa..764231d97 100644 --- a/tests/benchmarks/build_targets/test.lua +++ b/tests/benchmarks/build_targets/test.lua @@ -6,7 +6,7 @@ function test_build(t) -- xmake os.tryrm("build") local xmake_dt = os.mclock() - os.runv(os.programfile()) + os.run("xmake") xmake_dt = os.mclock() - xmake_dt print("build targets/30: xmake: %d ms", xmake_dt) @@ -64,7 +64,7 @@ function test_build(t) os.tryrm("build") local meson_dt = os.mclock() os.runv(meson.program, {"setup", "build"}) - os.runv("ninja", {"-C", "build"}) + os.runv(meson.program, {"compile", "-C", "build"}) meson_dt = os.mclock() - meson_dt print("build targets/30: meson: %d ms", meson_dt) t:require((meson_dt > xmake_dt) or (meson_dt + 1000 > xmake_dt)) diff --git a/tests/benchmarks/config_targets/test.lua b/tests/benchmarks/config_targets/test.lua index a9d9b9476..1290955fa 100644 --- a/tests/benchmarks/config_targets/test.lua +++ b/tests/benchmarks/config_targets/test.lua @@ -6,7 +6,7 @@ function test_config(t) -- xmake os.tryrm("build") local xmake_dt = os.mclock() - os.runv(os.programfile(), {"config", "-c"}) + os.runv("xmake", {"config", "-c"}) xmake_dt = os.mclock() - xmake_dt print("config targets/1k: xmake: %d ms", xmake_dt) |
