Remove tests that have been atfified as part of the GSoC 2008 atfify project.
This commit is contained in:
parent
408c8f0410
commit
08439bc7e5
@ -1,6 +1,6 @@
|
||||
# $NetBSD: Makefile,v 1.15 2007/09/17 17:37:48 drochner Exp $
|
||||
# $NetBSD: Makefile,v 1.16 2009/02/13 05:21:24 jmmv Exp $
|
||||
|
||||
SUBDIR+= basename bzip2 c++ config cut dirname grep gzip m4 make rtld
|
||||
SUBDIR+= sdiff sort xlint
|
||||
SUBDIR+= c++ rtld
|
||||
SUBDIR+= sort xlint
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -1,5 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.4 2007/10/25 14:51:18 he Exp $
|
||||
|
||||
SUBDIR+= end1 end2 string1 big-regexp tolower toupper
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,3 +0,0 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2005/01/13 12:26:12 yamt Exp $
|
||||
|
||||
AWK?= awk
|
@ -1,15 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2008/10/27 20:59:22 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
AWK?= ${TOOL_AWK}
|
||||
|
||||
CLEANFILES= result
|
||||
|
||||
regress:
|
||||
${AWK} -f ${.CURDIR}/test.awk < input > result
|
||||
@cmp ${.CURDIR}/expected result
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -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
|
@ -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
|
@ -1,3 +0,0 @@
|
||||
# $Id: test.awk,v 1.1 2006/07/04 03:02:21 christos Exp $
|
||||
|
||||
/^[^_][^ ]*_NNIFO([ ]+[^_]+[^ ]*_(CC|INR|JJFO|JJMA|JJPG|NNIFG|NNIFO|NNIMPG|NNIMR|NNING|PP3FD|PQINO|PQMO|PSFR|RQ|TC|VIIR3|VPIPN|VPLIPF|NOTAG|RQR))*$/
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2008/10/27 20:59:22 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
CLEANFILES= result
|
||||
|
||||
regress:
|
||||
${TOOL_AWK} -f ${.CURDIR}/test.awk ${.CURDIR}/input > result
|
||||
@cmp ${.CURDIR}/expected result
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1 +0,0 @@
|
||||
4
|
@ -1 +0,0 @@
|
||||
a b c d
|
@ -1,5 +0,0 @@
|
||||
# $Id: test.awk,v 1.1 2005/03/23 17:28:55 he Exp $
|
||||
|
||||
END {
|
||||
print NF;
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2008/10/27 20:59:22 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
AWK?= ${TOOL_AWK}
|
||||
|
||||
CLEANFILES= result
|
||||
|
||||
regress:
|
||||
${AWK} -f ${.CURDIR}/test.awk ${.CURDIR}/input > result
|
||||
@cmp ${.CURDIR}/expected result
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1 +0,0 @@
|
||||
a b c d
|
@ -1 +0,0 @@
|
||||
a b c d
|
@ -1,5 +0,0 @@
|
||||
# $Id: test.awk,v 1.1 2005/03/23 17:28:55 he Exp $
|
||||
|
||||
END {
|
||||
print $0;
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2008/10/27 20:59:22 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
AWK?= ${TOOL_AWK}
|
||||
|
||||
CLEANFILES= result
|
||||
|
||||
regress:
|
||||
${AWK} -f ${.CURDIR}/test.awk > result
|
||||
@cmp ${.CURDIR}/expected result
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,2 +0,0 @@
|
||||
AB
|
||||
CD
|
@ -1,7 +0,0 @@
|
||||
# $Id: test.awk,v 1.1 2005/01/13 12:26:12 yamt Exp $
|
||||
|
||||
BEGIN {
|
||||
print "A\
|
||||
B";
|
||||
print "CD"
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2008/10/27 20:59:22 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
AWK?= ${TOOL_AWK}
|
||||
|
||||
CLEANFILES= result
|
||||
|
||||
regress:
|
||||
env LANG=en_US.UTF-8 \
|
||||
${AWK} -f ${.CURDIR}/test.awk ${.CURDIR}/input > result
|
||||
@cmp ${.CURDIR}/expected result
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1 +0,0 @@
|
||||
abcæøå
|
@ -1 +0,0 @@
|
||||
ABCÆØÅ
|
@ -1,5 +0,0 @@
|
||||
# $Id: test.awk,v 1.1 2007/10/25 14:51:18 he Exp $
|
||||
|
||||
END {
|
||||
print tolower($0);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2008/10/27 20:59:22 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
AWK?= ${TOOL_AWK}
|
||||
|
||||
CLEANFILES= result
|
||||
|
||||
regress:
|
||||
env LANG=en_US.UTF-8 \
|
||||
${AWK} -f ${.CURDIR}/test.awk ${.CURDIR}/input > result
|
||||
@cmp ${.CURDIR}/expected result
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1 +0,0 @@
|
||||
ABCÆØÅ
|
@ -1 +0,0 @@
|
||||
abcæøå
|
@ -1,5 +0,0 @@
|
||||
# $Id: test.awk,v 1.1 2007/10/25 14:51:19 he Exp $
|
||||
|
||||
END {
|
||||
print toupper($0);
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.1 2005/04/04 16:48:45 peter Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
regress:
|
||||
@sh ${.CURDIR}/basename.sh
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,39 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: basename.sh,v 1.1 2005/04/04 16:48:45 peter Exp $
|
||||
|
||||
test_basename()
|
||||
{
|
||||
echo "Testing $1"
|
||||
result=`basename $1 2>&1`
|
||||
if [ "$result" != "$2" ]; then
|
||||
echo "Expected $2, but got $result"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
test_basename_suffix()
|
||||
{
|
||||
echo "Testing $1 $2"
|
||||
result=`basename $1 $2 2>&1`
|
||||
if [ "$result" != "$3" ]; then
|
||||
echo "Expected $3, but got $result"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Tests without suffix
|
||||
test_basename "/usr/bin" "bin"
|
||||
test_basename "/usr" "usr"
|
||||
test_basename "/" "/"
|
||||
test_basename "///" "/"
|
||||
test_basename "/usr//" "usr"
|
||||
test_basename "//usr//bin" "bin"
|
||||
test_basename "usr" "usr"
|
||||
test_basename "usr/bin" "bin"
|
||||
|
||||
# Tests with suffix
|
||||
test_basename_suffix "/usr/bin" "n" "bi"
|
||||
test_basename_suffix "/usr/bin" "bin" "bin"
|
||||
test_basename_suffix "/" "/" "/"
|
||||
test_basename_suffix "/usr/bin/gcc" "cc" "g"
|
@ -1,24 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2002/09/18 04:16:02 lukem Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
DIST= ${NETBSDSRCDIR}/dist/bzip2
|
||||
|
||||
regress:
|
||||
bzip2 -1 < ${DIST}/sample1.ref > sample1.rb2
|
||||
bzip2 -2 < ${DIST}/sample2.ref > sample2.rb2
|
||||
bzip2 -3 < ${DIST}/sample3.ref > sample3.rb2
|
||||
bzip2 -d < ${DIST}/sample1.bz2 > sample1.tst
|
||||
bzip2 -d < ${DIST}/sample2.bz2 > sample2.tst
|
||||
bzip2 -ds < ${DIST}/sample3.bz2 > sample3.tst
|
||||
cmp ${DIST}/sample1.bz2 sample1.rb2
|
||||
cmp ${DIST}/sample2.bz2 sample2.rb2
|
||||
cmp ${DIST}/sample3.bz2 sample3.rb2
|
||||
cmp sample1.tst ${DIST}/sample1.ref
|
||||
cmp sample2.tst ${DIST}/sample2.ref
|
||||
cmp sample3.tst ${DIST}/sample3.ref
|
||||
rm -f sample1.rb2 sample2.rb2 sample3.rb2 sample1.tst sample2.tst sample3.tst
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,10 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
maxusers 4
|
||||
file-system REGRESSFS
|
||||
|
||||
master0 at root
|
||||
|
||||
defflag NOT_A_FS
|
||||
deffs NOT_A_FS
|
||||
|
||||
config regress root on ?
|
@ -1,23 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
maxusers 4
|
||||
file-system REGRESSFS
|
||||
|
||||
master0 at root
|
||||
|
||||
# The following definitions build a loop of 'looper' devices.
|
||||
# This tests how well the code that look for orphans handle loops.
|
||||
#
|
||||
# In that case, while the loopchild devices will always be seen in
|
||||
# time, the code has to make sure it reaches all the loopbaby
|
||||
# devices.
|
||||
|
||||
looper0 at master0
|
||||
looper1 at looper0
|
||||
|
||||
loopchild0 at looper0
|
||||
loopchild1 at looper1
|
||||
|
||||
loopbaby0 at loopchild0
|
||||
loopbaby1 at loopchild1
|
||||
|
||||
config regress root on ?
|
@ -1,16 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
maxusers 4
|
||||
file-system REGRESSFS
|
||||
|
||||
master0 at root
|
||||
|
||||
# Devices that are their own parent must be handled properly
|
||||
# when the instance is negated.
|
||||
|
||||
looper* at master0
|
||||
looper* at looper?
|
||||
looper1 at looper0
|
||||
|
||||
no looper* at looper?
|
||||
|
||||
config regress root on ?
|
@ -1,50 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.7 2007/01/06 18:52:47 cube Exp $
|
||||
|
||||
# Those configurations only have to be understood by config(1) without
|
||||
# errors.
|
||||
|
||||
SIMPLE_SUCCESS= SHADOW_INSTANCE LOOP LOOP2 PSEUDO_PARENT
|
||||
SIMPLE_FAILURE= POSTPONED_ORPHAN NO_PSEUDO DEFFS_REDEF
|
||||
|
||||
SIMPLE= ${SIMPLE_SUCCESS} ${SIMPLE_FAILURE}
|
||||
|
||||
CONFIG_OPTS.POSTPONED_ORPHAN= -v
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
|
||||
.PHONY: regress clean cleandir
|
||||
regress: compile
|
||||
cleandir: clean
|
||||
clean:
|
||||
@if [ -e compile ]; then rmdir compile; fi
|
||||
|
||||
compile:
|
||||
@mkdir compile
|
||||
|
||||
.for __conf__ in ${SIMPLE}
|
||||
regress: ${__conf__}-regress
|
||||
clean: ${__conf__}-clean
|
||||
.endfor
|
||||
|
||||
.for __conf__ in ${SIMPLE}
|
||||
|
||||
.if !empty(SIMPLE_SUCCESS:M${__conf__})
|
||||
CONFIG_TEST.${__conf__}= && echo "Test passed."
|
||||
.else
|
||||
CONFIG_TEST.${__conf__}= || echo "Test passed."
|
||||
.endif
|
||||
|
||||
CONFIG_LINE.${__conf__}= ${TOOL_CONFIG} ${CONFIG_OPTS.${__conf__}} \
|
||||
-s ${.CURDIR}/support \
|
||||
-b ./compile/${__conf__} ${.CURDIR}/${__conf__} \
|
||||
${CONFIG_TEST.${__conf__}}
|
||||
|
||||
.PHONY: ${__conf__}-regress ${__conf__}-clean
|
||||
|
||||
${__conf__}-regress:
|
||||
@mkdir -p compile/${__conf__}
|
||||
@${CONFIG_LINE.${__conf__}}
|
||||
|
||||
${__conf__}-clean:
|
||||
@if [ -d compile/${__conf__} ]; then rm -Rf compile/${__conf__}; fi
|
||||
.endfor
|
@ -1,14 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
|
||||
maxusers 4
|
||||
|
||||
file-system REGRESSFS
|
||||
|
||||
master0 at root
|
||||
|
||||
# Simply negating a pseudo-device should yield an error.
|
||||
|
||||
pseudo-device pseudodev
|
||||
no pseudodev
|
||||
|
||||
config regress root on ?
|
@ -1,21 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
|
||||
maxusers 4
|
||||
|
||||
file-system REGRESSFS
|
||||
|
||||
master0 at root
|
||||
|
||||
parenti* at master?
|
||||
|
||||
# Here, parenti is negated before the child* instance is declared. That
|
||||
# means the child* instance does not qualify as an explicit orphan and
|
||||
# therefore should _not_ be ignored.
|
||||
#
|
||||
# config(1) should error out on that config file.
|
||||
|
||||
no parenti
|
||||
|
||||
child* at parenti?
|
||||
|
||||
config regress root on ?
|
@ -1,13 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
maxusers 4
|
||||
file-system REGRESSFS
|
||||
|
||||
# Pseudo-devices can have children on interface attributes,
|
||||
# which means they don't necessarily have to explicitly
|
||||
# define locators (see pseudodev definition).
|
||||
|
||||
pseudo-device pseudodev
|
||||
|
||||
child* at pseudodev?
|
||||
|
||||
config regress root on ?
|
@ -1,25 +0,0 @@
|
||||
include "arch/regress/conf/std.regress"
|
||||
|
||||
maxusers 4
|
||||
|
||||
file-system REGRESSFS
|
||||
|
||||
master0 at root
|
||||
|
||||
parenti* at master?
|
||||
parentii* at master?
|
||||
|
||||
# The second child* instance (attaching at parentii) is useless: it will be
|
||||
# shadowed by the first one, which is semantically the same, from a parentii
|
||||
# device's point of view.
|
||||
#
|
||||
# The two child* instances are aliases, and at some point the orphan-checking
|
||||
# code skipped some aliases, in the shadowing situation and some others.
|
||||
#
|
||||
# This test should pass, the lines are valid, even though the second one is
|
||||
# useless.
|
||||
|
||||
child* at hook?
|
||||
child* at parentii?
|
||||
|
||||
config regress root on ?
|
@ -1,41 +0,0 @@
|
||||
=== INCLUDES BEGIN ===
|
||||
|
||||
%INCLUDES
|
||||
|
||||
=== INCLUDES END ===
|
||||
|
||||
=== OBJS BEGIN ===
|
||||
|
||||
%OBJS
|
||||
|
||||
=== OBJS END ===
|
||||
|
||||
=== CFILES BEGIN ===
|
||||
|
||||
%CFILES
|
||||
|
||||
=== CFILES END ===
|
||||
|
||||
=== SFILES BEGIN ===
|
||||
|
||||
%SFILES
|
||||
|
||||
=== SFILES END ===
|
||||
|
||||
=== LOAD BEGIN ===
|
||||
|
||||
%LOAD
|
||||
|
||||
=== LOAD END ===
|
||||
|
||||
=== RULES BEGIN ===
|
||||
|
||||
%RULES
|
||||
|
||||
=== RULES END ===
|
||||
|
||||
=== MAKEOPTIONSAPPEND BEGIN ===
|
||||
|
||||
%MAKEOPTIONSAPPEND
|
||||
|
||||
=== MAKEOPTIONSAPPEND END ===
|
@ -1,2 +0,0 @@
|
||||
maxpartitions 8
|
||||
maxusers 2 4 8
|
@ -1 +0,0 @@
|
||||
machine regress
|
@ -1,26 +0,0 @@
|
||||
deffs REGRESSFS
|
||||
|
||||
device master { }
|
||||
attach master at root
|
||||
|
||||
define hook { }
|
||||
|
||||
device parentii: hook
|
||||
attach parentii at master
|
||||
device parenti: hook
|
||||
attach parenti at master
|
||||
|
||||
device child
|
||||
attach child at hook
|
||||
|
||||
device looper { }
|
||||
attach looper at master with looper_master
|
||||
attach looper at looper with looper_looper
|
||||
|
||||
device loopchild { }
|
||||
attach loopchild at looper
|
||||
|
||||
device loopbaby
|
||||
attach loopbaby at loopchild
|
||||
|
||||
defpseudo pseudodev: hook
|
@ -1,9 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.4 2007/02/19 11:15:47 cube Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
CLEANFILES= result-general result-latin1 result-utf8
|
||||
|
||||
regress:
|
||||
@${HOST_SH} ${.CURDIR}/cut_tests ${.CURDIR}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,44 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
CUT=${CUT:-cut}
|
||||
|
||||
run_cut (){
|
||||
echo "----- test: cut $@ -----"
|
||||
${CUT} "$@"
|
||||
}
|
||||
|
||||
run_test_block (){
|
||||
run_cut -f 1 "$@"
|
||||
run_cut -f 2 "$@"
|
||||
run_cut -f 3 "$@"
|
||||
run_cut -f 1-2 "$@"
|
||||
run_cut -f 2,3 "$@"
|
||||
run_cut -f 4 "$@"
|
||||
run_cut -f 1-3,4-7 "$@"
|
||||
run_cut -f 1,2-7 "$@"
|
||||
}
|
||||
|
||||
run_general_tests (){
|
||||
run_test_block "$@"
|
||||
run_test_block -s "$@"
|
||||
run_test_block -d ':' "$@"
|
||||
run_test_block -d ':' -s "$@"
|
||||
}
|
||||
|
||||
run_locale_tests (){
|
||||
run_cut -b 6,7,8 "$@"
|
||||
run_cut -c 6,7,8 "$@"
|
||||
}
|
||||
|
||||
|
||||
run_general_tests $1/input-general | sed -e "s@$1/@@" > result-general
|
||||
cmp result-general $1/expected-general
|
||||
|
||||
export LC_ALL=C
|
||||
run_locale_tests $1/input-latin1 | sed -e "s@$1/@@" > result-latin1
|
||||
cmp result-latin1 $1/expected-latin1
|
||||
|
||||
export LC_ALL=en_US.UTF-8
|
||||
run_locale_tests $1/input-utf8 | sed -e "s@$1/@@" > result-utf8
|
||||
cmp result-utf8 $1/expected-utf8
|
||||
|
@ -1,240 +0,0 @@
|
||||
----- test: cut -f 1 input-general -----
|
||||
1
|
||||
|
||||
12
|
||||
|
||||
qwe
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 2 input-general -----
|
||||
1
|
||||
|
||||
34
|
||||
12
|
||||
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 3 input-general -----
|
||||
1
|
||||
|
||||
56
|
||||
|
||||
rty
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 1-2 input-general -----
|
||||
1
|
||||
|
||||
12 34
|
||||
12
|
||||
qwe
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 2,3 input-general -----
|
||||
1
|
||||
|
||||
34 56
|
||||
12
|
||||
rty
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 4 input-general -----
|
||||
1
|
||||
|
||||
|
||||
34
|
||||
uio
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 1-3,4-7 input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 1,2-7 input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
----- test: cut -f 1 -s input-general -----
|
||||
12
|
||||
|
||||
qwe
|
||||
----- test: cut -f 2 -s input-general -----
|
||||
34
|
||||
12
|
||||
|
||||
----- test: cut -f 3 -s input-general -----
|
||||
56
|
||||
|
||||
rty
|
||||
----- test: cut -f 1-2 -s input-general -----
|
||||
12 34
|
||||
12
|
||||
qwe
|
||||
----- test: cut -f 2,3 -s input-general -----
|
||||
34 56
|
||||
12
|
||||
rty
|
||||
----- test: cut -f 4 -s input-general -----
|
||||
|
||||
34
|
||||
uio
|
||||
----- test: cut -f 1-3,4-7 -s input-general -----
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd
|
||||
----- test: cut -f 1,2-7 -s input-general -----
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd
|
||||
----- test: cut -f 1 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
12
|
||||
qwe
|
||||
|
||||
----- test: cut -f 2 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
34
|
||||
rty
|
||||
qwe
|
||||
----- test: cut -f 3 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
56
|
||||
uio
|
||||
|
||||
----- test: cut -f 1-2 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
12:34
|
||||
qwe:rty
|
||||
:qwe
|
||||
----- test: cut -f 2,3 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
34:56
|
||||
rty:uio
|
||||
qwe:
|
||||
----- test: cut -f 4 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
|
||||
p[]
|
||||
|
||||
----- test: cut -f 1-3,4-7 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl
|
||||
:qwe:::rty:uio:
|
||||
----- test: cut -f 1,2-7 -d : input-general -----
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl
|
||||
:qwe:::rty:uio:
|
||||
----- test: cut -f 1 -d : -s input-general -----
|
||||
12
|
||||
qwe
|
||||
|
||||
----- test: cut -f 2 -d : -s input-general -----
|
||||
34
|
||||
rty
|
||||
qwe
|
||||
----- test: cut -f 3 -d : -s input-general -----
|
||||
56
|
||||
uio
|
||||
|
||||
----- test: cut -f 1-2 -d : -s input-general -----
|
||||
12:34
|
||||
qwe:rty
|
||||
:qwe
|
||||
----- test: cut -f 2,3 -d : -s input-general -----
|
||||
34:56
|
||||
rty:uio
|
||||
qwe:
|
||||
----- test: cut -f 4 -d : -s input-general -----
|
||||
|
||||
p[]
|
||||
|
||||
----- test: cut -f 1-3,4-7 -d : -s input-general -----
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl
|
||||
:qwe:::rty:uio:
|
||||
----- test: cut -f 1,2-7 -d : -s input-general -----
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl
|
||||
:qwe:::rty:uio:
|
@ -1,10 +0,0 @@
|
||||
----- test: cut -b 6,7,8 input-latin1 -----
|
||||
bar
|
||||
Bar
|
||||
BAr
|
||||
BAR
|
||||
----- test: cut -c 6,7,8 input-latin1 -----
|
||||
bar
|
||||
Bar
|
||||
BAr
|
||||
BAR
|
@ -1,10 +0,0 @@
|
||||
----- test: cut -b 6,7,8 input-utf8 -----
|
||||
:ba
|
||||
:Ba
|
||||
:BA
|
||||
:BA
|
||||
----- test: cut -c 6,7,8 input-utf8 -----
|
||||
bar
|
||||
Bar
|
||||
BAr
|
||||
BAR
|
@ -1,10 +0,0 @@
|
||||
1
|
||||
|
||||
12 34 56
|
||||
12 34 56
|
||||
qwe rty uio p[] asd fgh jkl zxc vbn nm
|
||||
1
|
||||
|
||||
12:34:56
|
||||
qwe:rty:uio:p[]:asd:fgh:jkl:zxc:vbn:nm
|
||||
:qwe:::rty:uio::p[]:asd:fgh:jkl:zxc:vbn:nm
|
@ -1,4 +0,0 @@
|
||||
fooÄ:bar:Äbaz
|
||||
FooÄ:Bar:ÄBaz
|
||||
FOoÄ:BAr:ÄBAz
|
||||
FOOÄ:BAR:ÄBAZ
|
@ -1,4 +0,0 @@
|
||||
fooÄ:bar:Äbaz
|
||||
FooÄ:Bar:ÄBaz
|
||||
FOoÄ:BAr:ÄBAz
|
||||
FOOÄ:BAR:ÄBAZ
|
@ -1,8 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.1 2005/04/04 16:48:45 peter Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
regress:
|
||||
@sh ${.CURDIR}/dirname.sh
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: dirname.sh,v 1.1 2005/04/04 16:48:45 peter Exp $
|
||||
|
||||
test_dirname()
|
||||
{
|
||||
echo "Testing $1"
|
||||
result=`dirname $1 2>&1`
|
||||
if [ "$result" != "$2" ]; then
|
||||
echo "Expected $2, but got $result"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
test_dirname "/" "/"
|
||||
test_dirname "//" "/"
|
||||
test_dirname "/usr/bin/" "/usr"
|
||||
test_dirname "//usr//bin//" "//usr"
|
||||
test_dirname "usr" "."
|
||||
test_dirname "\"\"" "."
|
||||
test_dirname "/usr" "/"
|
||||
test_dirname "/usr/bin" "/usr"
|
||||
test_dirname "usr/bin" "usr"
|
@ -1,8 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2003/10/26 03:50:07 lukem Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
regress:
|
||||
@${HOST_SH} ${.CURDIR}/greptests.sh ${.CURDIR}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,10 +0,0 @@
|
||||
A pig is a jolly companion,
|
||||
Boar, sow, barrow, or gilt --
|
||||
A pig is a pal, who'll boost your morale,
|
||||
Though mountains may topple and tilt.
|
||||
When they've blackballed, bamboozled, and burned you,
|
||||
When they've turned on you, Tory and Whig,
|
||||
Though you may be thrown over by Tabby and Rover,
|
||||
You'll never go wrong with a pig, a pig,
|
||||
You'll never go wrong with a pig!
|
||||
-- Thomas Pynchon, "Gravity's Rainbow"
|
@ -1,3 +0,0 @@
|
||||
This is to test output of context from multiple files.
|
||||
Dave was a happy pig who wandered around the orchard eating
|
||||
apples all day long.
|
@ -1,158 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: greptests.sh,v 1.3 2006/02/25 02:28:55 wiz Exp $
|
||||
#
|
||||
#
|
||||
# Regression tests for grep. Some of these tests are based on those
|
||||
# from OpenBSD src/regress/usr.bin/grep/Makefile
|
||||
#
|
||||
# OpenBSD: Makefile,v 1.4 2003/07/17 19:14:43 pvalchev Exp
|
||||
|
||||
p="$1";
|
||||
[ -z "$1" ] && p=".";
|
||||
|
||||
# Temporary measure so that multiple greps can be tested
|
||||
#
|
||||
grep=grep
|
||||
egrep=egrep
|
||||
fgrep=fgrep
|
||||
zgrep=zgrep
|
||||
|
||||
# Path to words directory
|
||||
#
|
||||
words=/usr/share/dict/words;
|
||||
|
||||
|
||||
# Test 1: Simple grep from words.
|
||||
#
|
||||
echo "1. Simple grep"
|
||||
${grep} aa ${words} | diff $p/test1.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 2: Binary files.
|
||||
#
|
||||
echo "2. Binary files"
|
||||
${grep} NetBSD /bin/sh | diff $p/test2.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 3: Simple recursive grep
|
||||
#
|
||||
echo "3. Recursive grep"
|
||||
tmpdir=`mktemp -d /tmp/greptest.XXXXXX` || exit 1;
|
||||
mkdir -p ${tmpdir}/recurse/a/f ${tmpdir}/recurse/d
|
||||
cat <<EOF > ${tmpdir}/recurse/a/f/favourite-fish
|
||||
cod
|
||||
haddock
|
||||
plaice
|
||||
EOF
|
||||
|
||||
cat <<EOF > ${tmpdir}/recurse/d/fish
|
||||
cod
|
||||
dover sole
|
||||
haddock
|
||||
halibut
|
||||
pilchard
|
||||
EOF
|
||||
|
||||
(cd ${tmpdir} && ${grep} -r haddock recurse) | diff $p/test3.gnu.out -
|
||||
rm -rf ${tmpdir}
|
||||
echo ""
|
||||
|
||||
# Test 4: Symbolic link recursion
|
||||
#
|
||||
echo "4. Symbolic link recursion"
|
||||
tmpdir=`mktemp -d /tmp/greptest.XXXXXX` || exit 1;
|
||||
mkdir -p ${tmpdir}/test/c/d
|
||||
(cd ${tmpdir}/test/c/d && ln -s ../d .)
|
||||
echo "Test string" > ${tmpdir}/test/c/match
|
||||
(cd ${tmpdir} && ${grep} -r string test) 2>&1 | diff $p/test4.gnu.out -
|
||||
rm -rf ${tmpdir}
|
||||
echo ""
|
||||
|
||||
# Test 5: Test word-regexps
|
||||
#
|
||||
echo "5. Test word-regexps"
|
||||
${grep} -w separated $p/input | diff $p/test5.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 6: Beginning and ends
|
||||
#
|
||||
echo "6. Beginnings and ends"
|
||||
${grep} ^Front $p/input | diff $p/test6a.gnu.out -
|
||||
${grep} ending$ $p/input | diff $p/test6b.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 7: Match on any case
|
||||
#
|
||||
echo "7. Ignore case"
|
||||
${grep} -i Upper $p/input | diff $p/test7.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 8: Test -v
|
||||
#
|
||||
echo "8. -v"
|
||||
${grep} -v fish $p/negativeinput | diff $p/test8.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 9: Test whole-line matching with -x
|
||||
#
|
||||
echo "9. Whole-line matching"
|
||||
${grep} -x matchme $p/input | diff $p/test9.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 10: Check for negative matches
|
||||
#
|
||||
echo "10. Test for non-matches"
|
||||
${grep} "not a hope in hell" $p/input | diff /dev/null -
|
||||
echo ""
|
||||
|
||||
# Test 11: Context
|
||||
#
|
||||
echo "11. Context tests"
|
||||
${grep} -C2 bamboo $p/contextinput | diff $p/test11a.gnu.out -
|
||||
${grep} -A3 tilt $p/contextinput | diff $p/test11b.gnu.out -
|
||||
${grep} -B4 Whig $p/contextinput | diff $p/test11c.gnu.out -
|
||||
(cd $p && ${grep} -C1 pig contextinput contextinput1) \
|
||||
| diff $p/test11d.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 12: Test reading expressions from a file
|
||||
#
|
||||
echo "12. Test reading expressions from a file"
|
||||
${grep} -f $p/test1.gnu.out ${words} | diff $p/test1.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 13: Extended grep
|
||||
#
|
||||
echo "13. Extended grep of special characters"
|
||||
${egrep} '\?|\*$$' $p/input | diff $p/test13.gnu.out -
|
||||
echo ""
|
||||
|
||||
# Test 14: zgrep
|
||||
#
|
||||
echo "14. zgrep"
|
||||
tmpdir=`mktemp -d /tmp/greptest.XXXXXX` || exit 1;
|
||||
cp $p/input ${tmpdir}/input
|
||||
gzip ${tmpdir}/input
|
||||
${zgrep} line ${tmpdir}/input.gz | diff $p/test14.gnu.out -
|
||||
rm -rf ${tmpdir}
|
||||
echo ""
|
||||
|
||||
# Test 15: Don't print out information about non-existent files
|
||||
#
|
||||
echo "15. Ignore non-existent files (-s)"
|
||||
${grep} -s foobar $p/notexistent | diff /dev/null -
|
||||
echo ""
|
||||
|
||||
# Test 16: Context output with -z
|
||||
#
|
||||
echo "16. Context output with -z"
|
||||
tmpdir=`mktemp -d /tmp/greptest.XXXXXX` || exit 1;
|
||||
printf "haddock\000cod\000plaice\000" > ${tmpdir}/test1
|
||||
printf "mackeral\000cod\000crab\000" > ${tmpdir}/test2
|
||||
(cd ${tmpdir} && ${grep} -z -A1 cod test1 test2) | diff $p/test16a.gnu.out -
|
||||
(cd ${tmpdir} && ${grep} -z -B1 cod test1 test2) | diff $p/test16b.gnu.out -
|
||||
(cd ${tmpdir} && ${grep} -z -C1 cod test1 test2) | diff $p/test16c.gnu.out -
|
||||
rm -rf ${tmpdir}
|
||||
echo ""
|
||||
|
@ -1,12 +0,0 @@
|
||||
dot.separated@words
|
||||
kkseparatedkk
|
||||
Front of the line
|
||||
This is a another line with a Front and an ending
|
||||
Special characters [, $, ^, *
|
||||
Here is another ending.
|
||||
|
||||
Mostly I prefer lower case to upper case,
|
||||
but UpPeR cAsE has its merits too.
|
||||
|
||||
matchme
|
||||
|
@ -1,10 +0,0 @@
|
||||
|
||||
fish
|
||||
fish
|
||||
dog
|
||||
cat
|
||||
fish
|
||||
fish
|
||||
|
||||
poodle
|
||||
fish
|
@ -1,119 +0,0 @@
|
||||
aa
|
||||
aal
|
||||
aalii
|
||||
aam
|
||||
aardvark
|
||||
aardwolf
|
||||
Afrikaans
|
||||
ahaaina
|
||||
Alcaaba
|
||||
amaas
|
||||
assbaa
|
||||
baa
|
||||
baahling
|
||||
Baal
|
||||
baal
|
||||
Baalath
|
||||
Baalish
|
||||
Baalism
|
||||
Baalist
|
||||
Baalite
|
||||
Baalitical
|
||||
Baalize
|
||||
Baalshem
|
||||
baar
|
||||
Balaam
|
||||
Balaamite
|
||||
Balaamitical
|
||||
balmacaan
|
||||
Bastaard
|
||||
bataan
|
||||
baviaantje
|
||||
bazaar
|
||||
berghaan
|
||||
Bilaan
|
||||
caam
|
||||
caama
|
||||
caaming
|
||||
caapeba
|
||||
caatinga
|
||||
cabaan
|
||||
Canaan
|
||||
Canaanite
|
||||
Canaanitess
|
||||
Canaanitic
|
||||
Canaanitish
|
||||
chaa
|
||||
daalder
|
||||
Danaan
|
||||
encraal
|
||||
enkraal
|
||||
golandaas
|
||||
Graafian
|
||||
haab
|
||||
haaf
|
||||
heemraad
|
||||
Isaac
|
||||
Jaalin
|
||||
knorhaan
|
||||
kraal
|
||||
laager
|
||||
laang
|
||||
Landsmaal
|
||||
maam
|
||||
maamselle
|
||||
macaasim
|
||||
malaanonang
|
||||
molengraaffite
|
||||
mushaa
|
||||
naa
|
||||
naam
|
||||
Naaman
|
||||
Naassenes
|
||||
nagmaal
|
||||
paal
|
||||
paar
|
||||
paauw
|
||||
paraaminobenzoic
|
||||
praam
|
||||
raad
|
||||
raash
|
||||
reaal
|
||||
Rigsmaal
|
||||
Riksmaal
|
||||
saa
|
||||
Saan
|
||||
Saarbrucken
|
||||
salaam
|
||||
salaamlike
|
||||
Sangraal
|
||||
saraad
|
||||
schaapsteker
|
||||
schoolmaam
|
||||
schoolmaamish
|
||||
Senaah
|
||||
shaatnez
|
||||
skokiaan
|
||||
springhaas
|
||||
staab
|
||||
Staatsrat
|
||||
taa
|
||||
Taal
|
||||
Taalbond
|
||||
taar
|
||||
Takhaar
|
||||
taysaam
|
||||
teewhaap
|
||||
tetraamylose
|
||||
transvaal
|
||||
Transvaaler
|
||||
Transvaalian
|
||||
Tzaam
|
||||
vaagmer
|
||||
vaalite
|
||||
Vaalpens
|
||||
Waac
|
||||
waag
|
||||
waapa
|
||||
waar
|
||||
Waasi
|
@ -1,5 +0,0 @@
|
||||
A pig is a pal, who'll boost your morale,
|
||||
Though mountains may topple and tilt.
|
||||
When they've blackballed, bamboozled, and burned you,
|
||||
When they've turned on you, Tory and Whig,
|
||||
Though you may be thrown over by Tabby and Rover,
|
@ -1,4 +0,0 @@
|
||||
Though mountains may topple and tilt.
|
||||
When they've blackballed, bamboozled, and burned you,
|
||||
When they've turned on you, Tory and Whig,
|
||||
Though you may be thrown over by Tabby and Rover,
|
@ -1,5 +0,0 @@
|
||||
Boar, sow, barrow, or gilt --
|
||||
A pig is a pal, who'll boost your morale,
|
||||
Though mountains may topple and tilt.
|
||||
When they've blackballed, bamboozled, and burned you,
|
||||
When they've turned on you, Tory and Whig,
|
@ -1,13 +0,0 @@
|
||||
contextinput:A pig is a jolly companion,
|
||||
contextinput-Boar, sow, barrow, or gilt --
|
||||
contextinput:A pig is a pal, who'll boost your morale,
|
||||
contextinput-Though mountains may topple and tilt.
|
||||
--
|
||||
contextinput-Though you may be thrown over by Tabby and Rover,
|
||||
contextinput:You'll never go wrong with a pig, a pig,
|
||||
contextinput:You'll never go wrong with a pig!
|
||||
contextinput- -- Thomas Pynchon, "Gravity's Rainbow"
|
||||
--
|
||||
contextinput1-This is to test output of context from multiple files.
|
||||
contextinput1:Dave was a happy pig who wandered around the orchard eating
|
||||
contextinput1-apples all day long.
|
@ -1 +0,0 @@
|
||||
Special characters [, $, ^, *
|
@ -1,2 +0,0 @@
|
||||
Front of the line
|
||||
This is a another line with a Front and an ending
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
Binary file /bin/sh matches
|
@ -1,2 +0,0 @@
|
||||
recurse/a/f/favourite-fish:haddock
|
||||
recurse/d/fish:haddock
|
@ -1,3 +0,0 @@
|
||||
grep: warning: test/c/d/d: recursive directory loop
|
||||
|
||||
test/c/match:Test string
|
@ -1 +0,0 @@
|
||||
dot.separated@words
|
@ -1 +0,0 @@
|
||||
Front of the line
|
@ -1 +0,0 @@
|
||||
This is a another line with a Front and an ending
|
@ -1,2 +0,0 @@
|
||||
Mostly I prefer lower case to upper case,
|
||||
but UpPeR cAsE has its merits too.
|
@ -1,5 +0,0 @@
|
||||
|
||||
dog
|
||||
cat
|
||||
|
||||
poodle
|
@ -1 +0,0 @@
|
||||
matchme
|
@ -1,7 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2005/02/21 20:08:18 yamt Exp $
|
||||
|
||||
SUBDIR+= test
|
||||
SUBDIR+= concatenated
|
||||
SUBDIR+= pipe
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,3 +0,0 @@
|
||||
# $NetBSD: Makefile.inc,v 1.3 2006/05/29 16:47:07 simonb Exp $
|
||||
|
||||
GZIPPROG?= gzip
|
@ -1,18 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2006/05/29 16:47:07 simonb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
CLEANFILES= ab1 ab2 bc1 bc2
|
||||
|
||||
regress:
|
||||
@echo -n aaaabbbb > ab1
|
||||
@(echo -n aaaa | ${GZIPPROG} ; echo -n bbbb | ${GZIPPROG}) | \
|
||||
${GZIPPROG} -d > ab2
|
||||
@cmp ab1 ab2
|
||||
@echo -n bbbb > bc1
|
||||
@(true | ${GZIPPROG} ; cat bc1 | ${GZIPPROG}) | ${GZIPPROG} -d > bc2
|
||||
@cmp bc1 bc2
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,11 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2006/05/29 16:47:07 simonb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
regress:
|
||||
dd if=/dev/zero count=102400 2> /dev/null | ${GZIPPROG} -c | \
|
||||
dd bs=1 2> /dev/null | ${GZIPPROG} -tc
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,20 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2006/05/29 16:47:07 simonb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
BADINPUTS= truncated.gz crcerror.gz
|
||||
GOODINPUTS= good.gz
|
||||
UUDECODE_FILES= ${BADINPUTS} ${GOODINPUTS}
|
||||
|
||||
regress: ${BADINPUTS} ${GOODINPUTS}
|
||||
.for x in ${BADINPUTS}
|
||||
@sh -c "if ${GZIPPROG} -t ${x}; then false; else true; fi"
|
||||
@echo "# Errors messages above are expected."
|
||||
.endfor
|
||||
.for x in ${GOODINPUTS}
|
||||
@${GZIPPROG} -t ${x}
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,4 +0,0 @@
|
||||
begin 644 crcerror.gz
|
||||
9'XL(`````````TM,2D[A`@"LI%A8!0```.6_
|
||||
`
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
begin 644 good.gz
|
||||
>'XL(""\&\4```V%B8V0`2TQ*3N$"`*RDBE@%````
|
||||
`
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
begin 644 truncated.gz
|
||||
6'XL(`````````TM,2D[A`@"LI(I8"@0(
|
||||
`
|
||||
end
|
@ -1,19 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.6 2004/03/19 08:07:28 jmc Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
UUDECODE_FILES= ff_after_dnl.m4
|
||||
|
||||
regress: test-ff_after_dnl test-m4wrap test-m4wrap-P
|
||||
|
||||
test-ff_after_dnl: ff_after_dnl.m4
|
||||
m4 ff_after_dnl.m4 | diff ${.CURDIR}/ff_after_dnl.out -
|
||||
|
||||
test-m4wrap:
|
||||
m4 ${.CURDIR}/m4wrap.m4 | diff ${.CURDIR}/m4wrap.out -
|
||||
|
||||
test-m4wrap-P:
|
||||
m4 -P ${.CURDIR}/m4wrap-P.m4 | diff ${.CURDIR}/m4wrap-P.out -
|
||||
|
||||
.include <bsd.files.mk>
|
||||
.include <bsd.prog.mk>
|
@ -1,9 +0,0 @@
|
||||
$NetBSD: ff_after_dnl.m4.uue,v 1.1 2004/03/19 08:07:29 jmc Exp $
|
||||
|
||||
begin 644 ff_after_dnl.m4
|
||||
M"0E42$E3(%-(3U5,1"!32$]7(%50("A,24Y%(#$I"F1N;`D)5$A)4R!32$]5
|
||||
M3$0@3D]4(%-(3U<@55`@*$Q)3D4@,BD*9&YL_PD)5$A)4R!32$]53$0@3D]4
|
||||
M(%-(3U<@55`@*$Q)3D4@,RD*9&YL"?\)5$A)4R!32$]53$0@3D]4(%-(3U<@
|
||||
K55`@*$Q)3D4@-"D*"0E42$E3(%-(3U5,1"!32$]7(%50("A,24Y%(#4I"E<@
|
||||
`
|
||||
end
|
@ -1,2 +0,0 @@
|
||||
THIS SHOULD SHOW UP (LINE 1)
|
||||
THIS SHOULD SHOW UP (LINE 5)
|
@ -1,5 +0,0 @@
|
||||
m4_dnl $NetBSD: m4wrap-P.m4,v 1.1 2002/03/04 13:17:32 lukem Exp $
|
||||
m4_define(`ateof', `TEXT AT EOF
|
||||
')m4_dnl
|
||||
m4_m4wrap(`ateof()')m4_dnl
|
||||
TEXT IN BODY
|
@ -1,2 +0,0 @@
|
||||
TEXT IN BODY
|
||||
TEXT AT EOF
|
@ -1,5 +0,0 @@
|
||||
dnl $NetBSD: m4wrap.m4,v 1.1 1997/12/30 23:30:57 cgd Exp $
|
||||
define(`ateof', `TEXT AT EOF
|
||||
')dnl
|
||||
m4wrap(`ateof()')dnl
|
||||
TEXT IN BODY
|
@ -1,2 +0,0 @@
|
||||
TEXT IN BODY
|
||||
TEXT AT EOF
|
@ -1,9 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.1 2003/08/08 06:42:40 sjg Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
regress:
|
||||
@${MAKE} -f ${.CURDIR:H:H:H}/usr.bin/make/unit-tests/Makefile test
|
||||
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,5 +0,0 @@
|
||||
This test fails if you use the build.sh generated make wrapper, i.e.
|
||||
${TOOLDIR}/bin/nbmake-${ARCH}. This wrapper passes -de to make, which alters
|
||||
the output, so it does not match the expected output any more.
|
||||
|
||||
Using ${TOOLDIR}/bin/bnmake itself works, though.
|
@ -1,100 +0,0 @@
|
||||
Policy: /usr/bin/lynx, Emulation: native Policy: /usr/bin/lynx, Emulation: native
|
||||
> native-issetugid: permit
|
||||
> native-mprotect: permit
|
||||
> native-mmap: permit
|
||||
native-__sysctl: permit native-__sysctl: permit
|
||||
> native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
> native-fstat: permit
|
||||
native-close: permit native-close: permit
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-fsread: filename match "/usr/lib/libssl.so.*" then
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-read: permit
|
||||
native-exit: permit | native-fsread: filename match "/usr/lib/libcrypto.so.*" t
|
||||
native-fcntl: cmd eq "F_SETFD" then permit | native-fsread: filename match "/usr/lib/libncurses.so.*"
|
||||
native-fsread: filename eq "/" then permit | native-fsread: filename match "/usr/lib/libc.so.*" then p
|
||||
native-fsread: filename match "/<non-existent filename>: | native-munmap: permit
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit | native-sigprocmask: permit
|
||||
native-fsread: filename eq "/etc/malloc.conf" then permit native-fsread: filename eq "/etc/malloc.conf" then permit
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-getpid: permit
|
||||
native-fsread: filename eq "/etc/utmp" then permit <
|
||||
native-fsread: filename eq "/home" then permit <
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "$HOME/.lynxrc" then permit <
|
||||
native-fsread: filename eq "$HOME/.mailcap" then permit <
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "/obj" then permit <
|
||||
native-fsread: filename eq "/tmp" then permit native-fsread: filename eq "/tmp" then permit
|
||||
native-fsread: filename match "/tmp/lynx-*/." then permit native-fswrite: filename match "/tmp/lynx-*" then permit
|
||||
) native-fsread: filename match "/tmp/lynx-*/." then permit
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
> native-fsread: filename eq "/" then permit
|
||||
> native-fsread: filename eq "/usr/obj/bin/systrace/." then
|
||||
> native-fsread: filename eq "/usr/obj/bin" then permit
|
||||
> native-fcntl: permit
|
||||
> native-getdirentries: permit
|
||||
> native-lseek: permit
|
||||
> native-fsread: filename eq "/usr/obj" then permit
|
||||
native-fsread: filename eq "/usr" then permit native-fsread: filename eq "/usr" then permit
|
||||
native-fsread: filename eq "/usr/bin" then permit native-fsread: filename eq "/usr/bin" then permit
|
||||
native-fsread: filename eq "/usr/games" then permit native-fsread: filename eq "/usr/games" then permit
|
||||
native-fsread: filename eq "/usr/include" then permit native-fsread: filename eq "/usr/include" then permit
|
||||
native-fsread: filename eq "/usr/lib" then permit native-fsread: filename eq "/usr/lib" then permit
|
||||
native-fsread: filename match "/usr/lib/libc.so.*" then p native-fsread: filename eq "/usr/libdata" then permit
|
||||
native-fsread: filename match "/usr/lib/libcrypto.so.*" t native-fsread: filename eq "/usr/libexec" then permit
|
||||
native-fsread: filename match "/usr/lib/libncurses.so.*" native-fsread: filename eq "/usr/lkm" then permit
|
||||
native-fsread: filename match "/usr/lib/libssl.so.*" then native-fsread: filename eq "/usr/local" then permit
|
||||
native-fsread: filename eq "/usr/libdata" then permit native-fsread: filename eq "/usr/mdec" then permit
|
||||
native-fsread: filename eq "/usr/libexec" then permit native-fsread: filename eq "/home" then permit
|
||||
native-fsread: filename eq "/usr/lkm" then permit native-fsread: filename eq "/obj" then permit
|
||||
native-fsread: filename eq "/usr/local" then permit native-fsread: filename eq "$HOME/.lynxrc" then permit
|
||||
native-fsread: filename eq "/usr/mdec" then permit native-fsread: filename match "/<non-existent filename>:
|
||||
native-fsread: filename eq "/usr/obj" then permit native-fsread: filename eq "/usr/obj/bin/systrace/.mailca
|
||||
native-fsread: filename eq "/usr/obj/bin" then permit native-fsread: filename eq "$HOME/.mailcap" then permit
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/." then native-fsread: filename eq "/usr/obj/bin/systrace/.mime.t
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mailca (
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mime.t (
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-sigaction: permit
|
||||
> native-ioctl: permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
native-fsread: filename eq "/usr/share/misc/terminfo.db" native-fsread: filename eq "/usr/share/misc/terminfo.db"
|
||||
> native-pread: permit
|
||||
> native-write: permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
native-fsread: filename eq "/var/run/dev.db" then permit native-fsread: filename eq "/var/run/dev.db" then permit
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
|
||||
native-fstat: permit <
|
||||
native-fswrite: filename match "/tmp/lynx-*" then permit <
|
||||
native-getdirentries: permit <
|
||||
native-getpid: permit <
|
||||
native-gettimeofday: permit <
|
||||
native-ioctl: permit <
|
||||
native-issetugid: permit <
|
||||
native-lseek: permit <
|
||||
native-mmap: permit <
|
||||
native-mprotect: prot eq "PROT_READ" then permit <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC" <
|
||||
native-munmap: permit <
|
||||
native-nanosleep: permit <
|
||||
native-poll: permit native-poll: permit
|
||||
native-pread: permit | native-nanosleep: permit
|
||||
native-read: permit | native-gettimeofday: permit
|
||||
native-recvfrom: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
native-select: permit <
|
||||
native-sendto: true then permit <
|
||||
native-sigaction: permit <
|
||||
native-sigprocmask: permit <
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK native-socket: sockdom eq "AF_INET" and socktype eq "SOCK
|
||||
> native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
> native-sendto: true then permit
|
||||
> native-select: permit
|
||||
> native-recvfrom: permit
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK native-socket: sockdom eq "AF_INET" and socktype eq "SOCK
|
||||
native-write: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
> native-exit: permit
|
@ -1,96 +0,0 @@
|
||||
Policy: /usr/bin/lynx, Emulation: native Policy: /usr/bin/lynx, Emulation: native
|
||||
native-issetugid: permit <
|
||||
native-mprotect: permit <
|
||||
native-mmap: permit <
|
||||
native-__sysctl: permit native-__sysctl: permit
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe <
|
||||
native-fstat: permit <
|
||||
native-close: permit native-close: permit
|
||||
native-fsread: filename match "/usr/lib/libssl.so.*" then | native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
native-read: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
native-fsread: filename match "/usr/lib/libcrypto.so.*" t | native-exit: permit
|
||||
native-fsread: filename match "/usr/lib/libncurses.so.*" | native-fcntl: cmd eq "F_SETFD" then permit
|
||||
native-fsread: filename match "/usr/lib/libc.so.*" then p | native-fsread: filename eq "/" then permit
|
||||
native-munmap: permit | native-fsread: filename match "/<non-existent filename>:
|
||||
native-sigprocmask: permit | native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
native-fsread: filename eq "/etc/malloc.conf" then permit native-fsread: filename eq "/etc/malloc.conf" then permit
|
||||
native-getpid: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
> native-fsread: filename eq "/etc/utmp" then permit
|
||||
> native-fsread: filename eq "/home" then permit
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
> native-fsread: filename eq "$HOME/.lynxrc" then permit
|
||||
> native-fsread: filename eq "$HOME/.mailcap" then permit
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "/obj" then permit
|
||||
native-fsread: filename eq "/tmp" then permit native-fsread: filename eq "/tmp" then permit
|
||||
native-fswrite: filename match "/tmp/lynx-*" then permit native-fsread: filename match "/tmp/lynx-*/." then permit
|
||||
native-fsread: filename match "/tmp/lynx-*/." then permit (
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit <
|
||||
native-fsread: filename eq "/" then permit <
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/." then <
|
||||
native-fsread: filename eq "/usr/obj/bin" then permit <
|
||||
native-fcntl: permit <
|
||||
native-getdirentries: permit <
|
||||
native-lseek: permit <
|
||||
native-fsread: filename eq "/usr/obj" then permit <
|
||||
native-fsread: filename eq "/usr" then permit native-fsread: filename eq "/usr" then permit
|
||||
native-fsread: filename eq "/usr/bin" then permit native-fsread: filename eq "/usr/bin" then permit
|
||||
native-fsread: filename eq "/usr/games" then permit native-fsread: filename eq "/usr/games" then permit
|
||||
native-fsread: filename eq "/usr/include" then permit native-fsread: filename eq "/usr/include" then permit
|
||||
native-fsread: filename eq "/usr/lib" then permit native-fsread: filename eq "/usr/lib" then permit
|
||||
native-fsread: filename eq "/usr/libdata" then permit native-fsread: filename match "/usr/lib/libc.so.*" then p
|
||||
native-fsread: filename eq "/usr/libexec" then permit native-fsread: filename match "/usr/lib/libcrypto.so.*" t
|
||||
native-fsread: filename eq "/usr/lkm" then permit native-fsread: filename match "/usr/lib/libncurses.so.*"
|
||||
native-fsread: filename eq "/usr/local" then permit native-fsread: filename match "/usr/lib/libssl.so.*" then
|
||||
native-fsread: filename eq "/usr/mdec" then permit native-fsread: filename eq "/usr/libdata" then permit
|
||||
native-fsread: filename eq "/home" then permit native-fsread: filename eq "/usr/libexec" then permit
|
||||
native-fsread: filename eq "/obj" then permit native-fsread: filename eq "/usr/lkm" then permit
|
||||
native-fsread: filename eq "$HOME/.lynxrc" then permit native-fsread: filename eq "/usr/local" then permit
|
||||
native-fsread: filename match "/<non-existent filename>: native-fsread: filename eq "/usr/mdec" then permit
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mailca native-fsread: filename eq "/usr/obj" then permit
|
||||
native-fsread: filename eq "$HOME/.mailcap" then permit native-fsread: filename eq "/usr/obj/bin" then permit
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mime.t native-fsread: filename eq "/usr/obj/bin/systrace/." then
|
||||
) native-fsread: filename eq "/usr/obj/bin/systrace/.mailca
|
||||
) native-fsread: filename eq "/usr/obj/bin/systrace/.mime.t
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-sigaction: permit <
|
||||
native-ioctl: permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-fsread: filename eq "/usr/share/misc/terminfo.db" native-fsread: filename eq "/usr/share/misc/terminfo.db"
|
||||
native-pread: permit <
|
||||
native-write: permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "/var/run/dev.db" then permit native-fsread: filename eq "/var/run/dev.db" then permit
|
||||
native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
native-poll: permit | native-fstat: permit
|
||||
native-nanosleep: permit | native-fswrite: filename match "/tmp/lynx-*" then permit
|
||||
> native-getdirentries: permit
|
||||
> native-getpid: permit
|
||||
native-gettimeofday: permit native-gettimeofday: permit
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-ioctl: permit
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK | native-issetugid: permit
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-lseek: permit
|
||||
native-sendto: true then permit | native-mmap: permit
|
||||
native-select: permit | native-mprotect: prot eq "PROT_READ" then permit
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC"
|
||||
> native-munmap: permit
|
||||
> native-nanosleep: permit
|
||||
> native-poll: permit
|
||||
> native-pread: permit
|
||||
> native-read: permit
|
||||
native-recvfrom: permit native-recvfrom: permit
|
||||
> native-select: permit
|
||||
> native-sendto: true then permit
|
||||
> native-sigaction: permit
|
||||
> native-sigprocmask: permit
|
||||
> native-socket: sockdom eq "AF_INET" and socktype eq "SOCK
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK native-socket: sockdom eq "AF_INET" and socktype eq "SOCK
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-write: permit
|
||||
native-exit: permit <
|
@ -1,99 +0,0 @@
|
||||
Policy: /usr/bin/lynx, Emulation: native (
|
||||
> native-issetugid: permit
|
||||
> native-mprotect: permit
|
||||
> native-mmap: permit
|
||||
native-__sysctl: permit (
|
||||
> native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
> native-fstat: permit
|
||||
native-close: permit (
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-fsread: filename match "/usr/lib/libssl.so.*" then
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-read: permit
|
||||
native-exit: permit | native-fsread: filename match "/usr/lib/libcrypto.so.*" t
|
||||
native-fcntl: cmd eq "F_SETFD" then permit | native-fsread: filename match "/usr/lib/libncurses.so.*"
|
||||
native-fsread: filename eq "/" then permit | native-fsread: filename match "/usr/lib/libc.so.*" then p
|
||||
native-fsread: filename match "/<non-existent filename>: | native-munmap: permit
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit | native-sigprocmask: permit
|
||||
native-fsread: filename eq "/etc/malloc.conf" then permit (
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-getpid: permit
|
||||
native-fsread: filename eq "/etc/utmp" then permit <
|
||||
native-fsread: filename eq "/home" then permit <
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "$HOME/.lynxrc" then permit <
|
||||
native-fsread: filename eq "$HOME/.mailcap" then permit <
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "/obj" then permit <
|
||||
native-fsread: filename eq "/tmp" then permit (
|
||||
native-fsread: filename match "/tmp/lynx-*/." then permit (
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
> native-fsread: filename eq "/" then permit
|
||||
> native-fsread: filename eq "/usr/obj/bin/systrace/." then
|
||||
> native-fsread: filename eq "/usr/obj/bin" then permit
|
||||
> native-fcntl: permit
|
||||
> native-getdirentries: permit
|
||||
> native-lseek: permit
|
||||
> native-fsread: filename eq "/usr/obj" then permit
|
||||
native-fsread: filename eq "/usr" then permit (
|
||||
native-fsread: filename eq "/usr/bin" then permit (
|
||||
native-fsread: filename eq "/usr/games" then permit (
|
||||
native-fsread: filename eq "/usr/include" then permit (
|
||||
native-fsread: filename eq "/usr/lib" then permit (
|
||||
native-fsread: filename match "/usr/lib/libc.so.*" then p (
|
||||
native-fsread: filename match "/usr/lib/libcrypto.so.*" t (
|
||||
native-fsread: filename match "/usr/lib/libncurses.so.*" (
|
||||
native-fsread: filename match "/usr/lib/libssl.so.*" then (
|
||||
native-fsread: filename eq "/usr/libdata" then permit (
|
||||
native-fsread: filename eq "/usr/libexec" then permit (
|
||||
native-fsread: filename eq "/usr/lkm" then permit (
|
||||
native-fsread: filename eq "/usr/local" then permit (
|
||||
native-fsread: filename eq "/usr/mdec" then permit (
|
||||
native-fsread: filename eq "/usr/obj" then permit (
|
||||
native-fsread: filename eq "/usr/obj/bin" then permit (
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/." then (
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mailca (
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mime.t (
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-sigaction: permit
|
||||
> native-ioctl: permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
native-fsread: filename eq "/usr/share/misc/terminfo.db" (
|
||||
> native-pread: permit
|
||||
> native-write: permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
native-fsread: filename eq "/var/run/dev.db" then permit (
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
|
||||
native-fstat: permit <
|
||||
native-fswrite: filename match "/tmp/lynx-*" then permit <
|
||||
native-getdirentries: permit <
|
||||
native-getpid: permit <
|
||||
native-gettimeofday: permit <
|
||||
native-ioctl: permit <
|
||||
native-issetugid: permit <
|
||||
native-lseek: permit <
|
||||
native-mmap: permit <
|
||||
native-mprotect: prot eq "PROT_READ" then permit <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC" <
|
||||
native-munmap: permit <
|
||||
native-nanosleep: permit <
|
||||
native-poll: permit (
|
||||
native-pread: permit | native-nanosleep: permit
|
||||
native-read: permit | native-gettimeofday: permit
|
||||
native-recvfrom: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
native-select: permit <
|
||||
native-sendto: true then permit <
|
||||
native-sigaction: permit <
|
||||
native-sigprocmask: permit <
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK (
|
||||
> native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
> native-sendto: true then permit
|
||||
> native-select: permit
|
||||
> native-recvfrom: permit
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK (
|
||||
native-write: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
> native-exit: permit
|
@ -1,94 +0,0 @@
|
||||
Policy: /usr/bin/lynx, Emulation: native (
|
||||
native-issetugid: permit <
|
||||
native-mprotect: permit <
|
||||
native-mmap: permit <
|
||||
native-__sysctl: permit (
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe <
|
||||
native-fstat: permit <
|
||||
native-close: permit (
|
||||
native-fsread: filename match "/usr/lib/libssl.so.*" then | native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
native-read: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
native-fsread: filename match "/usr/lib/libcrypto.so.*" t | native-exit: permit
|
||||
native-fsread: filename match "/usr/lib/libncurses.so.*" | native-fcntl: cmd eq "F_SETFD" then permit
|
||||
native-fsread: filename match "/usr/lib/libc.so.*" then p | native-fsread: filename eq "/" then permit
|
||||
native-munmap: permit | native-fsread: filename match "/<non-existent filename>:
|
||||
native-sigprocmask: permit | native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
native-fsread: filename eq "/etc/malloc.conf" then permit (
|
||||
native-getpid: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
> native-fsread: filename eq "/etc/utmp" then permit
|
||||
> native-fsread: filename eq "/home" then permit
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
> native-fsread: filename eq "$HOME/.lynxrc" then permit
|
||||
> native-fsread: filename eq "$HOME/.mailcap" then permit
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "/obj" then permit
|
||||
native-fsread: filename eq "/tmp" then permit (
|
||||
native-fswrite: filename match "/tmp/lynx-*" then permit (
|
||||
native-fsread: filename match "/tmp/lynx-*/." then permit (
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit <
|
||||
native-fsread: filename eq "/" then permit <
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/." then <
|
||||
native-fsread: filename eq "/usr/obj/bin" then permit <
|
||||
native-fcntl: permit <
|
||||
native-getdirentries: permit <
|
||||
native-lseek: permit <
|
||||
native-fsread: filename eq "/usr/obj" then permit <
|
||||
native-fsread: filename eq "/usr" then permit (
|
||||
native-fsread: filename eq "/usr/bin" then permit (
|
||||
native-fsread: filename eq "/usr/games" then permit (
|
||||
native-fsread: filename eq "/usr/include" then permit (
|
||||
native-fsread: filename eq "/usr/lib" then permit (
|
||||
native-fsread: filename eq "/usr/libdata" then permit (
|
||||
native-fsread: filename eq "/usr/libexec" then permit (
|
||||
native-fsread: filename eq "/usr/lkm" then permit (
|
||||
native-fsread: filename eq "/usr/local" then permit (
|
||||
native-fsread: filename eq "/usr/mdec" then permit (
|
||||
native-fsread: filename eq "/home" then permit (
|
||||
native-fsread: filename eq "/obj" then permit (
|
||||
native-fsread: filename eq "$HOME/.lynxrc" then permit (
|
||||
native-fsread: filename match "/<non-existent filename>: (
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mailca (
|
||||
native-fsread: filename eq "$HOME/.mailcap" then permit (
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/.mime.t (
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-sigaction: permit <
|
||||
native-ioctl: permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-fsread: filename eq "/usr/share/misc/terminfo.db" (
|
||||
native-pread: permit <
|
||||
native-write: permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "/var/run/dev.db" then permit (
|
||||
native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
native-poll: permit | native-fstat: permit
|
||||
native-nanosleep: permit | native-fswrite: filename match "/tmp/lynx-*" then permit
|
||||
> native-getdirentries: permit
|
||||
> native-getpid: permit
|
||||
native-gettimeofday: permit (
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-ioctl: permit
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK | native-issetugid: permit
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-lseek: permit
|
||||
native-sendto: true then permit | native-mmap: permit
|
||||
native-select: permit | native-mprotect: prot eq "PROT_READ" then permit
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC"
|
||||
> native-munmap: permit
|
||||
> native-nanosleep: permit
|
||||
> native-poll: permit
|
||||
> native-pread: permit
|
||||
> native-read: permit
|
||||
native-recvfrom: permit (
|
||||
> native-select: permit
|
||||
> native-sendto: true then permit
|
||||
> native-sigaction: permit
|
||||
> native-sigprocmask: permit
|
||||
> native-socket: sockdom eq "AF_INET" and socktype eq "SOCK
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK (
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-write: permit
|
||||
native-exit: permit <
|
@ -1,69 +0,0 @@
|
||||
> native-issetugid: permit
|
||||
> native-mprotect: permit
|
||||
> native-mmap: permit
|
||||
> native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
> native-fstat: permit
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-fsread: filename match "/usr/lib/libssl.so.*" then
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-read: permit
|
||||
native-exit: permit | native-fsread: filename match "/usr/lib/libcrypto.so.*" t
|
||||
native-fcntl: cmd eq "F_SETFD" then permit | native-fsread: filename match "/usr/lib/libncurses.so.*"
|
||||
native-fsread: filename eq "/" then permit | native-fsread: filename match "/usr/lib/libc.so.*" then p
|
||||
native-fsread: filename match "/<non-existent filename>: | native-munmap: permit
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit | native-sigprocmask: permit
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-getpid: permit
|
||||
native-fsread: filename eq "/etc/utmp" then permit <
|
||||
native-fsread: filename eq "/home" then permit <
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "$HOME/.lynxrc" then permit <
|
||||
native-fsread: filename eq "$HOME/.mailcap" then permit <
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "/obj" then permit <
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
> native-fsread: filename eq "/" then permit
|
||||
> native-fsread: filename eq "/usr/obj/bin/systrace/." then
|
||||
> native-fsread: filename eq "/usr/obj/bin" then permit
|
||||
> native-fcntl: permit
|
||||
> native-getdirentries: permit
|
||||
> native-lseek: permit
|
||||
> native-fsread: filename eq "/usr/obj" then permit
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-sigaction: permit
|
||||
> native-ioctl: permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
> native-pread: permit
|
||||
> native-write: permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
|
||||
native-fstat: permit <
|
||||
native-fswrite: filename match "/tmp/lynx-*" then permit <
|
||||
native-getdirentries: permit <
|
||||
native-getpid: permit <
|
||||
native-gettimeofday: permit <
|
||||
native-ioctl: permit <
|
||||
native-issetugid: permit <
|
||||
native-lseek: permit <
|
||||
native-mmap: permit <
|
||||
native-mprotect: prot eq "PROT_READ" then permit <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC" <
|
||||
native-munmap: permit <
|
||||
native-nanosleep: permit <
|
||||
native-pread: permit | native-nanosleep: permit
|
||||
native-read: permit | native-gettimeofday: permit
|
||||
native-recvfrom: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
native-select: permit <
|
||||
native-sendto: true then permit <
|
||||
native-sigaction: permit <
|
||||
native-sigprocmask: permit <
|
||||
> native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
> native-sendto: true then permit
|
||||
> native-select: permit
|
||||
> native-recvfrom: permit
|
||||
native-write: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
> native-exit: permit
|
@ -1,65 +0,0 @@
|
||||
native-issetugid: permit <
|
||||
native-mprotect: permit <
|
||||
native-mmap: permit <
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe <
|
||||
native-fstat: permit <
|
||||
native-fsread: filename match "/usr/lib/libssl.so.*" then | native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
native-read: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
native-fsread: filename match "/usr/lib/libcrypto.so.*" t | native-exit: permit
|
||||
native-fsread: filename match "/usr/lib/libncurses.so.*" | native-fcntl: cmd eq "F_SETFD" then permit
|
||||
native-fsread: filename match "/usr/lib/libc.so.*" then p | native-fsread: filename eq "/" then permit
|
||||
native-munmap: permit | native-fsread: filename match "/<non-existent filename>:
|
||||
native-sigprocmask: permit | native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
native-getpid: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
> native-fsread: filename eq "/etc/utmp" then permit
|
||||
> native-fsread: filename eq "/home" then permit
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
> native-fsread: filename eq "$HOME/.lynxrc" then permit
|
||||
> native-fsread: filename eq "$HOME/.mailcap" then permit
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "/obj" then permit
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit <
|
||||
native-fsread: filename eq "/" then permit <
|
||||
native-fsread: filename eq "/usr/obj/bin/systrace/." then <
|
||||
native-fsread: filename eq "/usr/obj/bin" then permit <
|
||||
native-fcntl: permit <
|
||||
native-getdirentries: permit <
|
||||
native-lseek: permit <
|
||||
native-fsread: filename eq "/usr/obj" then permit <
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-sigaction: permit <
|
||||
native-ioctl: permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-pread: permit <
|
||||
native-write: permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
native-poll: permit | native-fstat: permit
|
||||
native-nanosleep: permit | native-fswrite: filename match "/tmp/lynx-*" then permit
|
||||
> native-getdirentries: permit
|
||||
> native-getpid: permit
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-ioctl: permit
|
||||
native-socket: sockdom eq "AF_INET" and socktype eq "SOCK | native-issetugid: permit
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-lseek: permit
|
||||
native-sendto: true then permit | native-mmap: permit
|
||||
native-select: permit | native-mprotect: prot eq "PROT_READ" then permit
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm
|
||||
> native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC"
|
||||
> native-munmap: permit
|
||||
> native-nanosleep: permit
|
||||
> native-poll: permit
|
||||
> native-pread: permit
|
||||
> native-read: permit
|
||||
> native-select: permit
|
||||
> native-sendto: true then permit
|
||||
> native-sigaction: permit
|
||||
> native-sigprocmask: permit
|
||||
> native-socket: sockdom eq "AF_INET" and socktype eq "SOCK
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-write: permit
|
||||
native-exit: permit <
|
@ -1,69 +0,0 @@
|
||||
> native-issetugid: permit
|
||||
> native-mprotect: permit
|
||||
> native-mmap: permit
|
||||
> native-fsread: filename eq "/var/run/ld.so.hints" then pe
|
||||
> native-fstat: permit
|
||||
native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe | native-fsread: filename match "/usr/lib/libssl.so.*" then
|
||||
native-connect: sockaddr match "inet-\\\[*\\\]:80" then p | native-read: permit
|
||||
native-exit: permit | native-fsread: filename match "/usr/lib/libcrypto.so.*" t
|
||||
native-fcntl: cmd eq "F_SETFD" then permit | native-fsread: filename match "/usr/lib/libncurses.so.*"
|
||||
native-fsread: filename eq "/" then permit | native-fsread: filename match "/usr/lib/libc.so.*" then p
|
||||
native-fsread: filename match "/<non-existent filename>: | native-munmap: permit
|
||||
native-fsread: filename eq "/etc/lynx.cfg" then permit | native-sigprocmask: permit
|
||||
native-fsread: filename eq "/etc/resolv.conf" then permit | native-getpid: permit
|
||||
native-fsread: filename eq "/etc/utmp" then permit <
|
||||
native-fsread: filename eq "/home" then permit <
|
||||
native-fsread: filename eq "$HOME" then permit <
|
||||
native-fsread: filename eq "$HOME/.lynx-keymaps" then per <
|
||||
native-fsread: filename eq "$HOME/.lynxrc" then permit <
|
||||
native-fsread: filename eq "$HOME/.mailcap" then permit <
|
||||
native-fsread: filename eq "$HOME/.mime.types" then permi <
|
||||
native-fsread: filename eq "$HOME/.terminfo" then permit <
|
||||
native-fsread: filename eq "$HOME/.terminfo.db" then perm <
|
||||
native-fsread: filename eq "/obj" then permit <
|
||||
> native-fsread: filename eq "$HOME" then permit
|
||||
> native-fsread: filename eq "/etc/lynx.cfg" then permit
|
||||
> native-fsread: filename eq "/" then permit
|
||||
> native-fsread: filename eq "/usr/obj/bin/systrace/." then
|
||||
> native-fsread: filename eq "/usr/obj/bin" then permit
|
||||
> native-fcntl: permit
|
||||
> native-getdirentries: permit
|
||||
> native-lseek: permit
|
||||
> native-fsread: filename eq "/usr/obj" then permit
|
||||
> native-fsread: filename eq "$HOME/.mime.types" then permi
|
||||
> native-sigaction: permit
|
||||
> native-ioctl: permit
|
||||
> native-fsread: filename eq "$HOME/.terminfo.db" then perm
|
||||
> native-fsread: filename eq "$HOME/.terminfo" then permit
|
||||
> native-pread: permit
|
||||
> native-write: permit
|
||||
> native-fsread: filename eq "$HOME/.lynx-keymaps" then per
|
||||
native-fsread: filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
|
||||
native-fstat: permit <
|
||||
native-fswrite: filename match "/tmp/lynx-*" then permit <
|
||||
native-getdirentries: permit <
|
||||
native-getpid: permit <
|
||||
native-gettimeofday: permit <
|
||||
native-ioctl: permit <
|
||||
native-issetugid: permit <
|
||||
native-lseek: permit <
|
||||
native-mmap: permit <
|
||||
native-mprotect: prot eq "PROT_READ" then permit <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_EXEC" then permi <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE" then perm <
|
||||
native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC" <
|
||||
native-munmap: permit <
|
||||
native-nanosleep: permit <
|
||||
native-pread: permit | native-nanosleep: permit
|
||||
native-read: permit | native-gettimeofday: permit
|
||||
native-recvfrom: permit | native-fsread: filename eq "/etc/resolv.conf" then permit
|
||||
native-select: permit <
|
||||
native-sendto: true then permit <
|
||||
native-sigaction: permit <
|
||||
native-sigprocmask: permit <
|
||||
> native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe
|
||||
> native-sendto: true then permit
|
||||
> native-select: permit
|
||||
> native-recvfrom: permit
|
||||
native-write: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p
|
||||
> native-exit: permit
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user