4 # Some tests for 'darcs record '
6 not
() { "$@" && exit 1 ||
:; }
9 if uname |
grep -i cygwin
> /dev
/null
; then
21 # issue308 - no patches and no deps for record should abort
22 darcs record
-am foo
--ask-deps |
grep -i "Ok, if you don't want to record anything, that's fine!"
24 # RT#476 - --ask-deps works when there are no patches
25 if echo $OS |
grep -i windows
; then
26 echo This
test does not work on Windows
31 echo a | darcs record
-am foo
--ask-deps |
grep -i 'finished recording'
34 # RT#231 - special message is given for nonexistent directories
35 not darcs record
-am foo not_there.txt
> log
36 grep -i 'non existent' log
38 # RT#231 - a nonexistent file before an existing file is handled correctly
40 darcs record
-am foo a.t b.t
> log
41 grep -i 'non existent files or directories: "a.t"' log
43 # record works with absolute paths
44 # hack for Cygwin and portable_pwd
49 darcs record
-a -m foo
${DIR}/date.t |
grep -i 'finished recording'
51 # issue396 - record -l ""
53 darcs record
-am foo
-l "" notnull.t |
grep -i 'finished recording'
57 darcs record
-a -m basic_record
date.t |
grep -i 'finished recording'
61 echo "second record\n" >> log.txt
62 darcs record
-a -m 'second record' --logfile=log.txt
date.t |
grep -i 'finished recording'