CVS commit: src/tests/usr.bin/mtree

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri May 10 03:29:47 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree/t_sets: Add base32, base64, debug32, debug64.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/usr.bin/mtree/t_sets.sh

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



CVS commit: src/tests/usr.bin/mtree

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri May 10 03:29:47 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree/t_sets: Add base32, base64, debug32, debug64.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.8 src/tests/usr.bin/mtree/t_sets.sh:1.9
--- src/tests/usr.bin/mtree/t_sets.sh:1.8	Tue May  7 14:53:59 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Fri May 10 03:29:47 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.8 2024/05/07 14:53:59 martin Exp $
+#	$NetBSD: t_sets.sh,v 1.9 2024/05/10 03:29:47 riastradh Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -44,8 +44,12 @@ set_case()
 }
 
 set_case base
+set_case base32
+set_case base64
 set_case comp
 set_case debug
+set_case debug32
+set_case debug64
 set_case dtb
 #set_case etc
 set_case games



CVS commit: src/tests/usr.bin/mtree

2024-05-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May  7 14:53:59 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
Add manhtml set


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.7 src/tests/usr.bin/mtree/t_sets.sh:1.8
--- src/tests/usr.bin/mtree/t_sets.sh:1.7	Mon May  6 14:38:28 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Tue May  7 14:53:59 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.7 2024/05/06 14:38:28 riastradh Exp $
+#	$NetBSD: t_sets.sh,v 1.8 2024/05/07 14:53:59 martin Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -51,6 +51,7 @@ set_case dtb
 set_case games
 set_case gpufw
 set_case man
+set_case manhtml
 set_case misc
 set_case modules
 set_case rescue



CVS commit: src/tests/usr.bin/mtree

2024-05-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May  7 14:53:59 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
Add manhtml set


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/mtree/t_sets.sh

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



CVS commit: src/tests/usr.bin/mtree

2024-05-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon May  6 14:38:29 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree/t_sets.sh: atf_fail, not atf_tc_fail


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/mtree/t_sets.sh

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



CVS commit: src/tests/usr.bin/mtree

2024-05-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon May  6 14:38:29 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree/t_sets.sh: atf_fail, not atf_tc_fail


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.6 src/tests/usr.bin/mtree/t_sets.sh:1.7
--- src/tests/usr.bin/mtree/t_sets.sh:1.6	Sat May  4 20:24:37 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Mon May  6 14:38:28 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.6 2024/05/04 20:24:37 riastradh Exp $
+#	$NetBSD: t_sets.sh,v 1.7 2024/05/06 14:38:28 riastradh Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -71,7 +71,7 @@ sets_unknown_head()
 }
 sets_unknown_body()
 {
-	test -z "$sets_unknown" || atf_tc_fail "Unknown sets: ${sets_unknown}"
+	test -z "$sets_unknown" || atf_fail "Unknown sets: ${sets_unknown}"
 }
 
 atf_init_test_cases()



CVS commit: src/tests/usr.bin/mtree

2024-05-04 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat May  4 20:24:37 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree: Fail gracefully with unknown sets.

Rather than `bogus test program', make a test fail.

PR misc/57877


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.5 src/tests/usr.bin/mtree/t_sets.sh:1.6
--- src/tests/usr.bin/mtree/t_sets.sh:1.5	Sun Apr 28 07:27:42 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Sat May  4 20:24:37 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.5 2024/04/28 07:27:42 rillig Exp $
+#	$NetBSD: t_sets.sh,v 1.6 2024/05/04 20:24:37 riastradh Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -40,6 +40,7 @@ set_case()
 
 	eval "set_${set}_head() { atf_set descr \"/etc/mtree/set.${set}\"; }"
 	eval "set_${set}_body() { check_mtree ${set}; }"
+	eval "set_${set}_defined="
 }
 
 set_case base
@@ -62,8 +63,22 @@ set_case xdebug
 set_case xfont
 set_case xserver
 
+sets_unknown=
+
+sets_unknown_head()
+{
+	atf_set descr "Verify this tests lists all sets"
+}
+sets_unknown_body()
+{
+	test -z "$sets_unknown" || atf_tc_fail "Unknown sets: ${sets_unknown}"
+}
+
 atf_init_test_cases()
 {
+	local mtree set defined
+
+	atf_add_test_case sets_unknown
 
 	# base is always installed -- hard-code this in case we make a
 	# mistake with the automatic set detection.
@@ -92,6 +107,15 @@ atf_init_test_cases()
 			;;
 		*)	;;
 		esac
-		atf_add_test_case set_"${set}"
+
+		# If we have a test for this set, add it.  Otherwise,
+		# add it to the unknown list to make the test suite
+		# fail.
+		eval 'defined=${set_'"$set"'_defined+yes}'
+		if [ -n "$defined" ]; then
+			atf_add_test_case set_"${set}"
+		else
+			sets_unknown="${sets_unknown}${sets_unknown:+ }${set}"
+		fi
 	done
 }



CVS commit: src/tests/usr.bin/mtree

2024-05-04 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat May  4 20:24:37 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree: Fail gracefully with unknown sets.

Rather than `bogus test program', make a test fail.

