#!/usr/bin/bash

echo "# Testing apport hook..."
lines=$(python apport/source_xorg.py | wc -l)
if [ $? -ne 0 ]; then
    echo "FAIL"
    exit 1
elif [ $lines -lt 100 ]; then
    echo "FAIL"
    exit 2
fi

echo "OK   # $lines lines generated"
exit 0
