lsyncd/tests/help.sh

15 lines
530 B
Bash
Raw Normal View History

2008-10-06 20:35:52 +00:00
#!/bin/bash
# copyright 2008 Junichi Uekawa <dancer@debian.org>
# licensed under GPLv2 or later, see the file ../COPYING for details.
2010-08-03 15:03:42 +00:00
set -e
CON="\E[47;34m"
COFF="\033[0m"
2008-10-06 20:35:52 +00:00
2010-08-03 15:03:42 +00:00
echo -e "$CON*****************************************************************$COFF"
echo -e "$CON* Testing that --help outputs help message and exit code of 0. **$COFF"
echo -e "$CON*****************************************************************$COFF"
2008-10-06 20:35:52 +00:00
set -o pipefail
# assume that USAGE being in output is good enough.
2010-08-03 15:03:42 +00:00
./lsyncd --help | grep '^USAGE:'