diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2016-06-07 19:34:06 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2016-06-07 19:34:06 +0000 |
commit | fc46c6008ef4e69ceef031750ce2d72b49a52189 (patch) | |
tree | 8494a171b62c80329d3587bd7811ff568e220186 | |
parent | 2add52c21a22083f19e8761c28c5569819025477 (diff) |
Replace (remaining) systrace policy files with columns of numbers for
the tab spacing regression test; from Ray Lai.
-rw-r--r-- | regress/usr.bin/sdiff/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/sdiff/tabs.in | 11 | ||||
-rw-r--r-- | regress/usr.bin/sdiff/tabs.out | 113 | ||||
-rw-r--r-- | regress/usr.bin/sdiff/tabs1 | 72 | ||||
-rw-r--r-- | regress/usr.bin/sdiff/tabs2 | 69 |
5 files changed, 25 insertions, 246 deletions
diff --git a/regress/usr.bin/sdiff/Makefile b/regress/usr.bin/sdiff/Makefile index 511f5e895c7..0716c8b1056 100644 --- a/regress/usr.bin/sdiff/Makefile +++ b/regress/usr.bin/sdiff/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2016/05/31 17:28:14 okan Exp $ +# $OpenBSD: Makefile,v 1.4 2016/06/07 19:34:05 okan Exp $ SDIFF?=sdiff REGRESS_TARGETS=test-lflag test-sflag test-wflag \ @@ -51,8 +51,8 @@ test-sflag: file1 file2 sflag.out test-wflag: file1 file2 wflag.out ${SDIFF} -w 40 ${.CURDIR}/file1 ${.CURDIR}/file2 | diff -u ${.CURDIR}/wflag.out - -test-tabs: tabs1 tabs2 tabs.out - ${SDIFF} ${.CURDIR}/tabs1 ${.CURDIR}/tabs2 | diff -u ${.CURDIR}/tabs.out - +test-tabs: tabs.in tabs.out + ${SDIFF} ${.CURDIR}/tabs.in ${.CURDIR}/tabs.in | diff -u ${.CURDIR}/tabs.out - test-tabends: tabends tabends.out ${SDIFF} -w30 ${.CURDIR}/tabends /dev/null | diff -u ${.CURDIR}/tabends.out - diff --git a/regress/usr.bin/sdiff/tabs.in b/regress/usr.bin/sdiff/tabs.in new file mode 100644 index 00000000000..81b28640fbb --- /dev/null +++ b/regress/usr.bin/sdiff/tabs.in @@ -0,0 +1,11 @@ +12345678901234567890123456789012345678901234567890123456789012345678901234567890 + 2345678901234567890123456789012345678901234567890123456789012345678901234567890 +1 345678901234567890123456789012345678901234567890123456789012345678901234567890 +12 45678901234567890123456789012345678901234567890123456789012345678901234567890 +123 5678901234567890123456789012345678901234567890123456789012345678901234567890 +1234 678901234567890123456789012345678901234567890123456789012345678901234567890 +12345 78901234567890123456789012345678901234567890123456789012345678901234567890 +123456 8901234567890123456789012345678901234567890123456789012345678901234567890 +1234567 901234567890123456789012345678901234567890123456789012345678901234567890 +12345678 01234567890123456789012345678901234567890123456789012345678901234567890 +123456789 1234567890123456789012345678901234567890123456789012345678901234567890 diff --git a/regress/usr.bin/sdiff/tabs.out b/regress/usr.bin/sdiff/tabs.out index ed88ce72ea6..b61aa8517aa 100644 --- a/regress/usr.bin/sdiff/tabs.out +++ b/regress/usr.bin/sdiff/tabs.out @@ -1,102 +1,11 @@ -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-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 | native-fsread: filename match "/usr/lib/libssl.so.*" then - native-connect: sockaddr match "inet-\\\[*\\\]:80" then | 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 perm native-fsread: filename eq "/etc/malloc.conf" then permit - native-fsread: filename eq "/etc/resolv.conf" then perm | 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 p < - native-fsread: filename eq "$HOME/.lynxrc" then permit < - native-fsread: filename eq "$HOME/.mailcap" then permit < - native-fsread: filename eq "$HOME/.mime.types" then per < - native-fsread: filename eq "$HOME/.terminfo" then permi < - native-fsread: filename eq "$HOME/.terminfo.db" then pe < - 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 perm 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 < - native-fsread: filename match "/usr/lib/libcrypto.so.*" < - native-fsread: filename match "/usr/lib/libncurses.so.* < - native-fsread: filename match "/usr/lib/libssl.so.*" th < - native-fsread: filename eq "/usr/libdata" then permit native-fsread: filename eq "/usr/libdata" then permit - native-fsread: filename eq "/usr/libexec" then permit native-fsread: filename eq "/usr/libexec" then permit - native-fsread: filename eq "/usr/lkm" then permit native-fsread: filename eq "/usr/lkm" then permit - native-fsread: filename eq "/usr/local" then permit native-fsread: filename eq "/usr/local" then permit - native-fsread: filename eq "/usr/mdec" then permit native-fsread: filename eq "/usr/mdec" then permit - native-fsread: filename eq "/usr/obj" then permit | native-fsread: filename eq "/home" then permit - native-fsread: filename eq "/usr/obj/bin" then permit | native-fsread: filename eq "/obj" then permit - native-fsread: filename eq "/usr/obj/bin/systrace/." th | native-fsread: filename eq "$HOME/.lynxrc" then permit - > native-fsread: filename match "/<non-existent filename>: - native-fsread: filename eq "/usr/obj/bin/systrace/.mail 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 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 permi native-fsread: filename eq "/var/run/dev.db" then permit - native-fsread: filename eq "/var/run/ld.so.hints" then | native-fsread: filename eq "/etc/utmp" then permit - native-fstat: permit < - native-fswrite: filename match "/tmp/lynx-*" then permi < - 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 per < - native-mprotect: prot eq "PROT_READ|PROT_WRITE" then pe < - native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXE < - 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 "SO 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 "SO native-socket: sockdom eq "AF_INET" and socktype eq "SOCK - native-sysctl: permit | native-connect: sockaddr match "inet-\\\[*\\\]:80" then p - native-write: permit | native-exit: permit +123456789012345678901234567890123456789012345678901234567890123 123456789012345678901234567890123456789012345678901234567890123 + 2345678901234567890123456789012345678901234567890123456 234567890123456789012345678901234567890123456789012345678 +1 3456789012345678901234567890123456789012345678901234567 1 345678901234567890123456789012345678901234567890123456789 +12 4567890123456789012345678901234567890123456789012345678 12 456789012345678901234567890123456789012345678901234567890 +123 5678901234567890123456789012345678901234567890123456789 123 567890123456789012345678901234567890123456789012345678901 +1234 6789012345678901234567890123456789012345678901234567890 1234 678901234567890123456789012345678901234567890123456789012 +12345 7890123456789012345678901234567890123456789012345678901 12345 789012345678901234567890123456789012345678901234567890123 +123456 8901234567890123456789012345678901234567890123456789012 123456 8901234567890123456789012345678901234567890123456 +1234567 9012345678901234567890123456789012345678901234567890123 1234567 9012345678901234567890123456789012345678901234567 +12345678 01234567890123456789012345678901234567890123456 12345678 0123456789012345678901234567890123456789012345678 +123456789 12345678901234567890123456789012345678901234567 123456789 1234567890123456789012345678901234567890123456789 diff --git a/regress/usr.bin/sdiff/tabs1 b/regress/usr.bin/sdiff/tabs1 deleted file mode 100644 index b5372530171..00000000000 --- a/regress/usr.bin/sdiff/tabs1 +++ /dev/null @@ -1,72 +0,0 @@ -Policy: /usr/bin/lynx, Emulation: native - native-close: permit - native-connect: sockaddr eq "inet-[127.0.0.1]:53" then permit - native-connect: sockaddr match "inet-\\\[*\\\]:80" then permit - native-exit: permit - native-fcntl: cmd eq "F_SETFD" then permit - native-fsread: filename eq "/" then permit - native-fsread: filename match "/<non-existent filename>: *" then permit - native-fsread: filename eq "/etc/lynx.cfg" then permit - native-fsread: filename eq "/etc/malloc.conf" then 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 permit - native-fsread: filename eq "$HOME/.lynxrc" then permit - native-fsread: filename eq "$HOME/.mailcap" then permit - native-fsread: filename eq "$HOME/.mime.types" then permit - native-fsread: filename eq "$HOME/.terminfo" then permit - native-fsread: filename eq "$HOME/.terminfo.db" then permit - 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 "/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 permit - native-fsread: filename match "/usr/lib/libcrypto.so.*" then permit - native-fsread: filename match "/usr/lib/libncurses.so.*" then permit - native-fsread: filename match "/usr/lib/libssl.so.*" 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 "/usr/obj" then permit - native-fsread: filename eq "/usr/obj/bin" then permit - native-fsread: filename eq "/usr/obj/bin/systrace/." then permit - native-fsread: filename eq "/usr/obj/bin/systrace/.mailcap" then permit - native-fsread: filename eq "/usr/obj/bin/systrace/.mime.types" then permit - native-fsread: filename eq "/usr/share/misc/terminfo.db" then permit - native-fsread: filename eq "/var/run/dev.db" then permit - native-fsread: filename eq "/var/run/ld.so.hints" 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 permit - native-mprotect: prot eq "PROT_READ|PROT_WRITE" then permit - native-mprotect: prot eq "PROT_READ|PROT_WRITE|PROT_EXEC" then permit - 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_DGRAM" then permit - native-socket: sockdom eq "AF_INET" and socktype eq "SOCK_STREAM" then permit - native-sysctl: permit - native-write: permit diff --git a/regress/usr.bin/sdiff/tabs2 b/regress/usr.bin/sdiff/tabs2 deleted file mode 100644 index d2115daba51..00000000000 --- a/regress/usr.bin/sdiff/tabs2 +++ /dev/null @@ -1,69 +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 permit - native-fstat: permit - native-close: permit - native-fsread: filename match "/usr/lib/libssl.so.*" then permit - native-read: permit - native-fsread: filename match "/usr/lib/libcrypto.so.*" then permit - native-fsread: filename match "/usr/lib/libncurses.so.*" then permit - native-fsread: filename match "/usr/lib/libc.so.*" then permit - native-munmap: permit - native-sigprocmask: permit - native-fsread: filename eq "/etc/malloc.conf" then permit - native-getpid: 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 permit - 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>: *" then permit - native-fsread: filename eq "/usr/obj/bin/systrace/.mailcap" then permit - native-fsread: filename eq "$HOME/.mailcap" then permit - native-fsread: filename eq "/usr/obj/bin/systrace/.mime.types" then permit - native-fsread: filename eq "$HOME/.mime.types" then permit - native-sigaction: permit - native-ioctl: permit - native-fsread: filename eq "$HOME/.terminfo.db" then permit - native-fsread: filename eq "$HOME/.terminfo" then permit - native-fsread: filename eq "/usr/share/misc/terminfo.db" then permit - native-pread: permit - native-write: permit - native-fsread: filename eq "$HOME/.lynx-keymaps" then permit - native-fsread: filename eq "/var/run/dev.db" then permit - native-fsread: filename eq "/etc/utmp" then permit - native-poll: permit - native-nanosleep: permit - native-gettimeofday: permit - native-fsread: filename eq "/etc/resolv.conf" then permit - native-socket: sockdom eq "AF_INET" and socktype eq "SOCK_DGRAM" then permit - native-connect: sockaddr eq "inet-[127.0.0.1]:53" then permit - native-sendto: true then permit - native-select: permit - native-recvfrom: permit - native-socket: sockdom eq "AF_INET" and socktype eq "SOCK_STREAM" then permit - native-connect: sockaddr match "inet-\\\[*\\\]:80" then permit - native-exit: permit |