Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/util/awk Deprecate tests/util/awk.
details: https://anonhg.NetBSD.org/src/rev/2c6ef54542c7
branches: trunk
changeset: 777988:2c6ef54542c7
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sun Mar 11 18:38:15 2012 +0000
description:
Deprecate tests/util/awk.
diffstat:
tests/util/awk/Makefile | 36 ------------
tests/util/awk/d_assign_NF.awk | 16 -----
tests/util/awk/d_assign_NF.in | 1 -
tests/util/awk/d_assign_NF.out | 9 ---
tests/util/awk/d_big_regexp.awk | 3 -
tests/util/awk/d_big_regexp.in | 1 -
tests/util/awk/d_big_regexp.out | 1 -
tests/util/awk/d_end1.awk | 5 -
tests/util/awk/d_end1.in | 1 -
tests/util/awk/d_end1.out | 1 -
tests/util/awk/d_end2.awk | 5 -
tests/util/awk/d_end2.in | 1 -
tests/util/awk/d_end2.out | 1 -
tests/util/awk/d_period.awk | 1 -
tests/util/awk/d_period.in | 1 -
tests/util/awk/d_period.out | 1 -
tests/util/awk/d_string1.awk | 7 --
tests/util/awk/d_string1.out | 2 -
tests/util/awk/d_tolower.awk | 5 -
tests/util/awk/d_tolower.in | 1 -
tests/util/awk/d_tolower.out | 1 -
tests/util/awk/d_toupper.awk | 5 -
tests/util/awk/d_toupper.in | 1 -
tests/util/awk/d_toupper.out | 1 -
tests/util/awk/t_awk.sh | 119 ----------------------------------------
25 files changed, 0 insertions(+), 226 deletions(-)
diffs (truncated from 326 to 300 lines):
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/Makefile
--- a/tests/util/awk/Makefile Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-# $NetBSD: Makefile,v 1.3 2011/11/22 20:22:10 cheusov Exp $
-
-NOMAN= # defined
-
-.include <bsd.own.mk>
-
-TESTSDIR= ${TESTSBASE}/util/awk
-
-TESTS_SH= t_awk
-
-FILESDIR= ${TESTSDIR}
-FILES= d_big_regexp.awk
-FILES+= d_big_regexp.in
-FILES+= d_big_regexp.out
-FILES+= d_end1.awk
-FILES+= d_end1.in
-FILES+= d_end1.out
-FILES+= d_end2.awk
-FILES+= d_end2.in
-FILES+= d_end2.out
-FILES+= d_period.awk
-FILES+= d_period.in
-FILES+= d_period.out
-FILES+= d_string1.awk
-FILES+= d_string1.out
-FILES+= d_tolower.awk
-FILES+= d_tolower.in
-FILES+= d_tolower.out
-FILES+= d_toupper.awk
-FILES+= d_toupper.in
-FILES+= d_toupper.out
-FILES+= d_assign_NF.awk
-FILES+= d_assign_NF.in
-FILES+= d_assign_NF.out
-
-.include <bsd.test.mk>
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_assign_NF.awk
--- a/tests/util/awk/d_assign_NF.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# $NetBSD: d_assign_NF.awk,v 1.1 2011/11/22 20:22:10 cheusov Exp $
-
-{
- NF = 2
- print "$0=`" $0 "`"
- print "$3=`" $3 "`"
- print "$4=`" $4 "`"
- NF = 3
- print "$0=`" $0 "`"
- print "$3=`" $3 "`"
- print "$4=`" $4 "`"
- NF = 4
- print "$0=`" $0 "`"
- print "$3=`" $3 "`"
- print "$4=`" $4 "`"
-}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_assign_NF.in
--- a/tests/util/awk/d_assign_NF.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
- 1 2 3
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_assign_NF.out
--- a/tests/util/awk/d_assign_NF.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-$0=`1 2`
-$3=``
-$4=``
-$0=`1 2 `
-$3=``
-$4=``
-$0=`1 2 `
-$3=``
-$4=``
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_big_regexp.awk
--- a/tests/util/awk/d_big_regexp.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-# $NetBSD: d_big_regexp.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
-
-/^[^_][^ ]*_NNIFO([ ]+[^_]+[^ ]*_(CC|INR|JJFO|JJMA|JJPG|NNIFG|NNIFO|NNIMPG|NNIMR|NNING|PP3FD|PQINO|PQMO|PSFR|RQ|TC|VIIR3|VPIPN|VPLIPF|NOTAG|RQR))*$/
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_big_regexp.in
--- a/tests/util/awk/d_big_regexp.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-1_NNIFO 1_PSFR 1_JJFO 1_NNIFO 1_INR 1_NNIMR 1_CC 1_NNING 1_RQ 1_VPLIPF 1_NNIFG 1_JJPG 1_NNIMPG 1_PQINO 1_VPIPN 1_PP3FD 1_JJMA 1_PQMO 1_TC 1_VIIR3
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_big_regexp.out
--- a/tests/util/awk/d_big_regexp.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-1_NNIFO 1_PSFR 1_JJFO 1_NNIFO 1_INR 1_NNIMR 1_CC 1_NNING 1_RQ 1_VPLIPF 1_NNIFG 1_JJPG 1_NNIMPG 1_PQINO 1_VPIPN 1_PP3FD 1_JJMA 1_PQMO 1_TC 1_VIIR3
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_end1.awk
--- a/tests/util/awk/d_end1.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: d_end1.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
-
-END {
- print NF;
-}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_end1.in
--- a/tests/util/awk/d_end1.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-a b c d
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_end1.out
--- a/tests/util/awk/d_end1.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-4
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_end2.awk
--- a/tests/util/awk/d_end2.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: d_end2.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
-
-END {
- print $0;
-}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_end2.in
--- a/tests/util/awk/d_end2.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-a b c d
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_end2.out
--- a/tests/util/awk/d_end2.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-a b c d
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_period.awk
--- a/tests/util/awk/d_period.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-{print x + $1 + 0.125}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_period.in
--- a/tests/util/awk/d_period.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-0,25
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_period.out
--- a/tests/util/awk/d_period.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-0,875
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_string1.awk
--- a/tests/util/awk/d_string1.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# $NetBSD: d_string1.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
-
-BEGIN {
- print "A\
-B";
- print "CD"
-}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_string1.out
--- a/tests/util/awk/d_string1.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-AB
-CD
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_tolower.awk
--- a/tests/util/awk/d_tolower.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: d_tolower.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
-
-END {
- print tolower($0);
-}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_tolower.in
--- a/tests/util/awk/d_tolower.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-ABCÃ?Ã?Ã?
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_tolower.out
--- a/tests/util/awk/d_tolower.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-abcæøå
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_toupper.awk
--- a/tests/util/awk/d_toupper.awk Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: d_toupper.awk,v 1.1 2009/02/13 05:19:51 jmmv Exp $
-
-END {
- print toupper($0);
-}
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_toupper.in
--- a/tests/util/awk/d_toupper.in Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-abcæøå
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/d_toupper.out
--- a/tests/util/awk/d_toupper.out Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-ABCÃ?Ã?Ã?
diff -r 53054cdab474 -r 2c6ef54542c7 tests/util/awk/t_awk.sh
--- a/tests/util/awk/t_awk.sh Sun Mar 11 18:35:59 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
-# $NetBSD: t_awk.sh,v 1.7 2011/11/22 20:22:10 cheusov Exp $
-#
-# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-h_check()
-{
- local fname=d_$1
- for sfx in in out awk; do
- cp -r $(atf_get_srcdir)/$fname.$sfx .
- done
- shift 1
- atf_check -o file:$fname.out -x "awk $@ -f $fname.awk < $fname.in"
-}
-
-atf_test_case big_regexp
-big_regexp_head()
-{
- atf_set "descr" "Checks matching long regular expressions (PR/33392)"
-}
-big_regexp_body()
-{
- h_check big_regexp
-}
-
-atf_test_case end
-end_head()
-{
- atf_set "descr" "Checks that the last line of the input" \
- "is available under END pattern (PR/29659)"
-}
-end_body()
-{
- h_check end1
- h_check end2
-}
-
-atf_test_case string1
-string1_head()
-{
- atf_set "descr" "Checks escaping newlines in string literals"
-}
-string1_body()
-{
- for sfx in out awk; do
- cp -r $(atf_get_srcdir)/d_string1.$sfx .
- done
- atf_check -o file:d_string1.out awk -f d_string1.awk
-}
-
-atf_test_case multibyte
-multibyte_head()
-{
- atf_set "descr" "Checks multibyte charsets support" \
- "in tolower and toupper (PR/36394)"
-}
-multibyte_body()
-{
- export LANG=en_US.UTF-8
-
- h_check tolower
- h_check toupper
-}
-
-atf_test_case period
-period_head()
-{
- atf_set "descr" "Checks that the period character is recognised" \
- "in awk program regardless of locale (bin/42320)"
-}
-period_body()
Home |
Main Index |
Thread Index |
Old Index