Lines Matching refs:logfile
26 local logfile="${PWD}/unix.log"
28 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
34 tail -n 1 "${logfile}"
48 local logfile="${PWD}/inet.log"
53 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
60 tail -n 1 "${logfile}"
74 local logfile="${PWD}/inet6.log"
79 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
86 tail -n 1 "${logfile}"
100 logfile="${PWD}/reload.log"
101 printf "user.debug\t/${logfile}\n" > "${SYSLOGD_CONFIG}"
106 atf_check -s exit:0 -o match:"reload: pre-reload" tail -n 1 "${logfile}"
109 truncate -s 0 "${logfile}"
110 printf "news.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
117 atf_check -s exit:0 -o not-match:"reload: post-reload user" cat ${logfile}
118 atf_check -s exit:0 -o match:"reload: post-reload news" cat ${logfile}
132 logfile="${PWD}/prog_filter.log"
133 printf "!prog1,prog2\nuser.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
140 atf_check -s exit:0 -o match:"prog1: hello this is prog1" cat "${logfile}"
141 atf_check -s exit:0 -o match:"prog2: hello this is prog2" cat "${logfile}"
142 atf_check -s exit:0 -o not-match:"prog3: hello this is prog3" cat "${logfile}"
145 truncate -s 0 ${logfile}
146 printf "!-prog1,prog2\nuser.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
153 atf_check -s exit:0 -o not-match:"prog1: hello this is prog1" cat "${logfile}"
154 atf_check -s exit:0 -o not-match:"prog2: hello this is prog2" cat "${logfile}"
155 atf_check -s exit:0 -o match:"prog3: hello this is prog3" cat "${logfile}"
169 logfile="${PWD}/host_filter.log"
170 printf "+host1,host2\nuser.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
177 atf_check -s exit:0 -o match:"host1: hello this is host1" cat "${logfile}"
178 atf_check -s exit:0 -o match:"host2: hello this is host2" cat "${logfile}"
179 atf_check -s exit:0 -o not-match:"host3: hello this is host3" cat "${logfile}"
182 truncate -s 0 ${logfile}
183 printf "\-host1,host2\nuser.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
190 atf_check -s exit:0 -o not-match:"host1: hello this is host1" cat "${logfile}"
191 atf_check -s exit:0 -o not-match:"host2: hello this is host2" cat "${logfile}"
192 atf_check -s exit:0 -o match:"host3: hello this is host3" cat "${logfile}"
206 logfile="${PWD}/prop_filter.log"
207 printf ":msg,contains,\"FreeBSD\"\nuser.debug\t${logfile}\n" \
213 atf_check -s exit:0 -o match:"prop1: FreeBSD" cat "${logfile}"
214 atf_check -s exit:0 -o not-match:"prop2: freebsd" cat "${logfile}"
216 truncate -s 0 ${logfile}
217 printf ":msg,!contains,\"FreeBSD\"\nuser.debug\t${logfile}\n" \
223 atf_check -s exit:0 -o not-match:"prop1: FreeBSD" cat "${logfile}"
224 atf_check -s exit:0 -o match:"prop2: freebsd" cat "${logfile}"
226 truncate -s 0 ${logfile}
227 printf ":msg,icase_contains,\"FreeBSD\"\nuser.debug\t${logfile}\n" \
233 atf_check -s exit:0 -o match:"prop1: FreeBSD" cat "${logfile}"
234 atf_check -s exit:0 -o match:"prop2: freebsd" cat "${logfile}"
236 truncate -s 0 ${logfile}
237 printf ":msg,!icase_contains,\"FreeBSD\"\nuser.debug\t${logfile}\n" \
244 atf_check -s exit:0 -o not-match:"prop1: FreeBSD" cat "${logfile}"
245 atf_check -s exit:0 -o not-match:"prop2: freebsd" cat "${logfile}"
246 atf_check -s exit:0 -o match:"prop3: Solaris" cat "${logfile}"
261 local logfile="${PWD}/host_action.log"
267 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
280 cat "${logfile}"
299 logfile="${PWD}/pipe_action.log"
301 with solutions to my problem.\"\n-Saymore Crey" > ${logfile}
304 ${logfile}\n" > "${SYSLOGD_CONFIG}"
309 atf_check -s exit:0 -o match:"Seymour Cray" cat "${logfile}"
324 local logfile
328 logfile="${PWD}/jail_noinet.log"
329 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
334 atf_check -s exit:0 -o match:"test: hello, world" cat "${logfile}"
380 local logfile
384 logfile="${PWD}/jail.log"
385 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
391 atf_check -o match:"test1: hello, world" cat "${logfile}"
395 atf_check -o not-match:"test2: hello, world" cat "${logfile}"
398 atf_check -o not-match:"test2: hello, world" cat "${logfile}"
407 atf_check -o not-match:"test3: hello, world" cat "${logfile}"
410 atf_check -o match:"test4: hello, world" cat "${logfile}"
427 local logfile
435 logfile="${PWD}/jail.log"
436 printf "+169.254.0.2\nuser.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
447 atf_check -o match:"test1: hello, world" cat "${logfile}"
448 atf_check -o not-match:"test2: hello, world" cat "${logfile}"
463 local logfile
467 logfile="${PWD}/jail.log"
468 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
474 atf_check -o match:"test1: hello, world" cat "${logfile}"
478 atf_check -o match:"test2: hello, world" cat "${logfile}"
482 atf_check -o not-match:"test3: hello, world" cat "${logfile}"
485 atf_check -o not-match:"test3: hello, world" cat "${logfile}"
504 local epair logfile
527 logfile="${PWD}/jail.log"
529 user.debug ${logfile}
530 mail.debug ${logfile}
531 ftp.debug ${logfile}
544 atf_check -o match:"test1: hello, world" cat "${logfile}"
545 atf_check -o match:"test2: you've got mail" cat "${logfile}"
546 atf_check -o match:"test3: transfer complete" cat "${logfile}"