A simple parser tester for cub3d
Access the folder in which your Makefile and executable are located cd <path_to_cub3d>
Now you can clone this repository with
git clone https://github.com/Aldisti/cub3d-tester.git
When you want to run the tester you have to enter its folder cd cub3d-tester
and you can launch the tester with
./test.sh
or
sh test.sh
The tester will tell you in real time how many tests have passed and which have not. Furthermore, once all the tests have been performed, a folder (out) will be created containing the tested maps and their outputs. The file will be named 'out<map_number>.out' and the map and output will be separated by some '#'s.
If the out file after the '#'s is empty, then your cub3d didn't recognize the error.
If you find some bugs or errors of any type, please, report them to me. You can contact me on slack: @adi-stef