lsyncd/tests/version.sh

16 lines
526 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.
set -e
2010-08-03 15:13:18 +00:00
CON="\E[47;34m"
COFF="\033[0m"
2008-10-06 20:35:52 +00:00
2010-08-03 15:13:18 +00:00
echo -e "$CON******************************************************************************$COFF"
echo -e "$CON* Testing that --version outputs some kind of version message and exit code 0.$COFF"
echo -e "$CON******************************************************************************$COFF"
2008-10-06 20:35:52 +00:00
2010-08-03 15:13:18 +00:00
set -o pipefail
./lsyncd --version | grep '^Version: '
2008-10-06 20:35:52 +00:00