4 file="$(atf_get_srcdir)/tests/${1}"
8 $
(atf_get_srcdir
)/director \
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"
19 atf_set
"descr" "Checks curses initialisation sequence"
29 atf_set
"descr" "Tests adding a chtype to stdscr"
36 atf_test_case addchstr
39 atf_set
"descr" "Tests adding a chtype string to stdscr"
46 atf_test_case addchnstr
49 atf_set
"descr" "Tests adding bytes from a chtype string to stdscr"
59 atf_set
"descr" "Tests adding bytes from a string to stdscr"
69 atf_set
"descr" "Tests adding bytes from a string to stdscr"
79 atf_set
"descr" "Checks reading a character input"
89 atf_set
"descr" "Checks timeout when reading a character"
99 atf_set
"descr" "Checks window creation"
106 atf_test_case wborder
109 atf_set
"descr" "Checks drawing a border around a window"
119 atf_set
"descr" "Checks drawing a box around a window"
126 atf_test_case wprintw
129 atf_set
"descr" "Checks printing to a window"
139 atf_set
"descr" "Check window scrolling"
149 atf_set
"descr" "Check moving a window"
159 atf_set
"descr" "Check getting a string from input"
166 atf_test_case termattrs
169 atf_set
"descr" "Check the terminal attributes"
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
189 atf_set
"descr" "Check setting, clearing and getting of attributes"
199 atf_set
"descr" "Check sending a beep"
206 atf_test_case background
209 atf_set
"descr" "Check setting background character and attributes for both stdscr and a window."
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
229 atf_set
"descr" "Check cbreak mode works"
239 atf_set
"descr" "Check clear and erase work"
246 atf_test_case copywin
249 atf_set
"descr" "Check all the modes of copying a window work"
256 atf_test_case curs_set
259 atf_set
"descr" "Check setting the cursor visibility works"
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