multi_test.sh (197357) | multi_test.sh (197361) |
---|---|
1#!/bin/sh - 2# 3# Copyright (c) 1992 Diomidis Spinellis. 4# Copyright (c) 1992, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30# 31# @(#)sed.test 8.1 (Berkeley) 6/6/93 32# | 1#!/bin/sh - 2# 3# Copyright (c) 1992 Diomidis Spinellis. 4# Copyright (c) 1992, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30# 31# @(#)sed.test 8.1 (Berkeley) 6/6/93 32# |
33# $FreeBSD: head/tools/regression/usr.bin/sed/multitest.t 197357 2009-09-20 14:20:00Z dds $ | 33# $FreeBSD: head/tools/regression/usr.bin/sed/multitest.t 197361 2009-09-20 15:17:40Z dds $ |
34# 35 36# sed Regression Tests 37# 38# The directory regress.test.out contains the expected test results 39# 40# These are the regression tests mostly created during the development 41# of the BSD sed. Each test should have a unique mark name, which is --- 398 unchanged lines hidden (view full) --- 440 # the BRE delimiter itself can be used as a *literal* character 441 # if it is preceded by a backslash" 442 # SunOS 5.1 /usr/bin/sed and Mac OS X follow the literal POSIX 443 # interpretation. 444 # GNU sed version 4.1.5 treats \[ as the beginning of a character 445 # set specification (both with --posix and without). 446 mark '8.19' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X[' 447 mark '8.20' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X\[[' | 34# 35 36# sed Regression Tests 37# 38# The directory regress.test.out contains the expected test results 39# 40# These are the regression tests mostly created during the development 41# of the BSD sed. Each test should have a unique mark name, which is --- 398 unchanged lines hidden (view full) --- 440 # the BRE delimiter itself can be used as a *literal* character 441 # if it is preceded by a backslash" 442 # SunOS 5.1 /usr/bin/sed and Mac OS X follow the literal POSIX 443 # interpretation. 444 # GNU sed version 4.1.5 treats \[ as the beginning of a character 445 # set specification (both with --posix and without). 446 mark '8.19' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X[' 447 mark '8.20' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X\[[' |
448 COMMENT='\ in y command' 449 mark '8.21' 450 echo 'a\b(c' | 451 $SED 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' |
|
448} 449 450test_error() 451{ 452 COMMENT='Error cases' 453 mark '9.1' ; $SED -x 2>/dev/null ; echo $? 454 mark '9.2' ; $SED -f 2>/dev/null ; echo $? 455 mark '9.3' ; $SED -e 2>/dev/null ; echo $? --- 31 unchanged lines hidden --- | 452} 453 454test_error() 455{ 456 COMMENT='Error cases' 457 mark '9.1' ; $SED -x 2>/dev/null ; echo $? 458 mark '9.2' ; $SED -f 2>/dev/null ; echo $? 459 mark '9.3' ; $SED -e 2>/dev/null ; echo $? --- 31 unchanged lines hidden --- |