apenwarr-redo/t
Avery Pennarun c28181e26f minimal/do: fix a really scary bugs in "set -e" behaviour.
If you run something like

  blah_function || return 1

then everything even *inside* blah_function is *not* subject to the "set -e"
that would otherwise be in effect.  That's true even for ". subfile" inside
blah_function - which is exactly how minimal/do runs .do files.

Instead, rewrite it as

  blah_function
  [ "$?" = "0" ] || return 1

And add a bit to the unit tests to ensure that "set -e" behaviour is enabled
in .do files as we expect, and crash loudly otherwise.

(This weird behaviour may only happen in some shells and not others.)

Also, we had a "helpful" alias of redo() defined at the bottom of the file.
Combined with the way we use '.' to source the .do files, this would make it
not start a new shell just to run a recursive 'redo' command.  It almost
works, but this stupid "set -e" bug could cause a nested .do file to not
honour "set -e" if someone ran "redo foo || exit 1" from inside a .do
script.  The performance optimization is clearly not worth it here, so
rename it to _redo(); that causes it to actually re-exec the redo program
(which is a symlink to minimal/do).
2012-02-09 00:42:41 -05:00
..
000-set-minus-e minimal/do: fix a really scary bugs in "set -e" behaviour. 2012-02-09 00:42:41 -05:00
100-args t/100-args: add a test for --old-args feature. 2012-02-09 00:42:40 -05:00
101-atime t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
102-empty t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
103-unicode t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
104-space t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
110-compile t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
111-compile2 Rename 111-compile to 111-compile2. 2012-02-09 00:42:40 -05:00
120-defaults-flat t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
121-defaults-nested t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
130-mode t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
140-shuffle Add a test for --shuffle option. 2012-02-09 00:42:41 -05:00
141-keep-going Add a test for --keep-going option. 2012-02-09 00:42:41 -05:00
200-shell t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
201-fail t/201-fail: add a simple test for non-existent source files. 2012-02-08 22:51:04 -05:00
202-del t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
220-ifcreate t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
250-makedir t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
350-deps t/350-deps: 'redo clean' was crashing. 2012-02-08 22:56:04 -05:00
550-chdir t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
640-always t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
660-stamp t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
950-curse t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
999-installer Add a test for install.do. 2012-02-09 00:42:41 -05:00
.gitignore t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
all.do minimal/do: fix a really scary bugs in "set -e" behaviour. 2012-02-09 00:42:41 -05:00
clean.do t/*: rearrange tests into numbered directories. 2012-02-08 01:56:50 -05:00
dotparams.od shelltest.od: test that $1/$2/$3 are set correctly in "." scripts. 2011-02-28 22:07:21 -08:00
flush-cache Rename flush-cache.py to flush-cache, and rearrange the code a bit. 2011-02-23 01:27:41 -08:00
nothing.od shelltest: detect the ". of empty script" shell problem. 2011-02-28 22:06:57 -08:00
shelltest.od t/shelltest.od: quiet some error messages that get printed during testing. 2011-05-08 01:25:20 -04:00
skip-if-minimal-do.sh Disable the tests that don't work with minimal/do. 2010-12-11 21:06:12 -08:00
sleep t/*.do: add some time delays. 2010-11-13 02:17:22 -08:00