logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: acb3198c59dcc94e225aa172f40ba6fba891cc66
parent 292ee09aacd706913cbb8f2c9272dd928e21b4ac
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 11 Feb 2022 02:43:12 +0100

test-bin: Only run targets with existing files

Diffstat:

Mtest-bin/Kyuafile28+++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/test-bin/Kyuafile b/test-bin/Kyuafile @@ -2,17 +2,19 @@ syntax(2) test_suite("utils") +basedir = fs.dirname(fs.dirname(current_kyuafile())) + -- 5,$|LC_ALL=C.UTF-8 sort -atf_test_program{name="args"} -atf_test_program{name="basename"} -atf_test_program{name="cat"} -atf_test_program{name="dirname"} -atf_test_program{name="echo"} -atf_test_program{name="false"} -atf_test_program{name="humanize"} -atf_test_program{name="pwd"} -atf_test_program{name="sname"} -atf_test_program{name="strings"} -atf_test_program{name="tee"} -atf_test_program{name="true"} -atf_test_program{name="xcd"} +atf_test_program{name="args", required_files=basedir.."/bin/args"} +atf_test_program{name="basename", required_files=basedir.."/bin/basename"} +atf_test_program{name="cat", required_files=basedir.."/bin/cat"} +atf_test_program{name="dirname", required_files=basedir.."/bin/dirname"} +atf_test_program{name="echo", required_files=basedir.."/bin/echo"} +atf_test_program{name="false", required_files=basedir.."/bin/false"} +atf_test_program{name="humanize", required_files=basedir.."/bin/humanize"} +atf_test_program{name="pwd", required_files=basedir.."/bin/pwd"} +atf_test_program{name="sname", required_files=basedir.."/bin/sname"} +atf_test_program{name="strings", required_files=basedir.."/bin/strings"} +atf_test_program{name="tee", required_files=basedir.."/bin/tee"} +atf_test_program{name="true", required_files=basedir.."/bin/true"} +atf_test_program{name="xcd", required_files=basedir.."/bin/xcd"}