forked from Oris482/Cub3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestScript.sh
More file actions
executable file
·49 lines (46 loc) · 1.3 KB
/
testScript.sh
File metadata and controls
executable file
·49 lines (46 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/bash
ERROR=( "map/wrong_extension" \
"map/wrong_extension.cub2" \
"map/.cub" \
"map/.cub.cub" \
"map/no_file.cub" \
"map/empty_file.cub" \
"map/error_no_EA_texture.cub" \
"map/error_wrong_EA_texture.cub" \
"map/error_no_WE_texture.cub" \
"map/error_wrong_WE_texture.cub" \
"map/error_no_SO_texture.cub" \
"map/error_wrong_SO_texture.cub" \
"map/error_no_NO_texture.cub" \
"map/error_wrong_NO_texture.cub" \
"map/error_no_F_color.cub" \
"map/error_wrong_F_color.cub" \
"map/error_no_C_color.cub" \
"map/error_wrong_C_color.cub" \
"map/error_wrong_C_color2.cub" \
"map/error_wrong_C_color3.cub" \
"map/error_wrong_C_color4.cub" \
"map/error_duplicate_texture.cub" \
"map/error_duplicate_color.cub" \
"map/error_no_player_map.cub" \
"map/error_duplicate_player_map.cub" \
"map/error_wrong_element_map.cub" \
"map/error_not_surrounded_by_wall_map.cub" \
"map/error_not_surrounded_by_wall_map2.cub" \
)
my_cub3D()
{
echo
echo "CASE : $i"
echo ---------------------------
echo
cat "$i"
./cub3D "$i"
echo
echo ---------------------------
echo
}
for i in "${ERROR[@]}"
do
my_cub3D
done