Remove building with NOCRYPTO option
[minix.git] / tests / lib / libcurses / t_curses.sh
blob5ff9474f88029a35c568787510cfcde0f25057e9
2 h_run()
4 file="$(atf_get_srcdir)/tests/${1}"
6 export COLUMNS=80
7 export LINES=24
8 $(atf_get_srcdir)/director \
9 -T $(atf_get_srcdir) \
10 -t atf \
11 -I $(atf_get_srcdir)/tests \
12 -C $(atf_get_srcdir)/check_files \
13 -s $(atf_get_srcdir)/slave $file || atf_fail "test ${file} failed"
16 atf_test_case startup
17 startup_head()
19 atf_set "descr" "Checks curses initialisation sequence"
21 startup_body()
23 h_run start
26 atf_test_case addch
27 addch_head()
29 atf_set "descr" "Tests adding a chtype to stdscr"
31 addch_body()
33 h_run addch
36 atf_test_case addchstr
37 addchstr_head()
39 atf_set "descr" "Tests adding a chtype string to stdscr"
41 addchstr_body()
43 h_run addchstr
46 atf_test_case addchnstr
47 addchnstr_head()
49 atf_set "descr" "Tests adding bytes from a chtype string to stdscr"
51 addchnstr_body()
53 h_run addchnstr
56 atf_test_case addstr
57 addstr_head()
59 atf_set "descr" "Tests adding bytes from a string to stdscr"
61 addstr_body()
63 h_run addstr
66 atf_test_case addnstr
67 addnstr_head()
69 atf_set "descr" "Tests adding bytes from a string to stdscr"
71 addnstr_body()
73 h_run addnstr
76 atf_test_case getch
77 getch_head()
79 atf_set "descr" "Checks reading a character input"
81 getch_body()
83 h_run getch
86 atf_test_case timeout
87 timeout_head()
89 atf_set "descr" "Checks timeout when reading a character"
91 timeout_body()
93 h_run timeout
96 atf_test_case window
97 window_head()
99 atf_set "descr" "Checks window creation"
101 window_body()
103 h_run window
106 atf_test_case wborder
107 wborder_head()
109 atf_set "descr" "Checks drawing a border around a window"
111 wborder_body()
113 h_run wborder
116 atf_test_case box
117 box_head()
119 atf_set "descr" "Checks drawing a box around a window"
121 box_body()
123 h_run box
126 atf_test_case wprintw
127 wprintw_head()
129 atf_set "descr" "Checks printing to a window"
131 wprintw_body()
133 h_run wprintw
136 atf_test_case wscrl
137 wscrl_head()
139 atf_set "descr" "Check window scrolling"
141 wscrl_body()
143 h_run wscrl
146 atf_test_case mvwin
147 mvwin_head()
149 atf_set "descr" "Check moving a window"
151 mvwin_body()
153 h_run mvwin
156 atf_test_case getstr
157 getstr_head()
159 atf_set "descr" "Check getting a string from input"
161 getstr_body()
163 h_run getstr
166 atf_test_case termattrs
167 termattrs_head()
169 atf_set "descr" "Check the terminal attributes"
171 termattrs_body()
173 h_run termattrs
176 atf_test_case assume_default_colors
177 assume_default_colors_head()
179 atf_set "descr" "Check setting the default color pair"
181 assume_default_colors_body()
183 h_run assume_default_colors
186 atf_test_case attributes
187 attributes_head()
189 atf_set "descr" "Check setting, clearing and getting of attributes"
191 attributes_body()
193 h_run attributes
196 atf_test_case beep
197 beep_head()
199 atf_set "descr" "Check sending a beep"
201 beep_body()
203 h_run beep
206 atf_test_case background
207 background_head()
209 atf_set "descr" "Check setting background character and attributes for both stdscr and a window."
211 background_body()
213 h_run background
216 atf_test_case can_change_color
217 can_change_color_head()
219 atf_set "descr" "Check if the terminal can change colours"
221 can_change_color_body()
223 h_run can_change_color
226 atf_test_case cbreak
227 cbreak_head()
229 atf_set "descr" "Check cbreak mode works"
231 cbreak_body()
233 h_run cbreak
236 atf_test_case clear
237 clear_head()
239 atf_set "descr" "Check clear and erase work"
241 clear_body()
243 h_run clear
246 atf_test_case copywin
247 copywin_head()
249 atf_set "descr" "Check all the modes of copying a window work"
251 copywin_body()
253 h_run copywin
256 atf_test_case curs_set
257 curs_set_head()
259 atf_set "descr" "Check setting the cursor visibility works"
261 curs_set_body()
263 h_run curs_set
266 atf_init_test_cases()
268 atf_add_test_case startup
269 atf_add_test_case addch
270 atf_add_test_case addchstr
271 atf_add_test_case addchnstr
272 atf_add_test_case addstr
273 atf_add_test_case addnstr
274 atf_add_test_case getch
275 atf_add_test_case timeout
276 atf_add_test_case window
277 atf_add_test_case wborder
278 atf_add_test_case box
279 atf_add_test_case wprintw
280 atf_add_test_case wscrl
281 atf_add_test_case mvwin
282 atf_add_test_case getstr
283 atf_add_test_case termattrs
284 atf_add_test_case can_change_color
285 atf_add_test_case assume_default_colors
286 atf_add_test_case attributes
287 # atf_add_test_case beep # comment out for now - return is wrong
288 atf_add_test_case background
289 atf_add_test_case cbreak
290 atf_add_test_case clear
291 atf_add_test_case copywin
292 atf_add_test_case curs_set