From ec00bb104803a130f2f0fedd3b10cf67da2f6325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Wed, 23 Jul 2025 12:08:48 +0200 Subject: [PATCH] tests: add a script to quickly run the program through all bad maps https://www.notion.so/Tests-automatique-pour-les-bad-maps-239551de06f48087a5d3da952ddfc296?v=233551de06f480718417000cf26e3225&source=copy_link --- test_badmaps.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 test_badmaps.sh diff --git a/test_badmaps.sh b/test_badmaps.sh new file mode 100755 index 0000000..118f5fa --- /dev/null +++ b/test_badmaps.sh @@ -0,0 +1,6 @@ +#!/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