summaryrefslogtreecommitdiff
path: root/tests/actions/test/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-07 10:21:33 +0800
committerruki <[email protected]>2023-10-07 10:21:33 +0800
commitebb301cf17c2aa25b1f698ce2e5bd2eb753a9bc5 (patch)
treeea5f1de7c1a6c79339e3c1bdf43ae7418588acf7 /tests/actions/test/xmake.lua
parentc12127b37c2d967a928cb039187d1ea65d958803 (diff)
auto build targets for tests
Diffstat (limited to 'tests/actions/test/xmake.lua')
-rw-r--r--tests/actions/test/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/actions/test/xmake.lua b/tests/actions/test/xmake.lua
index f02f50c0c..fac51a018 100644
--- a/tests/actions/test/xmake.lua
+++ b/tests/actions/test/xmake.lua
@@ -7,8 +7,8 @@ for _, file in ipairs(os.files("src/test_*.cpp")) do
set_default(false)
add_files("src/" .. name .. ".cpp")
add_tests(name)
- add_tests(name .. "_arg", "foo", "bar")
- add_tests(name .. "_pass_output", "foo", {pass_output = "hello foo"})
+ add_tests(name .. "_args", {arguments = {"foo", "bar"}})
+ add_tests(name .. "_pass_output", {arguments = "foo", pass_output = "hello foo"})
add_tests(name .. "_fail_output", {fail_output = {"hello .*", "hello xmake"}})
end