forked from RadixSeven/typescript2txt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
187 lines (150 loc) · 9.63 KB
/
Makefile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
CC=g++
CFLAGS=-Wall -Wextra -g
CPPFLAGS=-Wall -Wextra -g
all: typescript2txt
typescript2txt: typescript2txt.o
tests/01_passed: ./typescript2txt tests/01_input.txt tests/01_expected_output.txt
@./typescript2txt < tests/01_input.txt > tests/01_actual_output.txt
@diff -q tests/01_expected_output.txt tests/01_actual_output.txt
touch tests/01_passed
tests/02_passed: ./typescript2txt tests/02_tabs_input.txt tests/02_tabs_expected_output.txt
@./typescript2txt < tests/02_tabs_input.txt > tests/02_tabs_actual_output.txt
@diff -q tests/02_tabs_expected_output.txt tests/02_tabs_actual_output.txt
touch tests/02_passed
tests/03_passed: ./typescript2txt tests/03_tabs_input.txt tests/03_tabs_expected_output.txt
@./typescript2txt < tests/03_tabs_input.txt > tests/03_tabs_actual_output.txt
@diff -q tests/03_tabs_expected_output.txt tests/03_tabs_actual_output.txt
touch tests/03_passed
tests/04_passed: ./typescript2txt tests/04_esc_D_input.txt tests/04_esc_D_expected_output.txt
@./typescript2txt < tests/04_esc_D_input.txt > tests/04_esc_D_actual_output.txt
@diff -q tests/04_esc_D_expected_output.txt tests/04_esc_D_actual_output.txt
touch tests/04_passed
tests/05_passed: ./typescript2txt tests/05_esc_E_input.txt tests/05_esc_E_expected_output.txt
@./typescript2txt < tests/05_esc_E_input.txt > tests/05_esc_E_actual_output.txt
@diff -q tests/05_esc_E_expected_output.txt tests/05_esc_E_actual_output.txt
touch tests/05_passed
tests/06_passed: ./typescript2txt tests/06_esc_M_input.txt tests/06_esc_M_expected_output.txt
@./typescript2txt < tests/06_esc_M_input.txt > tests/06_esc_M_actual_output.txt
@diff -q tests/06_esc_M_expected_output.txt tests/06_esc_M_actual_output.txt
touch tests/06_passed
tests/07_passed: ./typescript2txt tests/07_OSC_0_setwi_input.txt tests/07_OSC_0_setwi_expected_output.txt
@./typescript2txt < tests/07_OSC_0_setwi_input.txt > tests/07_OSC_0_setwi_actual_output.txt
@diff -q tests/07_OSC_0_setwi_expected_output.txt tests/07_OSC_0_setwi_actual_output.txt
touch tests/07_passed
tests/08_passed: ./typescript2txt tests/08_insert_blank_input.txt tests/08_insert_blank_expected_output.txt
@./typescript2txt < tests/08_insert_blank_input.txt > tests/08_insert_blank_actual_output.txt
@diff -q tests/08_insert_blank_expected_output.txt tests/08_insert_blank_actual_output.txt
touch tests/08_passed
tests/09_passed: ./typescript2txt tests/09_insert_blank_input.txt tests/09_insert_blank_expected_output.txt
@./typescript2txt < tests/09_insert_blank_input.txt > tests/09_insert_blank_actual_output.txt
@diff -q tests/09_insert_blank_expected_output.txt tests/09_insert_blank_actual_output.txt
touch tests/09_passed
tests/10_passed: ./typescript2txt tests/10_insert_blank_input.txt tests/10_insert_blank_expected_output.txt
@./typescript2txt < tests/10_insert_blank_input.txt > tests/10_insert_blank_actual_output.txt
@diff -q tests/10_insert_blank_expected_output.txt tests/10_insert_blank_actual_output.txt
touch tests/10_passed
tests/11_passed: ./typescript2txt tests/11_insert_blank_input.txt tests/11_insert_blank_expected_output.txt
@./typescript2txt < tests/11_insert_blank_input.txt > tests/11_insert_blank_actual_output.txt
@diff -q tests/11_insert_blank_expected_output.txt tests/11_insert_blank_actual_output.txt
touch tests/11_passed
tests/12_passed: ./typescript2txt tests/12_CSI_A_input.txt tests/12_CSI_A_expected_output.txt
@./typescript2txt < tests/12_CSI_A_input.txt > tests/12_CSI_A_actual_output.txt
@diff -q tests/12_CSI_A_expected_output.txt tests/12_CSI_A_actual_output.txt
touch tests/12_passed
tests/13_passed: ./typescript2txt tests/13_CSI_A_input.txt tests/13_CSI_A_expected_output.txt
@./typescript2txt < tests/13_CSI_A_input.txt > tests/13_CSI_A_actual_output.txt
@diff -q tests/13_CSI_A_expected_output.txt tests/13_CSI_A_actual_output.txt
touch tests/13_passed
tests/14_passed: ./typescript2txt tests/14_CSI_A_input.txt tests/14_CSI_A_expected_output.txt
@./typescript2txt < tests/14_CSI_A_input.txt > tests/14_CSI_A_actual_output.txt
@diff -q tests/14_CSI_A_expected_output.txt tests/14_CSI_A_actual_output.txt
touch tests/14_passed
tests/15_passed: ./typescript2txt tests/15_CSI_A_input.txt tests/15_CSI_A_expected_output.txt
@./typescript2txt < tests/15_CSI_A_input.txt > tests/15_CSI_A_actual_output.txt
@diff -q tests/15_CSI_A_expected_output.txt tests/15_CSI_A_actual_output.txt
touch tests/15_passed
tests/16_passed: ./typescript2txt tests/16_CSI_AB_input.txt tests/16_CSI_AB_expected_output.txt
@./typescript2txt < tests/16_CSI_AB_input.txt > tests/16_CSI_AB_actual_output.txt
@diff -q tests/16_CSI_AB_expected_output.txt tests/16_CSI_AB_actual_output.txt
touch tests/16_passed
tests/17_passed: ./typescript2txt tests/17_CSI_B_input.txt tests/17_CSI_B_expected_output.txt
@./typescript2txt < tests/17_CSI_B_input.txt > tests/17_CSI_B_actual_output.txt
@diff -q tests/17_CSI_B_expected_output.txt tests/17_CSI_B_actual_output.txt
touch tests/17_passed
tests/18_passed: ./typescript2txt tests/18_CSI_B_input.txt tests/18_CSI_B_expected_output.txt
@./typescript2txt < tests/18_CSI_B_input.txt > tests/18_CSI_B_actual_output.txt
@diff -q tests/18_CSI_B_expected_output.txt tests/18_CSI_B_actual_output.txt
touch tests/18_passed
tests/19_passed: ./typescript2txt tests/19_CSI_C_input.txt tests/19_CSI_C_expected_output.txt
@./typescript2txt < tests/19_CSI_C_input.txt > tests/19_CSI_C_actual_output.txt
@diff -q tests/19_CSI_C_expected_output.txt tests/19_CSI_C_actual_output.txt
touch tests/19_passed
tests/20_passed: ./typescript2txt tests/20_CSI_C_input.txt tests/20_CSI_C_expected_output.txt
@./typescript2txt < tests/20_CSI_C_input.txt > tests/20_CSI_C_actual_output.txt
@diff -q tests/20_CSI_C_expected_output.txt tests/20_CSI_C_actual_output.txt
touch tests/20_passed
tests/21_passed: ./typescript2txt tests/21_CSI_P_input.txt tests/21_CSI_P_expected_output.txt
@./typescript2txt < tests/21_CSI_P_input.txt > tests/21_CSI_P_actual_output.txt
@diff -q tests/21_CSI_P_expected_output.txt tests/21_CSI_P_actual_output.txt
touch tests/21_passed
tests/22_passed: ./typescript2txt tests/22_CSI_P_input.txt tests/22_CSI_P_expected_output.txt
@./typescript2txt < tests/22_CSI_P_input.txt > tests/22_CSI_P_actual_output.txt
@diff -q tests/22_CSI_P_expected_output.txt tests/22_CSI_P_actual_output.txt
touch tests/22_passed
tests/23_passed: ./typescript2txt tests/23_CSI_P_input.txt tests/23_CSI_P_expected_output.txt
@./typescript2txt < tests/23_CSI_P_input.txt > tests/23_CSI_P_actual_output.txt
@diff -q tests/23_CSI_P_expected_output.txt tests/23_CSI_P_actual_output.txt
touch tests/23_passed
tests/24_passed: ./typescript2txt tests/24_CSI_P_input.txt tests/24_CSI_P_expected_output.txt
@./typescript2txt < tests/24_CSI_P_input.txt > tests/24_CSI_P_actual_output.txt
@diff -q tests/24_CSI_P_expected_output.txt tests/24_CSI_P_actual_output.txt
touch tests/24_passed
tests/25_passed: ./typescript2txt tests/25_CSI_K_input.txt tests/25_CSI_K_expected_output.txt
@./typescript2txt < tests/25_CSI_K_input.txt > tests/25_CSI_K_actual_output.txt
@diff -q tests/25_CSI_K_expected_output.txt tests/25_CSI_K_actual_output.txt
touch tests/25_passed
tests/26_passed: ./typescript2txt tests/26_CSI_K_input.txt tests/26_CSI_K_expected_output.txt
@./typescript2txt < tests/26_CSI_K_input.txt > tests/26_CSI_K_actual_output.txt
@diff -q tests/26_CSI_K_expected_output.txt tests/26_CSI_K_actual_output.txt
touch tests/26_passed
tests/27_passed: ./typescript2txt tests/27_CSI_K_input.txt tests/27_CSI_K_expected_output.txt
@./typescript2txt < tests/27_CSI_K_input.txt > tests/27_CSI_K_actual_output.txt
@diff -q tests/27_CSI_K_expected_output.txt tests/27_CSI_K_actual_output.txt
touch tests/27_passed
tests/28_passed: ./typescript2txt tests/28_CSI_K_input.txt tests/28_CSI_K_expected_output.txt
@./typescript2txt < tests/28_CSI_K_input.txt > tests/28_CSI_K_actual_output.txt
@diff -q tests/28_CSI_K_expected_output.txt tests/28_CSI_K_actual_output.txt
touch tests/28_passed
tests/29_passed: ./typescript2txt tests/29_CSI_K_input.txt tests/29_CSI_K_expected_output.txt
@./typescript2txt < tests/29_CSI_K_input.txt > tests/29_CSI_K_actual_output.txt
@diff -q tests/29_CSI_K_expected_output.txt tests/29_CSI_K_actual_output.txt
touch tests/29_passed
tests/30_passed: ./typescript2txt tests/30_CSI_K_input.txt tests/30_CSI_K_expected_output.txt
@./typescript2txt < tests/30_CSI_K_input.txt > tests/30_CSI_K_actual_output.txt
@diff -q tests/30_CSI_K_expected_output.txt tests/30_CSI_K_actual_output.txt
touch tests/30_passed
tests/31_passed: ./typescript2txt tests/31_raw_input.txt tests/31_raw_expected_output.txt
@./typescript2txt < tests/31_raw_input.txt > tests/31_raw_actual_output.txt
@diff -q tests/31_raw_expected_output.txt tests/31_raw_actual_output.txt
touch tests/31_passed
tests/32_passed: ./typescript2txt tests/32_raw_input.txt tests/32_raw_expected_output.txt
@./typescript2txt < tests/32_raw_input.txt > tests/32_raw_actual_output.txt
@diff -q tests/32_raw_expected_output.txt tests/32_raw_actual_output.txt
touch tests/32_passed
test: tests/02_passed tests/03_passed
test: tests/04_passed tests/05_passed tests/06_passed
test: tests/07_passed tests/08_passed tests/09_passed
test: tests/10_passed tests/11_passed
test: tests/12_passed tests/13_passed tests/14_passed
test: tests/15_passed tests/16_passed tests/17_passed
test: tests/18_passed tests/19_passed tests/20_passed
test: tests/21_passed tests/22_passed tests/23_passed
test: tests/24_passed tests/25_passed tests/26_passed
test: tests/27_passed tests/28_passed tests/29_passed
test: tests/30_passed tests/31_passed tests/32_passed
test: #Tests after here are not expected to pass yet
test: tests/01_passed
clean:
-rm -f *.o typescript2txt
-rm -f tests/??_passed tests/??_*actual_output.txt
.PHONY: all clean test