commit: 615c8fdb57fba2630113e3c126af4c7996fec356
parent 2356160ae715d3ba75b0f7eb4efdd4e7f150000f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 14 Mar 2024 05:55:21 +0100
test-cmd/Kyuafile: Make each test require it's cmd
Diffstat:
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/test-cmd/Kyuafile b/test-cmd/Kyuafile
@@ -4,24 +4,26 @@ syntax(2)
test_suite("utils-std commands")
--- 7,$|LC_ALL=C.UTF-8 sort
-atf_test_program{name="base64", timeout=1}
-atf_test_program{name="basename", timeout=1}
-atf_test_program{name="cat", timeout=1}
-atf_test_program{name="chmod", timeout=1}
-atf_test_program{name="date", timeout=1}
-atf_test_program{name="df", timeout=1}
-atf_test_program{name="dirname", timeout=1}
-atf_test_program{name="echo", timeout=1}
-atf_test_program{name="env", timeout=1}
-atf_test_program{name="false", timeout=1}
-atf_test_program{name="id", timeout=1}
-atf_test_program{name="link", timeout=1}
-atf_test_program{name="pwd", timeout=1}
-atf_test_program{name="seq", timeout=1}
-atf_test_program{name="strings", timeout=1}
-atf_test_program{name="tee", timeout=1}
-atf_test_program{name="touch", timeout=3}
-atf_test_program{name="true", timeout=1}
-atf_test_program{name="tty", timeout=1}
-atf_test_program{name="unlink", timeout=1}
+basedir = fs.dirname(fs.dirname(current_kyuafile()))
+
+-- 9,$|LC_ALL=C.UTF-8 sort
+atf_test_program{name="base64", required_files=basedir.."/cmd/base64", timeout=1}
+atf_test_program{name="basename", required_files=basedir.."/cmd/basename", timeout=1}
+atf_test_program{name="cat", required_files=basedir.."/cmd/cat", timeout=1}
+atf_test_program{name="chmod", required_files=basedir.."/cmd/chmod", timeout=1}
+atf_test_program{name="date", required_files=basedir.."/cmd/date", timeout=1}
+atf_test_program{name="df", required_files=basedir.."/cmd/df", timeout=1}
+atf_test_program{name="dirname", required_files=basedir.."/cmd/dirname", timeout=1}
+atf_test_program{name="echo", required_files=basedir.."/cmd/echo", timeout=1}
+atf_test_program{name="env", required_files=basedir.."/cmd/env", timeout=1}
+atf_test_program{name="false", required_files=basedir.."/cmd/false", timeout=1}
+atf_test_program{name="id", required_files=basedir.."/cmd/id", timeout=1}
+atf_test_program{name="link", required_files=basedir.."/cmd/link", timeout=1}
+atf_test_program{name="pwd", required_files=basedir.."/cmd/pwd", timeout=1}
+atf_test_program{name="seq", required_files=basedir.."/cmd/seq", timeout=1}
+atf_test_program{name="strings", required_files=basedir.."/cmd/strings", timeout=1}
+atf_test_program{name="tee", required_files=basedir.."/cmd/tee", timeout=1}
+atf_test_program{name="touch", required_files=basedir.."/cmd/touch", timeout=3}
+atf_test_program{name="true", required_files=basedir.."/cmd/true", timeout=1}
+atf_test_program{name="tty", required_files=basedir.."/cmd/tty", timeout=1}
+atf_test_program{name="unlink", required_files=basedir.."/cmd/unlink", timeout=1}