Deleted Added
full compact
multi_test.sh (167544) multi_test.sh (167546)
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 167544 2007-03-14 09:05:41Z dds $
33# $FreeBSD: head/tools/regression/usr.bin/sed/multitest.t 167546 2007-03-14 09:47:00Z dds $
34#
35
36# sed Regression Tests
37#
38# The following files are created:
39# lines[1-4], script1, script2
40# Two directories *.out contain the test results
41
42main()
43{
44 #BASE=/usr/bin/sed
45 BASE=/usr/ports/textproc/gsed/work/sed-4.1.5/sed/sed
46 BASELOG=sed.out
47 #TEST=`cd ..; make whereobj`/sed
48 TEST=/home/dds/src/fbsd-head/sed/sed
49 TESTLOG=nsed.out
50 DICT=/usr/share/dict/words
51
34#
35
36# sed Regression Tests
37#
38# The following files are created:
39# lines[1-4], script1, script2
40# Two directories *.out contain the test results
41
42main()
43{
44 #BASE=/usr/bin/sed
45 BASE=/usr/ports/textproc/gsed/work/sed-4.1.5/sed/sed
46 BASELOG=sed.out
47 #TEST=`cd ..; make whereobj`/sed
48 TEST=/home/dds/src/fbsd-head/sed/sed
49 TESTLOG=nsed.out
50 DICT=/usr/share/dict/words
51
52 test_error | more
52 #test_error | more
53
54 awk 'END { for (i = 1; i < 15; i++) print "l1_" i}' </dev/null >lines1
55 awk 'END { for (i = 1; i < 10; i++) print "l2_" i}' </dev/null >lines2
56
57 exec 4>&1 5>&2
58
59 # Set these flags to get messages about known problems
60 BSD=0

--- 139 unchanged lines hidden (view full) ---

200 mark '2.2' ; $SED -n -e '20p' lines1 lines2
201 mark '2.3' ; $SED -n -e '$p' lines1
202 mark '2.4' ; $SED -n -e '$p' lines1 lines2
203 mark '2.5' ; $SED -n -e '$a\
204hello' /dev/null
205 mark '2.6' ; $SED -n -e '$p' lines1 /dev/null lines2
206 # Should not print anything
207 mark '2.7' ; $SED -n -e '20p' lines1
53
54 awk 'END { for (i = 1; i < 15; i++) print "l1_" i}' </dev/null >lines1
55 awk 'END { for (i = 1; i < 10; i++) print "l2_" i}' </dev/null >lines2
56
57 exec 4>&1 5>&2
58
59 # Set these flags to get messages about known problems
60 BSD=0

--- 139 unchanged lines hidden (view full) ---

200 mark '2.2' ; $SED -n -e '20p' lines1 lines2
201 mark '2.3' ; $SED -n -e '$p' lines1
202 mark '2.4' ; $SED -n -e '$p' lines1 lines2
203 mark '2.5' ; $SED -n -e '$a\
204hello' /dev/null
205 mark '2.6' ; $SED -n -e '$p' lines1 /dev/null lines2
206 # Should not print anything
207 mark '2.7' ; $SED -n -e '20p' lines1
208 mark '2.8' ; $SED -n -e '0p' lines1
208 mark '2.8' ; $SED -n -e '/NOTFOUND/p' lines1
209 mark '2.9' ; $SED -n '/l1_7/p' lines1
210 mark '2.10' ; $SED -n ' /l1_7/ p' lines1
211 mark '2.11' ; $SED -n '\_l1\_7_p' lines1
212 mark '2.12' ; $SED -n '1,4p' lines1
213 mark '2.13' ; $SED -n '1,$p' lines1 lines2
214 mark '2.14' ; $SED -n '1,/l2_9/p' lines1 lines2
215 mark '2.15' ; $SED -n '/4/,$p' lines1 lines2
216 mark '2.16' ; $SED -n '/4/,20p' lines1 lines2

--- 314 unchanged lines hidden ---
209 mark '2.9' ; $SED -n '/l1_7/p' lines1
210 mark '2.10' ; $SED -n ' /l1_7/ p' lines1
211 mark '2.11' ; $SED -n '\_l1\_7_p' lines1
212 mark '2.12' ; $SED -n '1,4p' lines1
213 mark '2.13' ; $SED -n '1,$p' lines1 lines2
214 mark '2.14' ; $SED -n '1,/l2_9/p' lines1 lines2
215 mark '2.15' ; $SED -n '/4/,$p' lines1 lines2
216 mark '2.16' ; $SED -n '/4/,20p' lines1 lines2

--- 314 unchanged lines hidden ---