commit: ba98fd1075f26db098bdaded02b9598f6bfd5cf2
parent 81ceeaefc849b1b15aebcad600d251efcbc07713
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 1 Mar 2022 14:33:39 +0100
test-bin/mdate: New
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/test-bin/Kyuafile b/test-bin/Kyuafile
@@ -14,6 +14,7 @@ atf_test_program{name="echo", required_files=basedir.."/bin/echo"}
atf_test_program{name="env", required_files=basedir.."/bin/env"}
atf_test_program{name="false", required_files=basedir.."/bin/false"}
atf_test_program{name="humanize", required_files=basedir.."/bin/humanize"}
+atf_test_program{name="mdate", required_files=basedir.."/bin/mdate"}
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"}
diff --git a/test-bin/mdate b/test-bin/mdate
@@ -0,0 +1,10 @@
+#!/usr/bin/env atf-sh
+atf_test_case basic
+basic_body() {
+ atf_check -o "match:^[0-9A-F]+,[0-9A-F]+$" ../bin/mdate
+}
+
+atf_init_test_cases() {
+ cd "$(atf_get_srcdir)" || exit 1
+ atf_add_test_case basic
+}