| /freebsd/contrib/netbsd-tests/bin/sh/ |
| H A D | t_arith.sh | 116 atf_check -s exit:0 -o inline:'1\n' -e empty ${TEST_SH} -c \ 118 atf_check -s exit:0 -o inline:'0\n' -e empty ${TEST_SH} -c \ 120 atf_check -s exit:0 -o inline:'0\n' -e empty ${TEST_SH} -c \ 124 atf_check -s exit:0 -o inline:'0\n' -e empty ${TEST_SH} -c \ 128 atf_check -s exit:0 -o inline:'0\n' -e empty ${TEST_SH} -c \ 131 atf_check -s exit:0 -o inline:'1\n' -e empty \ 133 atf_check -s exit:0 -o inline:'0\n' -e empty \ 136 atf_check -s exit:0 -o inline:'99999\n' -e empty \ 140 atf_check -s exit:0 -o inline:'9191919191919\n' -e empty \ 143 atf_check -s exit:0 -o inline:'13\n' -e empty ${TEST_SH} -c \ [all …]
|
| /freebsd/contrib/netbsd-tests/usr.bin/tr/ |
| H A D | t_basic.sh | 40 atf_check -o inline:'abcde\n' -x 'echo abcde | tr -d x' 41 atf_check -o inline:'abde\n' -x 'echo abcde | tr -d c' 42 atf_check -o inline:'ace\n' -x 'echo abcde | tr -d bd' 43 atf_check -o inline:'ae\n' -x 'echo abcde | tr -d b-d' 44 atf_check -o inline:'b\n' -x 'echo abcde | tr -d ac-e' 45 atf_check -o inline:'d\n' -x 'echo abcde | tr -d a-ce' 46 atf_check -o inline:'aei\n' -x 'echo abcdefghi | tr -d b-df-h' 48 atf_check -o inline:'' -x 'echo abcde | tr -c -d x' 49 atf_check -o inline:'c' -x 'echo abcde | tr -c -d c' 50 atf_check -o inline:'bd' -x 'echo abcde | tr -c -d bd' [all …]
|
| /freebsd/contrib/netbsd-tests/net/if/ |
| H A D | t_ifconfig.sh | 50 atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER1} 55 atf_check -s exit:0 rump.ifconfig shmif0 create 56 atf_check -s exit:0 rump.ifconfig shmif0 destroy 59 atf_check -s exit:0 rump.ifconfig shmif0 create 60 atf_check -s exit:0 rump.ifconfig shmif0 linkstr shmbus 61 atf_check -s exit:0 rump.ifconfig shmif0 192.168.0.1/24 62 atf_check -s exit:0 rump.ifconfig shmif0 up 63 atf_check -s exit:0 rump.ifconfig shmif0 destroy 66 atf_check -s exit:0 rump.ifconfig shmif0 create 67 atf_check -s exit:0 rump.ifconfig shmif0 linkstr shmbus [all …]
|
| /freebsd/contrib/pkgconf/tests/ |
| H A D | provides.sh | 26 atf_check \ 29 atf_check \ 32 atf_check \ 41 atf_check \ 44 atf_check \ 47 atf_check \ 50 atf_check \ 53 atf_check \ 58 atf_check \ 63 atf_check \ [all …]
|
| /freebsd/contrib/netbsd-tests/usr.bin/grep/ |
| H A D | t_grep.sh | 35 atf_check -o file:"$(atf_get_srcdir)/d_basic.out" -x \ 48 atf_check -o file:"$(atf_get_srcdir)/d_binary.out" grep foobar test.file 62 atf_check -o file:"$(atf_get_srcdir)/d_recurse.out" -x "grep -r haddock recurse | sort" 82 atf_check -o file:"$(atf_get_srcdir)/d_recurse_symlink.out" \ 94 atf_check -o file:"$(atf_get_srcdir)/d_word_regexps.out" \ 100 atf_check -o inline:"pmatch\n" grep -Eow "(match )?pmatch" test1 111 atf_check -o file:"$(atf_get_srcdir)/d_begin_end_a.out" \ 114 atf_check -o file:"$(atf_get_srcdir)/d_begin_end_b.out" \ 125 atf_check -o file:"$(atf_get_srcdir)/d_ignore_case.out" \ 136 atf_check -o file:"$(atf_get_srcdir)/d_invert.out" \ [all …]
|
| /freebsd/usr.bin/du/tests/ |
| H A D | du_test.sh | 50 atf_check truncate -s 10g sparse.file 51 atf_check -o inline:'1\tsparse.file\n' du -g sparse.file 52 atf_check -o inline:'10\tsparse.file\n' du -A -g sparse.file 67 atf_check mkdir testdir 68 atf_check -x "cd testdir && mkdir A && touch A/B && ln -s A C" 70 atf_check -o save:du.out du -aAH testdir 71 atf_check egrep -q "${lineprefix}$(echo $paths1 | sed -e "s/ /$sep/g")$" du.out 74 atf_check -s exit:1 egrep -vq "${lineprefix}$(echo $paths1 | sed -e "s/ /$sep/g")$" du.out 76 atf_check -o save:du_C.out du -aAH testdir/C 77 atf_check egrep -q "${lineprefix}$(echo $paths2 | sed -e "s/ /$sep/g")$" du_C.out [all …]
|
| /freebsd/bin/cp/tests/ |
| H A D | cp_test.sh | 33 atf_check -o inline:"$sz\n" stat -f '%z' $file 45 atf_check cp bar baz 59 atf_check cp baz foo 60 atf_check test ! -L foo 62 atf_check cmp foo bar 75 atf_check cp /dev/null trunc 77 atf_check cp bar trunc 79 atf_check cp /dev/null trunc 91 atf_check cp -l foo bar 92 atf_check -o inline:"foo\n" cat bar [all …]
|
| /freebsd/usr.bin/diff/tests/ |
| H A D | diff_test.sh | 33 atf_check -o file:$(atf_get_srcdir)/simple.out -s eq:1 \ 36 atf_check -o file:$(atf_get_srcdir)/simple_e.out -s eq:1 \ 39 atf_check -o file:$(atf_get_srcdir)/simple_u.out -s eq:1 \ 42 atf_check -o file:$(atf_get_srcdir)/simple_n.out -s eq:1 \ 45 …atf_check -o inline:"Files $(atf_get_srcdir)/input1.in and $(atf_get_srcdir)/input2.in differ\n" -… 48 atf_check \ 51 atf_check -o file:$(atf_get_srcdir)/simple_i.out -s eq:1 \ 54 atf_check -o file:$(atf_get_srcdir)/simple_w.out -s eq:1 \ 57 atf_check -o file:$(atf_get_srcdir)/simple_b.out -s eq:1 \ 60 atf_check -o file:$(atf_get_srcdir)/simple_p.out -s eq:1 \ [all …]
|
| /freebsd/usr.sbin/pw/tests/ |
| H A D | pw_usermod_test.sh | 10 atf_check -s exit:67 -e match:"no such user" ${PW} usermod test 11 atf_check -s exit:0 ${PW} useradd test 12 atf_check -s exit:0 ${PW} usermod test 13 atf_check -s exit:0 -o match:"^test:.*" \ 22 atf_check -s exit:67 -e match:"no such user" ${PW} usermod test -N 23 atf_check -s exit:0 ${PW} useradd test 24 atf_check -s exit:0 -o match:"^test:.*" ${PW} usermod test -N 25 atf_check -s exit:0 -o match:"^test:.*" \ 34 atf_check -s exit:0 ${PW} useradd test -c "Test User,home,123,456" 35 atf_check -s exit:0 ${PW} usermod test -c "Test User,work,123,456" [all …]
|
| H A D | pw_useradd_test.sh | 9 atf_check -s exit:0 ${PW} useradd test 10 atf_check -s exit:0 -o match:"^test:.*" \ 19 atf_check -s exit:0 -o match:"^test:.*" ${PW} useradd test -N 20 atf_check -s exit:1 -o empty grep "^test:.*" $HOME/master.passwd 28 atf_check -s exit:0 ${PW} useradd test -c 'Test User,work!,123,user@example.com' 29 atf_check -s exit:0 -o match:'^test:.*:Test User,work!,123,user@example.com:' \ 38 atf_check -s exit:0 -o match:"^test:.*:Test User,work,123,456:" \ 40 atf_check -s exit:1 -o empty grep "^test:.*" $HOME/master.passwd 48 atf_check -s exit:65 -e match:"invalid character" \ 50 atf_check -s exit:1 -o empty \ [all …]
|
| H A D | pw_groupmod_test.sh | 10 atf_check -s exit:0 ${PW} addgroup test 11 atf_check -s exit:0 ${PW} groupmod test -m root 12 atf_check -s exit:0 -o match:"^test:\*:1001:root$" \ 14 atf_check -s exit:0 ${PW} groupmod test -d root 15 atf_check -s exit:0 -o match:"^test:\*:1001:$" \ 24 atf_check -s exit:0 ${PW} addgroup test 25 atf_check -s exit:67 -e match:"does not exist" ${PW} groupmod test -m foo 26 atf_check -s exit:0 ${PW} groupmod test -d foo 35 atf_check -s exit:0 -x ${PW} groupadd test 36 atf_check -s exit:0 -x ${PW} groupmod test -l newgroupname [all …]
|
| /freebsd/usr.bin/find/tests/ |
| H A D | find_test.sh | 39 atf_check -s exit:0 mkdir test 40 atf_check -s exit:0 ln -s file1 test/link 41 atf_check -s exit:0 touch -d 2017-12-31T10:00:00Z -h test/link 42 atf_check -s exit:0 touch -d 2017-12-31T11:00:00Z test/file2 43 atf_check -s exit:0 touch -d 2017-12-31T12:00:00Z test/file1 49 atf_check -s exit:0 -o save:output find test -newer test/link 50 atf_check -s exit:0 -o file:expout sort < output 61 atf_check -s exit:0 mkdir test 62 atf_check -s exit:0 touch test/file3 63 atf_check -s exit:0 ln -s file3 test/link2 [all …]
|
| /freebsd/tests/sys/kern/ |
| H A D | jailmeta.sh | 29 atf_check -s not-exit:0 -e match:"not found" -o ignore \ 32 atf_check -s exit:0 \ 35 atf_check -s exit:0 -o inline:"a b c\n" \ 37 atf_check -s exit:0 -o inline:"C B A\n" \ 57 atf_check -s not-exit:0 -e match:"not found" -o ignore \ 60 atf_check -s exit:0 \ 63 atf_check -s exit:0 -o inline:"a b c\n" \ 65 atf_check -s exit:0 -o inline:"CAB\n" \ 68 atf_check -s exit:0 \ 71 atf_check -s exit:0 -o inline:"t1=A t2=B\n" \ [all …]
|
| /freebsd/usr.sbin/sysrc/tests/ |
| H A D | sysrc_test.sh | 22 atf_check -o inline:"test_enable: NO\n" \ 24 atf_check -o inline:"test2_list: \n" \ 26 atf_check -o inline:"test_enable: NO\ntest_list: item1 item2\n" \ 28 atf_check -e inline:"sysrc: unknown variable 'noexist'\n" \ 30 atf_check -e inline:"sysrc: unknown variable 'noexist'\n" \ 43 atf_check -o inline:"test_enable: -> YES\n" \ 45 atf_check -o inline:'test_enable="YES"\n' cat "${SYSRC_CONF}" 47 atf_check -o inline:"test_enable: YES -> YES\n" \ 49 atf_check -o inline:'test_enable="YES"\n' cat "${SYSRC_CONF}" 50 atf_check -o inline:"test_enable: YES -> NO\n" \ [all …]
|
| /freebsd/usr.sbin/chown/tests/ |
| H A D | chown_test.sh | 44 atf_check mkdir -p A/B 45 atf_check ln -s B A/C 46 atf_check chown -h 42:42 A/C 47 atf_check -o inline:'0:0\n0:0\n42:42\n' stat -f '%u:%g' A A/B A/C 48 atf_check chown -RH 84:84 A 49 atf_check -o inline:'84:84\n84:84\n84:84\n' stat -f '%u:%g' A A/B A/C 50 atf_check chown -RH 126:126 A/C 51 atf_check -o inline:'84:84\n126:126\n84:84\n' stat -f '%u:%g' A A/B A/C 64 atf_check mkdir -p A/B 65 atf_check ln -s B A/C [all …]
|
| /freebsd/tests/sys/geom/class/eli/ |
| H A D | online_resize_test.sh | 49 atf_check -s exit:0 -o ignore gpart create -s GPT ${md} 50 atf_check -s exit:0 -o ignore gpart add -t freebsd-ufs -s 10${prefix} ${md} 54 atf_check geli init ${aalgo} -s ${sector} -Bnone -PKtmp.key ${md}p1 56 atf_check -s exit:0 -o match:"flags: ${eflags}$" geli dump ${md}p1 58 atf_check geli configure -R ${md}p1 59 atf_check -s exit:0 -o match:"flags: ${dflags}$" geli dump ${md}p1 60 atf_check geli configure -r ${md}p1 61 atf_check -s exit:0 -o match:"flags: ${eflags}$" geli dump ${md}p1 63 atf_check geli init -R ${aalgo} -s ${sector} -Bnone -PKtmp.key ${md}p1 64 atf_check -s exit:0 -o match:"flags: ${dflags}$" geli dump ${md}p1 [all …]
|
| /freebsd/sbin/bectl/tests/ |
| H A D | bectl_test.sh | 27 atf_check test -n "$zpool" 37 atf_check mkdir -p ${mnt} 38 atf_check truncate -s 1G ${disk} 39 atf_check zpool create -R ${mnt} ${zpool} ${disk} 40 atf_check zfs create -o mountpoint=none ${zpool}/ROOT 41 atf_check zfs create -o mountpoint=/ -o canmount=noauto \ 51 atf_check test -n "$zpool" 54 atf_check mkdir -p ${root} 55 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root} 56 atf_check mkdir -p ${root}/usr [all …]
|
| /freebsd/contrib/netbsd-tests/net/mpls/ |
| H A D | t_ldp_regen.sh | 59 RUMP_SERVER=${RUMP_SERVER4} atf_check -s exit:0 \ 61 RUMP_SERVER=${RUMP_SERVER4} atf_check -s exit:0 \ 67 RUMP_SERVER=${RUMP_SERVER1} atf_check -s exit:0 -o ignore -e ignore \ 76 atf_check -s exit:0 rump_server ${RUMP_LIBS} ${RUMP_SERVER1} 77 atf_check -s exit:0 rump_server ${RUMP_LIBS} ${RUMP_SERVER2} 78 atf_check -s exit:0 rump_server ${RUMP_LIBS} ${RUMP_SERVER3} 79 atf_check -s exit:0 rump_server ${RUMP_LIBS} ${RUMP_SERVER4} 87 atf_check -s exit:0 rump.ifconfig shmif0 create 88 atf_check -s exit:0 rump.ifconfig shmif0 linkstr ./shdom1 89 atf_check -s exit:0 rump.ifconfig shmif0 10.0.1.1/24 [all …]
|
| H A D | t_mpls_fw64.sh | 57 atf_check -s exit:0 rump_server ${RUMP_FLAGS6} ${RUMP_SERVER1} 58 atf_check -s exit:0 rump_server ${RUMP_FLAGS6} ${RUMP_SERVER2} 59 atf_check -s exit:0 rump_server ${RUMP_FLAGS6} ${RUMP_SERVER3} 60 atf_check -s exit:0 rump_server ${RUMP_FLAGS6} ${RUMP_SERVER4} 68 atf_check -s exit:0 rump.ifconfig shmif0 create 69 atf_check -s exit:0 rump.ifconfig shmif0 linkstr ./shdom1 70 atf_check -s exit:0 rump.ifconfig shmif0 inet6 fd00:1234::1/64 alias 71 atf_check -s exit:0 rump.ifconfig mpls0 create up 72 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1 73 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0 [all …]
|
| /freebsd/usr.bin/touch/tests/ |
| H A D | touch_test.sh | 12 atf_check -o inline:"$((mtime))\n" stat -f%m "$filename" 18 atf_check -o inline:"$((atime))\n" stat -f%a "$filename" 28 atf_check -s exit:1 -e match:"^usage" touch 38 atf_check touch foo 39 atf_check test -f foo 49 atf_check touch foo bar baz 50 atf_check test -f foo -a -f bar -a -f baz 60 atf_check touch -t 7001010101 foo 62 atf_check rm foo 64 atf_check touch -t 7001010101.01 foo [all …]
|
| /freebsd/contrib/netbsd-tests/usr.bin/id/ |
| H A D | t_id.sh | 45 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 46 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 100 47 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh test 50 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 0 51 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh root 55 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 59 atf_check -s eq:1 -o empty -e file:experr ./run_id.sh nonexistent 61 atf_check -s eq:1 -o empty -e save:stderr ./run_id.sh root nonexistent 62 atf_check -s eq:0 -o ignore -e empty grep ^usage: stderr 76 atf_check -s eq:1 -o empty -e save:stderr \ [all …]
|
| /freebsd/bin/chmod/tests/ |
| H A D | chmod_test.sh | 43 atf_check mkdir -m 0777 -p A/B 44 atf_check ln -s B A/C 45 atf_check chmod -h 0777 A/C 46 atf_check -o inline:'40755\n40777\n120777\n' stat -f '%p' A A/B A/C 47 atf_check chmod -RH 0700 A 48 atf_check -o inline:'40700\n40700\n120700\n' stat -f '%p' A A/B A/C 49 atf_check chmod -RH 0600 A/C 50 atf_check -o inline:'40700\n40600\n120700\n' stat -f '%p' A A/B A/C 62 atf_check mkdir -m 0777 -p A/B 63 atf_check ln -s B A/C [all …]
|
| /freebsd/contrib/netbsd-tests/fs/tmpfs/ |
| H A D | t_rename.sh | 41 atf_check -s eq:0 -o empty -e empty mkdir a 42 atf_check -s eq:1 -o empty -e ignore mv a/. c 43 atf_check -s eq:1 -o empty -e ignore mv a/.. c 44 atf_check -s eq:0 -o empty -e empty rmdir a 57 atf_check -s eq:0 -o empty -e empty mkdir a 58 atf_check -s eq:1 -o empty -e save:stderr \ 60 atf_check -s eq:0 -o ignore -e empty grep "Cross-device link" stderr 61 atf_check -s eq:0 -o empty -e empty test -d a 62 atf_check -s eq:0 -o empty -e empty rmdir a 75 atf_check -s eq:0 -o empty -e empty mkdir a [all …]
|
| /freebsd/usr.bin/stat/tests/ |
| H A D | stat_test.sh | 39 atf_check touch a 40 atf_check mkdir b 41 atf_check install -m 0777 /dev/null c 42 atf_check ln -s a d 43 atf_check mkfifo f 45 atf_check -o match:'.* a' stat -Fn a 46 atf_check -o match:'.* b/' stat -Fn b 47 atf_check -o match:'.* c\*' stat -Fn c 48 atf_check -o match:'.* d@' stat -Fn d 49 atf_check -o match:'.* f\|' stat -Fn f [all …]
|
| /freebsd/contrib/netbsd-tests/net/arp/ |
| H A D | t_arp.sh | 108 atf_check -s exit:0 rump.ifconfig shmif0 inet $IP4DST/24 109 atf_check -s exit:0 rump.ifconfig shmif0 up 110 atf_check -s exit:0 rump.ifconfig -w 10 123 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.arp.keep=$keep 127 atf_check -s exit:0 rump.ifconfig shmif0 inet $IP4SRC/24 128 atf_check -s exit:0 rump.ifconfig shmif0 up 129 atf_check -s exit:0 rump.ifconfig -w 10 134 atf_check -s exit:0 -o ignore rump.arp -n $IP4SRC 135 atf_check -s not-exit:0 -e ignore rump.arp -n $IP4DST 153 atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP4DST [all …]
|