Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/usr.bin/awk add a test for src/dist/nawk/lex.c rev.1.6.
details: https://anonhg.NetBSD.org/src/rev/8b5d563d0fe4
branches: trunk
changeset: 572866:8b5d563d0fe4
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Jan 13 12:26:12 2005 +0000
description:
add a test for src/dist/nawk/lex.c rev.1.6.
diffstat:
regress/usr.bin/awk/Makefile | 5 +++++
regress/usr.bin/awk/Makefile.inc | 3 +++
regress/usr.bin/awk/string1/Makefile | 13 +++++++++++++
regress/usr.bin/awk/string1/expected | 2 ++
regress/usr.bin/awk/string1/test.awk | 7 +++++++
5 files changed, 30 insertions(+), 0 deletions(-)
diffs (50 lines):
diff -r f6d19803972f -r 8b5d563d0fe4 regress/usr.bin/awk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/awk/Makefile Thu Jan 13 12:26:12 2005 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2005/01/13 12:26:12 yamt Exp $
+
+SUBDIR+= string1
+
+.include <bsd.subdir.mk>
diff -r f6d19803972f -r 8b5d563d0fe4 regress/usr.bin/awk/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/awk/Makefile.inc Thu Jan 13 12:26:12 2005 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2005/01/13 12:26:12 yamt Exp $
+
+AWK?= awk
diff -r f6d19803972f -r 8b5d563d0fe4 regress/usr.bin/awk/string1/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/awk/string1/Makefile Thu Jan 13 12:26:12 2005 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 2005/01/13 12:26:12 yamt Exp $
+
+NOMAN= # defined
+
+.include <bsd.own.mk>
+
+CLEANFILES= result
+
+regress:
+ ${AWK} -f ${.CURDIR}/test.awk > result
+ @cmp ${.CURDIR}/expected result
+
+.include <bsd.prog.mk>
diff -r f6d19803972f -r 8b5d563d0fe4 regress/usr.bin/awk/string1/expected
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/awk/string1/expected Thu Jan 13 12:26:12 2005 +0000
@@ -0,0 +1,2 @@
+AB
+CD
diff -r f6d19803972f -r 8b5d563d0fe4 regress/usr.bin/awk/string1/test.awk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/awk/string1/test.awk Thu Jan 13 12:26:12 2005 +0000
@@ -0,0 +1,7 @@
+# $Id: test.awk,v 1.1 2005/01/13 12:26:12 yamt Exp $
+
+BEGIN {
+ print "A\
+B";
+ print "CD"
+}
Home |
Main Index |
Thread Index |
Old Index