multi_test.sh (6cec9cad762b6476313fb1f8e931a1647822db6b) | multi_test.sh (98648ee85e3458be3adbc30a31012a0eb2f88023) |
---|---|
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 --- 37 unchanged lines hidden (view full) --- 46main() 47{ 48 REGRESS=${SRCDIR}/regress.multitest.out 49 DICT=/usr/share/dict/words 50 51 awk 'END { for (i = 1; i < 15; i++) print "l1_" i}' </dev/null >lines1 52 awk 'END { for (i = 1; i < 10; i++) print "l2_" i}' </dev/null >lines2 53 | 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 --- 37 unchanged lines hidden (view full) --- 46main() 47{ 48 REGRESS=${SRCDIR}/regress.multitest.out 49 DICT=/usr/share/dict/words 50 51 awk 'END { for (i = 1; i < 15; i++) print "l1_" i}' </dev/null >lines1 52 awk 'END { for (i = 1; i < 10; i++) print "l2_" i}' </dev/null >lines2 53 |
54 echo "1..129" | 54 echo "1..130" |
55 56 exec 4>&1 5>&2 57 tests 58 exec 1>&4 2>&5 59 60 # Remove temporary files 61 rm -f current.out lines[1-4] script[1-2] 62} --- 113 unchanged lines hidden (view full) --- 176 mark '2.15' ; $SED -n '/4/,$p' lines1 lines2 177 mark '2.16' ; $SED -n '/4/,20p' lines1 lines2 178 mark '2.17' ; $SED -n '/4/,/10/p' lines1 lines2 179 mark '2.18' ; $SED -n '/l2_3/,/l1_8/p' lines1 lines2 180 mark '2.19' ; $SED -n '12,3p' lines1 lines2 181 mark '2.20' ; $SED -n '/l1_7/,3p' lines1 lines2 182 mark '2.21' ; $SED -n '13,+4p' lines1 lines2 183 mark '2.22' ; $SED -n '/l1_6/,+2p' lines1 lines2 | 55 56 exec 4>&1 5>&2 57 tests 58 exec 1>&4 2>&5 59 60 # Remove temporary files 61 rm -f current.out lines[1-4] script[1-2] 62} --- 113 unchanged lines hidden (view full) --- 176 mark '2.15' ; $SED -n '/4/,$p' lines1 lines2 177 mark '2.16' ; $SED -n '/4/,20p' lines1 lines2 178 mark '2.17' ; $SED -n '/4/,/10/p' lines1 lines2 179 mark '2.18' ; $SED -n '/l2_3/,/l1_8/p' lines1 lines2 180 mark '2.19' ; $SED -n '12,3p' lines1 lines2 181 mark '2.20' ; $SED -n '/l1_7/,3p' lines1 lines2 182 mark '2.21' ; $SED -n '13,+4p' lines1 lines2 183 mark '2.22' ; $SED -n '/l1_6/,+2p' lines1 lines2 |
184 # For PR bin/192108 185 mark '2.23'; $SED -n '12,+1p' lines1 |
|
184} 185 186test_group() 187{ 188 COMMENT='Brace and other grouping' 189 mark '3.1' ; $SED -e ' 1904,12 { 191 s/^/^/ --- 303 unchanged lines hidden --- | 186} 187 188test_group() 189{ 190 COMMENT='Brace and other grouping' 191 mark '3.1' ; $SED -e ' 1924,12 { 193 s/^/^/ --- 303 unchanged lines hidden --- |