From nobody Sat Dec 11 06:08:03 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7128F18EB7B4; Sat, 11 Dec 2021 06:08:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J9y4N0PC1z3FLr; Sat, 11 Dec 2021 06:08:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E1D3B6F4; Sat, 11 Dec 2021 06:08:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BB683qN073690; Sat, 11 Dec 2021 06:08:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BB683Ar073689; Sat, 11 Dec 2021 06:08:03 GMT (envelope-from git) Date: Sat, 11 Dec 2021 06:08:03 GMT Message-Id: <202112110608.1BB683Ar073689@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Peter Holm Subject: git: 8ebc23256176 - main - stress2: Save a copy of the program file for regression tests List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pho X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ebc232561769043ba7901c39e2e57a35dc7c446 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639202884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lRa/62MJ3jDdMhPHro1PHUiwcguWQ3MfvLdg41Ab/TY=; b=MkKuPms970G8LKSnnDQNZUgPjVTTa7hZXdrk9dDUEoMlxW2ZTnxlzsy9p+r1VJLa27YYk6 C5g65cDckg0JzMTD2hrrJSoovBy9KAbkW0VCDmGV7E7L59msqN1ngnNf56iRezBEQ/ve7S HUVDmmprVWtW8OVqIyHjhtmH2O8JakKMNzBdAOrDVkuiAbmosuc8UgYpwDRXDHZYRcbBcA MYLwiuAtFxYplMfL0jGgudkhzQADSgrXll+yCJJGl+hmkvHjzJ+697yQQhRJehi8cTgpfI 0RWsJXn7pn2pKqVOXr6fQtLlRWA/bU0I+xc3M3WZFRiLhGpdhbj3BAmDhVLXCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639202884; a=rsa-sha256; cv=none; b=qryf42bGO6/nLR+m3AngHf4Fw3QRxeeEjTATJU/CNehfr15PKsHzczz5Uqz+cxJBk5Eokl qoFe1Mjk1o+2dg+rJQynE0Kc2YxRDTndyBSqT3tIw2XM2a4BSWDWTL5DT1XDZxAnJvcjuu /b8BeHngMMnPYKXs5Er6KKPeryk4T+dYSL2iEhXk5YcH37u/OKQiHinQ8FxANFhl1+VPEk UoxEeWEP48YeGN/vK9rZnEE1OvdSWHrfcNQVYgGAdARkdiUaTMMHiOzUG1vs8qsRZ2uZra 2d+29S+kEAsEWA81FT0z5FBEhIItHHv2hfwduFyvC6+ofveUQu7GF8u48Dq2eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=8ebc232561769043ba7901c39e2e57a35dc7c446 commit 8ebc232561769043ba7901c39e2e57a35dc7c446 Author: Peter Holm AuthorDate: 2021-12-11 06:07:04 +0000 Commit: Peter Holm CommitDate: 2021-12-11 06:07:04 +0000 stress2: Save a copy of the program file for regression tests Suggested by: kib --- tools/test/stress2/misc/elf.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/test/stress2/misc/elf.sh b/tools/test/stress2/misc/elf.sh index e0f88e5e90bc..eb6650c9c088 100755 --- a/tools/test/stress2/misc/elf.sh +++ b/tools/test/stress2/misc/elf.sh @@ -37,11 +37,13 @@ dir=/tmp odir=`pwd` +save=/tmp/elf.sh.img +[ -f $save ] && { echo "$save exists"; exit 0; } cc -o /tmp/flip -Wall -Wextra -O2 ../tools/flip.c || exit 1 set -e mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint -[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart +[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart newfs $newfs_flags md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint @@ -54,6 +56,7 @@ while [ $((`date +%s` - start)) -lt 180 ]; do cp /bin/ps ./elf for j in `jot 10`; do /tmp/flip -n 1 ./elf + cp elf $save; fsync $save; sync timeout -s SIGKILL 2 ./elf aux > /dev/null 2>&1 || break rm -f *.core done @@ -67,5 +70,5 @@ for i in `jot 6`; do { echo FATAL; fstat -mf $mntpoint; exit 1; } done mdconfig -d -u $mdstart -rm /tmp/flip +rm /tmp/flip $save exit 0