commit: b23f60c894d6b884b942b931546de334952e6ea5
parent 9dcb802048b737c335793e974770991e78a8c16c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 13 Jun 2024 11:37:20 +0200
test-cmd/arch*: Change from cram to tap.sh
Diffstat:
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/test-cmd/Kyuafile b/test-cmd/Kyuafile
@@ -27,6 +27,7 @@ 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}
+tap_test_program{name="arch.sh", required_files=basedir.."/cmd/arch", timeout=1}
tap_test_program{name="seq.sh", required_files=basedir.."/cmd/seq", timeout=1}
tap_test_program{name="test.sh", required_files=basedir.."/cmd/test", timeout=2}
tap_test_program{name="uname.sh", required_files=basedir.."/cmd/uname", timeout=1}
diff --git a/test-cmd/arch.sh b/test-cmd/arch.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+# SPDX-License-Identifier: MPL-2.0
+
+target="$(dirname "$0")/../cmd/arch"
+plans=1
+. "$(dirname "$0")/tap.sh"
+
+t 'no args' '' "$(uname -m)"$'\n'
diff --git a/test-cmd/arch.t b/test-cmd/arch.t
@@ -1,9 +0,0 @@
-#!/usr/bin/env cram
-# SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
-# SPDX-License-Identifier: MPL-2.0
-
- $ export PATH="$TESTDIR/../cmd:$PATH"
-
- $ test "$(command -v rm)" = "$TESTDIR/../cmd/rm"
-
- $ test "$(arch)" = "$(uname -m)"