From 70c5762b3823b1a5f2b7f80d9b8a2ed6dfdd748a Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 24 Aug 2006 20:50:02 +0000 Subject: [PATCH] regression test for file-based persistent history --- check.t | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/check.t b/check.t index 05cb38e..a7f34eb 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.60 2006/08/24 20:35:40 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.61 2006/08/24 20:50:02 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -3849,6 +3849,22 @@ expected-stdout: * abcx abcy --- +name: persist-history-1 +description: + Check if persistent history saving works +# we don't have persistent history on Solaris (no flock) +category: !os:solaris,!os:plan9 +arguments: !-i! +env-setup: !ENV=./Env!HISTFILE=hist.file! +file-setup: file 644 "Env" + PS1=X +stdin: + cat hist.file +expected-stdout-pattern: + /cat hist.file/ +expected-stderr-pattern: + /^X*$/ +--- name: version-1 description: Check version of shell.