autotest macros: AT_CHECK() with pattern support