#!/bin/sh

SAMPLE_FILE="debian/tests/files/logswan.log"
TMP_OUTPUT_FILE="$AUTOPKGTEST_TMP/output.json"

logswan $SAMPLE_FILE > $TMP_OUTPUT_FILE

INVALID_LINES=$(jq '.invalid_lines' $TMP_OUTPUT_FILE)

test "$INVALID_LINES" -eq 0
