CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: martin Date: Fri Feb 19 18:36:50 UTC 2021 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: PR kern/55272: do not skip this test on single cpu machines - it is not the only test causing the watchdog starvation and we better find and fix the real issue. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.7 src/tests/lib/libarchive/t_libarchive.sh:1.8 --- src/tests/lib/libarchive/t_libarchive.sh:1.7 Fri Aug 28 18:46:05 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Fri Feb 19 18:36:50 2021 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.7 2020/08/28 18:46:05 christos Exp $ +# $NetBSD: t_libarchive.sh,v 1.8 2021/02/19 18:36:50 martin Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -41,10 +41,6 @@ libarchive_body() if [ $m -lt 400 ]; then atf_skip "Not enough RAM" fi - local ncpu=$( sysctl -n hw.ncpuonline ) - if [ $ncpu -lt 2 ]; then - atf_skip "PR kern/55272: too dangerous to run this test" - fi local d=$(atf_get_srcdir) atf_check -s exit:0 -o 'not-match:^Details for failing tests:.*' \ "$d/h_libarchive" -r "$d"
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: christos Date: Fri Aug 28 18:46:05 UTC 2020 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: PR/55612: Martin Husemann: libarchive tests pollute /tmp w/o cleanup Set $TMPDIR to where we are. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.6 src/tests/lib/libarchive/t_libarchive.sh:1.7 --- src/tests/lib/libarchive/t_libarchive.sh:1.6 Tue Jun 16 05:47:11 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Fri Aug 28 14:46:05 2020 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.6 2020/06/16 09:47:11 sevan Exp $ +# $NetBSD: t_libarchive.sh,v 1.7 2020/08/28 18:46:05 christos Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -27,6 +27,8 @@ atf_test_case libarchive +export TMPDIR=$PWD + libarchive_head() { atf_set "descr" "test libarchive"
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: sevan Date: Tue Jun 16 09:47:11 UTC 2020 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: Improve sentence To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.5 src/tests/lib/libarchive/t_libarchive.sh:1.6 --- src/tests/lib/libarchive/t_libarchive.sh:1.5 Tue Jun 16 07:59:07 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Tue Jun 16 09:47:11 2020 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.5 2020/06/16 07:59:07 martin Exp $ +# $NetBSD: t_libarchive.sh,v 1.6 2020/06/16 09:47:11 sevan Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -37,7 +37,7 @@ libarchive_body() { local m=$(( $( sysctl -n hw.usermem64 ) / 1024 / 1024 )) if [ $m -lt 400 ]; then - atf_skip "too few RAM" + atf_skip "Not enough RAM" fi local ncpu=$( sysctl -n hw.ncpuonline ) if [ $ncpu -lt 2 ]; then
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: martin Date: Tue Jun 16 07:59:07 UTC 2020 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: PR kern/55272: skip this test on uniprocessor machines, it is too dangerous and can kill the host kernel if a userland watchdog is running To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.4 src/tests/lib/libarchive/t_libarchive.sh:1.5 --- src/tests/lib/libarchive/t_libarchive.sh:1.4 Wed Jun 3 18:07:26 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Tue Jun 16 07:59:07 2020 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.4 2020/06/03 18:07:26 martin Exp $ +# $NetBSD: t_libarchive.sh,v 1.5 2020/06/16 07:59:07 martin Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -39,6 +39,10 @@ libarchive_body() if [ $m -lt 400 ]; then atf_skip "too few RAM" fi + local ncpu=$( sysctl -n hw.ncpuonline ) + if [ $ncpu -lt 2 ]; then + atf_skip "PR kern/55272: too dangerous to run this test" + fi local d=$(atf_get_srcdir) atf_check -s exit:0 -o 'not-match:^Details for failing tests:.*' \ "$d/h_libarchive" -r "$d"
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: fox Date: Sun Jun 7 23:20:52 UTC 2020 Modified Files: src/tests/lib/libarchive: Makefile Log Message: tests/lib/libarchive: Suppress -Werror=stringop-truncation error This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures NUL-termination on the next line as other users of the field expect. Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes. Error was reported when build.sh was run with MKSANITIZER=yes flag. Reviewed by: kamil@ To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libarchive/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libarchive/Makefile diff -u src/tests/lib/libarchive/Makefile:1.4 src/tests/lib/libarchive/Makefile:1.5 --- src/tests/lib/libarchive/Makefile:1.4 Sun Jan 19 17:36:57 2020 +++ src/tests/lib/libarchive/Makefile Sun Jun 7 23:20:52 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2020/01/19 17:36:57 christos Exp $ +# $NetBSD: Makefile,v 1.5 2020/06/07 23:20:52 fox Exp $ NOMAN= @@ -609,4 +609,5 @@ list.h: ${SRCS.h_libarchive} Makefile ${TOOL_GREP} -v _truncated_filter_ | \ ${TOOL_GREP} -v test_compat_pax_libarchive_2x > ${.TARGET} +COPTS.test_archive_string_conversion.c+= ${GCC_NO_STRINGOP_TRUNCATION}
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: martin Date: Wed Jun 3 18:07:26 UTC 2020 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: Skip this test on machines where it would cause serious swapping. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.3 src/tests/lib/libarchive/t_libarchive.sh:1.4 --- src/tests/lib/libarchive/t_libarchive.sh:1.3 Thu Mar 12 12:57:45 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Wed Jun 3 18:07:26 2020 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.3 2020/03/12 12:57:45 martin Exp $ +# $NetBSD: t_libarchive.sh,v 1.4 2020/06/03 18:07:26 martin Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -35,6 +35,10 @@ libarchive_head() libarchive_body() { + local m=$(( $( sysctl -n hw.usermem64 ) / 1024 / 1024 )) + if [ $m -lt 400 ]; then + atf_skip "too few RAM" + fi local d=$(atf_get_srcdir) atf_check -s exit:0 -o 'not-match:^Details for failing tests:.*' \ "$d/h_libarchive" -r "$d"
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: martin Date: Thu Mar 12 12:57:45 UTC 2020 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: Bump timeout to 10m To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.2 src/tests/lib/libarchive/t_libarchive.sh:1.3 --- src/tests/lib/libarchive/t_libarchive.sh:1.2 Tue Jan 28 18:18:32 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Thu Mar 12 12:57:45 2020 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.2 2020/01/28 18:18:32 martin Exp $ +# $NetBSD: t_libarchive.sh,v 1.3 2020/03/12 12:57:45 martin Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -30,7 +30,7 @@ atf_test_case libarchive libarchive_head() { atf_set "descr" "test libarchive" - atf_set "timeout" "3600" + atf_set "timeout" "6000" } libarchive_body()
CVS commit: src/tests/lib/libarchive
Module Name:src Committed By: martin Date: Tue Jan 28 18:18:32 UTC 2020 Modified Files: src/tests/lib/libarchive: t_libarchive.sh Log Message: Bump timeout to 3600 - the libarchive tests take quite a while to complete (on a nearly 1 GHz dual armv7 machine it takes more than 700s) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh diff -u src/tests/lib/libarchive/t_libarchive.sh:1.1 src/tests/lib/libarchive/t_libarchive.sh:1.2 --- src/tests/lib/libarchive/t_libarchive.sh:1.1 Fri Jan 17 16:24:03 2020 +++ src/tests/lib/libarchive/t_libarchive.sh Tue Jan 28 18:18:32 2020 @@ -1,4 +1,4 @@ -# $NetBSD: t_libarchive.sh,v 1.1 2020/01/17 16:24:03 christos Exp $ +# $NetBSD: t_libarchive.sh,v 1.2 2020/01/28 18:18:32 martin Exp $ # # Copyright (c) 2020 The NetBSD Foundation, Inc. # All rights reserved. @@ -30,6 +30,7 @@ atf_test_case libarchive libarchive_head() { atf_set "descr" "test libarchive" + atf_set "timeout" "3600" } libarchive_body()