#!/usr/bin/env bash for i in ./ressources/bad_maps/*; do printf "testing $i...\n" ./cub3D $i && printf "$i...\tFAILED (did not detect expected error)\n" || printf "$i...\tPASSED\n" done