#!/usr/bin/bash

echo "# Testing intel GPU hook..."
lines=$(python3 apport/apport-gpu-error-intel.py --stdout --force| wc -l)
retval=$?
if [ $retval -ne 0 ]; then
    echo "ERROR"
    exit 1
elif [ $lines -lt 100 ]; then
    echo "FAIL"
    exit 2
fi

echo "OK   # $lines lines generated"
exit 0
