4 # Some tests for the --set-scripts-executable option.
6 not
() { "$@" && exit 1 ||
:; }
8 if echo $OS |
grep -i windows
; then
9 echo This
test does not work on Windows
18 cat > script.pl
<< FOO
29 darcs add
script.pl nonscript
30 darcs record
--patch-name 'uno' --all
33 # sans --set-scripts-executable (should not be executable)
37 darcs pull
-a ..
/temp1
41 # nothing should be executable
47 # with --set-scripts-executable
51 darcs pull
-a ..
/temp1
--set-scripts-executable
55 # script should be executable
61 # now let's try the same thing with get
62 darcs get
--set-scripts-executable temp1 temp2
67 # script should be executable