17002 |
dotest watch6-0-setup-2 "$testcvs -Q add watch6-0" |
dotest watch6-0-setup-2 "$testcvs -Q add watch6-0" |
17003 |
cd watch6-0 |
cd watch6-0 |
17004 |
dotest watch6-0-1 "$testcvs watch add" |
dotest watch6-0-1 "$testcvs watch add" |
17005 |
dotest watch6-0-2 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr" |
dotest watch6-0-2 \ |
17006 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr >/dev/null" |
17007 |
dotest watch6-0-3 "$testcvs watch remove" |
dotest watch6-0-3 "$testcvs watch remove" |
17008 |
dotest_fail watch6-0-4 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr 2>/dev/null" |
dotest_fail watch6-0-4 \ |
17009 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr 2>/dev/null >/dev/null" |
17010 |
|
|
17011 |
dotest watch6-0-5 "$testcvs watch add ." |
dotest watch6-0-5 "$testcvs watch add ." |
17012 |
dotest watch6-0-6 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr" |
dotest watch6-0-6 \ |
17013 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr >/dev/null" |
17014 |
dotest watch6-0-7 "$testcvs watch remove ." |
dotest watch6-0-7 "$testcvs watch remove ." |
17015 |
dotest_fail watch6-0-8 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr 2>/dev/null" |
dotest_fail watch6-0-8 \ |
17016 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr 2>/dev/null >/dev/null" |
17017 |
|
|
17018 |
# OK, basic add/remove work. Now, make sure it works with named directories |
# OK, basic add/remove work. Now, make sure it works with |
17019 |
|
# named directories. |
17020 |
mkdir dir1 |
mkdir dir1 |
17021 |
mkdir dir2 |
mkdir dir2 |
17022 |
mkdir dir3 |
mkdir dir3 |
17024 |
$testcvs -Q add afile dir1 dir2 dir3 |
$testcvs -Q add afile dir1 dir2 dir3 |
17025 |
$testcvs -Q ci -m "Adding test files" |
$testcvs -Q ci -m "Adding test files" |
17026 |
|
|
17027 |
# Current directory should not be watched, but there should be a watch on the file, |
# Current directory should not be watched, but there should |
17028 |
# and on dir1 & dir2, but not on dir3. |
# be a watch on the file, and on dir1 & dir2, but not on |
17029 |
|
# dir3. |
17030 |
dotest watch6-0-9 "$testcvs -Q watch add afile dir1 dir2" |
dotest watch6-0-9 "$testcvs -Q watch add afile dir1 dir2" |
17031 |
dotest_fail watch6-0-10 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr 2>/dev/null" |
dotest_fail watch6-0-10 \ |
17032 |
dotest watch6-0-11 "grep -qE '^Fafile' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr" |
"grep '^D' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr 2>/dev/null >/dev/null" |
17033 |
dotest watch6-0-12 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/dir1/CVS/fileattr" |
dotest watch6-0-11 \ |
17034 |
dotest watch6-0-13 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/dir2/CVS/fileattr" |
"grep '^Fafile' $CVSROOT_DIRNAME/watch6-0/CVS/fileattr >/dev/null" |
17035 |
dotest_fail watch6-0-12 "grep -qE '^D' $CVSROOT_DIRNAME/watch6-0/dir3/CVS/fileattr 2>/dev/null" |
dotest watch6-0-12 \ |
17036 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/dir1/CVS/fileattr >/dev/null" |
17037 |
|
dotest watch6-0-13 \ |
17038 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/dir2/CVS/fileattr >/dev/null" |
17039 |
|
dotest_fail watch6-0-12 \ |
17040 |
|
"grep '^D' $CVSROOT_DIRNAME/watch6-0/dir3/CVS/fileattr 2>/dev/null >/dev/null" |
17041 |
|
|
17042 |
dokeep |
dokeep |
17043 |
cd ../../.. |
cd ../../.. |