autotools: fail the check action if unsuccessful