X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=t%2Fapenwarr%2F260-whichdo%2Fexists.do;fp=t%2Fapenwarr%2F260-whichdo%2Fexists.do;h=49a6592e74b8b9ebf1f46ec5d5362041161d1e17;hb=150988618524bf17378bd8770231cda7c9bbb43a;hp=0000000000000000000000000000000000000000;hpb=f55840281e03ae8393c0a3a853807457865c2dc6;p=goredo.git diff --git a/t/apenwarr/260-whichdo/exists.do b/t/apenwarr/260-whichdo/exists.do new file mode 100644 index 0000000..49a6592 --- /dev/null +++ b/t/apenwarr/260-whichdo/exists.do @@ -0,0 +1,25 @@ +exec >&2 + +a=$(cd fakesub && redo-whichdo ../a/b/x.y.z) +# if sh doesn't abort after the above, then it found a .do file as expected + +# Note: we expect redo-whichdo to return paths relative to $PWD at the time +# it's run, which in this case is fakesub. +# Likely bugs would be to return paths relative to the start dir, the .redo +# dir, the current target dir, the requested target dir, etc. +b=$(cat <