From: Sebastian Harl Date: Sun, 1 Mar 2015 18:16:23 +0000 (+0100) Subject: integration/query.sh: Check that empty commands work fine. X-Git-Tag: sysdb-0.8.0~144 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=80cb24f5015433b3d63084bb4c230b10d1c33652 integration/query.sh: Check that empty commands work fine. --- diff --git a/t/integration/query.sh b/t/integration/query.sh index 5bd09b4..4656856 100755 --- a/t/integration/query.sh +++ b/t/integration/query.sh @@ -77,6 +77,10 @@ output="$( run_sysdb -H "$SOCKET_FILE" -c INVALID 2>&1 )" && exit 1 echo "$output" | grep "Failed to parse query 'INVALID'" echo "$output" | grep "parse error: syntax error" +# Empty query. +output="$( run_sysdb -H "$SOCKET_FILE" -c '' )" +test -z "$output" + # Simple, successful commands. output="$( run_sysdb -H "$SOCKET_FILE" -c 'LIST hosts' )" echo "$output" \