Code

integration tests: Run all invocations through valgrind's memcheck.
[sysdb.git] / t / integration / simple_query.sh
index d091e2b4b8d375d4bbf00c738de0c51792ac9e68..76b54d66e840f8333b51bebaff7ec2eb64fc7cbf 100755 (executable)
@@ -43,16 +43,19 @@ LoadBackend mock_plugin
 </Backend>
 EOF
 
-"$SYSDBD" -D -C "$SYSDBD_CONF" &
+$SYSDBD -D -C "$SYSDBD_CONF" &
 sysdbd_pid=$!
 
 wait_for_sysdbd
 sleep 3
 
-"$SYSDB" -H "$SOCKET_FILE" -c LIST \
+output="$( $SYSDB -H "$SOCKET_FILE" -c LIST )"
+echo "$output" \
        | grep -F '"host1.example.com"' \
        | grep -F "host2.example.com" \
        | grep -F "localhost" \
        | grep -F "other.host.name" \
        | grep -F "some.host.name"
-kill $!
+kill $sysdbd_pid
+wait $sysdbd_pid
+