Lines Matching refs:atf_check

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"
36 atf_check -s exit:0 -o match:"^test:.*:Test User,work,123,456:" \
45 atf_check -s exit:0 ${PW} useradd test -c "Test User,home,123,456"
46 atf_check -s exit:0 -o match:"^test:.*:Test User,work,123,456:" \
48 atf_check -s exit:0 -o match:"^test:.*:Test User,home,123,456:" \
57 atf_check -s exit:0 ${PW} useradd test
58 atf_check -s exit:65 -e match:"invalid character" \
60 atf_check -s exit:1 -o empty \
62 atf_check -s exit:0 -o match:"^test:\*" \
71 atf_check -s exit:0 ${PW} useradd test
72 atf_check -s exit:65 -e match:"invalid character" \
74 atf_check -s exit:1 -o empty \
76 atf_check -s exit:0 -o match:"^test:\*" \
85 atf_check -s exit:0 ${PW} useradd foo
86 atf_check -s exit:0 ${PW} usermod foo -l "bar"
87 atf_check -s exit:0 -o match:"^bar:.*" \
96 atf_check -s exit:0 ${PW} useradd foo
97 atf_check -s exit:0 -o match:"^bar:.*" ${PW} usermod foo -l "bar" -N
98 atf_check -s exit:0 -o match:"^foo:.*" \
106 atf_check -s exit:0 ${PW} groupadd test1
107 atf_check -s exit:0 ${PW} groupadd test2
108 atf_check -s exit:0 ${PW} useradd foo -G test1,test2
109 atf_check -o match:"foo" -s exit:0 ${PW} groupshow test1
110 atf_check -o match:"foo" -s exit:0 ${PW} groupshow test2
111 atf_check -s exit:0 ${PW} usermod foo -l bar
112 atf_check -o match:"bar" -s exit:0 ${PW} groupshow test1
113 atf_check -o match:"bar" -s exit:0 ${PW} groupshow test2
120 atf_check -s exit:0 ${PW} groupadd test1
121 atf_check -s exit:0 ${PW} groupadd test2
122 atf_check -s exit:0 ${PW} groupadd test3
123 atf_check -s exit:0 ${PW} groupadd test4
124 atf_check -s exit:0 ${PW} useradd foo -G test1,test2
125 atf_check -o match:"foo" -s exit:0 ${PW} groupshow test1
126 atf_check -o match:"foo" -s exit:0 ${PW} groupshow test2
127 atf_check -s exit:0 ${PW} usermod foo -G test3,test4
128 atf_check -s exit:0 -o inline:"test3\ntest4\n" \
130 atf_check -s exit:0 ${PW} usermod foo -G ""
131 atf_check -s exit:0 -o empty \
139 atf_check -s exit:0 ${PW} useradd foo
140 atf_check -s exit:0 ${PW} usermod foo -l bar
141 atf_check -s exit:0 -o match:"^bar:.*" \
149 atf_check -s exit:0 ${PW} useradd foo
150 atf_check -s exit:64 -e match:"too long" ${PW} usermod foo \
158 atf_check -s exit:0 ${PW} useradd foo
159 atf_check -s exit:0 ${PW} usermod foo -h 0 <<- EOF
163 atf_check -s exit:0 -o inline:$passhash \
165 atf_check -s exit:0 ${PW} usermod foo -h - <<- EOF
168 atf_check -s exit:0 -o match:"^foo:\*:.*" \
170 atf_check -e inline:"pw: Bad file descriptor 'a': invalid\n" \
180 atf_check -s exit:0 ${PW} useradd foo
181 atf_check -s exit:0 ${PW} usermod foo -H 0 <<- EOF
184 atf_check -s exit:0 -o match:"^foo:a:.*" \
186 atf_check -s exit:64 -e inline:"pw: -H expects a file descriptor\n" \
195 atf_check -s exit:0 ${RPW} useradd foo -m
197 atf_check -s exit:0 ${RPW} usermod foo -l bar -d /home/bar -m
205 atf_check -s exit:0 ${PW} useradd foo
206 atf_check -s exit:0 ${PW} usermod foo -u 5000
213 atf_check -s exit:0 ${PW} useradd foo
214 atf_check -s exit:1 -e match:"pw: Invalid value for default password" \
222 atf_check -s exit:0 ${PW} useradd foo
223 atf_check -s exit:0 ${PW} usermod foo -w no
224 atf_check -s exit:0 -o match:"^foo:\*" grep "^foo:" $HOME/master.passwd
231 atf_check -s exit:0 ${PW} useradd foo
232 atf_check -s exit:0 ${PW} usermod foo -w none
233 atf_check -s exit:0 -o match:"^foo::" grep "^foo:" $HOME/master.passwd
240 atf_check -s exit:0 ${PW} useradd foo
243 atf_check -s exit:0 -o inline:$passhash \
251 atf_check -s exit:0 ${PW} useradd foo
252 atf_check -s exit:0 ${PW} usermod foo -w yes
254 atf_check -s exit:0 -o inline:$passhash \
265 atf_check -s exit:0 ${RPW} useradd foo
267 atf_check -s exit:0 ${RPW} usermod foo -m -k /skel
271 atf_check -s exit:0 ${RPW} usermod foo -m -k /skel
274 atf_check -s exit:0 ${RPW} usermod foo -m -k /skel
275 atf_check -s exit:0 -o inline:"\n" cat ${HOME}/home/foo/.file2