PR misc/57877


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/mtree/t_sets.sh

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



CVS commit: src/tests/usr.bin/mtree

2024-01-30 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jan 30 16:57:32 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
Skip the dtb set if the /boot partition is not mounted.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.3 src/tests/usr.bin/mtree/t_sets.sh:1.4
--- src/tests/usr.bin/mtree/t_sets.sh:1.3	Sun Jan 28 19:08:06 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Tue Jan 30 16:57:32 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.3 2024/01/28 19:08:06 riastradh Exp $
+#	$NetBSD: t_sets.sh,v 1.4 2024/01/30 16:57:32 martin Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -77,6 +77,13 @@ atf_init_test_cases()
 		base)	# Handled above already.
 			continue
 			;;
+		dtb)
+			# contents of this set go to the boot partition,
+			# which may not be mounted during normal operation
+			if [ ! -d /boot/dtb ]; then
+continue;
+			fi
+			;;
 		etc|xetc)
 			# etc and xetc have files that may be modified
 			# on installation, and also contain log files,



CVS commit: src/tests/usr.bin/mtree

2024-01-30 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jan 30 16:57:32 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
Skip the dtb set if the /boot partition is not mounted.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/mtree/t_sets.sh

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



CVS commit: src/tests/usr.bin/mtree

2024-01-28 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Jan 28 19:08:06 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree: Fixed the set lists, no more xfail.

PR misc/57877


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.2 src/tests/usr.bin/mtree/t_sets.sh:1.3
--- src/tests/usr.bin/mtree/t_sets.sh:1.2	Fri Jan 26 00:32:46 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Sun Jan 28 19:08:06 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.2 2024/01/26 00:32:46 riastradh Exp $
+#	$NetBSD: t_sets.sh,v 1.3 2024/01/28 19:08:06 riastradh Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -29,10 +29,6 @@ check_mtree()
 {
 	local set=$1
 
-	if [ "$set" = base ]; then
-		atf_expect_fail "PR misc/57877"
-	fi
-
 	cd /
 	atf_check -o empty -s eq:0 \
 		mtree -e 

CVS commit: src/tests/usr.bin/mtree

2024-01-28 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Jan 28 19:08:06 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree: Fixed the set lists, no more xfail.

PR misc/57877


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/mtree/t_sets.sh

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



CVS commit: src/tests/usr.bin/mtree

2024-01-25 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Jan 26 00:32:46 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree: xfail PR 57877; omit needless debug print.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/mtree/t_sets.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/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.1 src/tests/usr.bin/mtree/t_sets.sh:1.2
--- src/tests/usr.bin/mtree/t_sets.sh:1.1	Thu Jan 25 00:30:57 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Fri Jan 26 00:32:46 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.1 2024/01/25 00:30:57 riastradh Exp $
+#	$NetBSD: t_sets.sh,v 1.2 2024/01/26 00:32:46 riastradh Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -29,7 +29,9 @@ check_mtree()
 {
 	local set=$1
 
-	echo check_mtree >&2
+	if [ "$set" = base ]; then
+		atf_expect_fail "PR misc/57877"
+	fi
 
 	cd /
 	atf_check -o empty -s eq:0 \



CVS commit: src/tests/usr.bin/mtree

2024-01-25 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Jan 26 00:32:46 UTC 2024

Modified Files:
src/tests/usr.bin/mtree: t_sets.sh

Log Message:
tests/usr.bin/mtree: xfail PR 57877; omit needless debug print.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/mtree/t_sets.sh

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