#!/usr/bin/bash

. data/bubu.lib

echo "# Testing intel GPU hook..."

lines=$(python3 apport/apport-gpu-error-intel.py --stdout --force| wc -l)
if [ $? -ne 0 ]; then
    fail "error code non-zero"
else
    pass "error code 0"
fi

if [ $lines -lt 100 ]; then
    fail "Insufficient output generated:  ${lines} lines"
else
    pass "Generated ${lines} lines of output"
fi

final_summary

exit 0
