launcher.should 613 Bytes
Newer Older
Mathieu Giraud's avatar
Mathieu Giraud committed
1 2 3
# The --launcher option allows to prepend something to every command.
# It could be used with valgrind or other tools.

4
./should --launcher echo demo/cal.should ; true
Mathieu Giraud's avatar
Mathieu Giraud committed
5 6

$ The command is launched with 'echo'
Mathieu Giraud's avatar
Mathieu Giraud committed
7
: LC_ALL=C cal 2001
Mathieu Giraud's avatar
Mathieu Giraud committed
8 9

$ The command is not run, several tests do fail
Mathieu Giraud's avatar
Mathieu Giraud committed
10
0: October
Mathieu Giraud's avatar
Mathieu Giraud committed
11 12 13
: failed


14 15 16 17 18 19 20 21 22 23
(cat demo/cal.should ; echo "!NO_LAUNCHER:" ; cat demo/hello.should) > demo/tests/no-launcher.should
./should --launcher echo -v demo/tests/no-launcher.should ; true

$ The first part is launched with 'echo'
: LC_ALL=C cal 2001
0: October
: failed

$ The second one runs are skipped
: Skipping tests: !NO_LAUNCHER: