Lines Matching +full:- +full:556
29 # Regression tests for the pre-world (-p) mode
36 echo "Usage: preworld.sh [-s script] [-w workdir]"
56 shift $((OPTIND - 1))
57 if [ $# -ne 0 ]; then
69 # Populate trees with pre-world files and additional files
72 rm -rf $SRC $OLD $TEST $CONFLICTS
75 mkdir -p $OLD/etc
79 toor:*:0:0::0:0:Bourne-again Superuser:/root:
83 uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
112 cp -R $OLD $TEST
113 sed -I "" -e 's/root::/root:<rpass>:/' $TEST/etc/master.passwd
116 messagebus:*:556:556::0:0:D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
124 messagebus:*:556:
133 cp -R $OLD $SRC
134 sed -I "" -e '/:80:/i\
137 sed -I "" -e '/:80:/i\
145 # $1 - relative path to file that should be missing from TEST
148 if [ -e $TEST/$1 -o -L $TEST/$1 ]; then
154 # $1 - relative path to file that should be present in TEST
157 if ! [ -e $TEST/$1 -o -L $TEST/$1 ]; then
163 # $1 - relative path to regular file that should be present in TEST
164 # $2 - optional string that should match file contents
165 # $3 - optional MD5 of the flie contents, overrides $2 if present
170 if ! [ -f $TEST/$1 ]; then
173 elif [ $# -eq 2 ]; then
179 elif [ $# -eq 3 ]; then
180 sum=`md5 -q $TEST/$1`
188 # $1 - relative path to a regular file that should have a conflict
189 # $2 - optional MD5 of the conflict file contents
194 if ! [ -f $CONFLICTS/$1 ]; then
197 elif [ $# -gt 1 ]; then
198 sum=`md5 -q $CONFLICTS/$1`
215 # These should be auto-generated by pwd_mkdb
221 if [ `id -u` -ne 0 ]; then
226 if [ -r /etc/etcupdate.conf ]; then
232 $COMMAND -np -s $SRC -d $WORKDIR -D $TEST > $WORKDIR/testn.out
239 echo "Differences for -n:"
240 diff -u -L "correct" $WORKDIR/correct.out -L "test" $WORKDIR/testn.out \
243 $COMMAND -p -s $SRC -d $WORKDIR -D $TEST > $WORKDIR/test.out
246 diff -u -L "correct" $WORKDIR/correct.out -L "test" $WORKDIR/test.out \