CVS commit: src/tests/games

2024-06-16 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Jun 17 03:23:20 UTC 2024

Modified Files:
src/tests/games: t_morse.sh

Log Message:
tests/morse: only run the tests if morse is installed

Not sure why the releng/i386 tests don't install the games.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/games/t_morse.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/games/t_morse.sh
diff -u src/tests/games/t_morse.sh:1.1 src/tests/games/t_morse.sh:1.2
--- src/tests/games/t_morse.sh:1.1	Sun Jun 16 18:40:58 2024
+++ src/tests/games/t_morse.sh	Mon Jun 17 03:23:19 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_morse.sh,v 1.1 2024/06/16 18:40:58 rillig Exp $
+#	$NetBSD: t_morse.sh,v 1.2 2024/06/17 03:23:19 rillig Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -26,6 +26,9 @@
 #
 
 atf_test_case digits
+digits_head() {
+	atf_set 'require.progs' '/usr/games/morse'
+}
 digits_body() {
 	trailing_space=' '
 	morse_s_digits="\
@@ -66,6 +69,9 @@ $trailing_space
 # Before 2024-06-16, non-ASCII characters invoked undefined behavior,
 # possibly crashing morse.
 atf_test_case nonascii
+nonascii_head() {
+	atf_set 'require.progs' '/usr/games/morse'
+}
 nonascii_body()
 {
 	expected="\



CVS commit: src/tests/games

2024-06-16 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Jun 17 03:23:20 UTC 2024

Modified Files:
src/tests/games: t_morse.sh

Log Message:
tests/morse: only run the tests if morse is installed

Not sure why the releng/i386 tests don't install the games.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/games/t_morse.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.