Changeset 5c65b988 in rtems
- Timestamp:
- 04/09/18 03:39:19 (5 years ago)
- Branches:
- 5, master
- Children:
- 8967e5f
- Parents:
- 32f2629b
- git-author:
- Chris Johns <chrisj@…> (04/09/18 03:39:19)
- git-committer:
- Chris Johns <chrisj@…> (04/09/18 22:24:54)
- Location:
- testsuites/libtests
- Files:
-
- 90 deleted
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
testsuites/libtests/Makefile.am
r32f2629b r5c65b988 1 # 2 # Library Testsuite 3 # 4 1 5 ACLOCAL_AMFLAGS = -I ../aclocal 2 6 3 _SUBDIRS = 4 _SUBDIRS += POSIX 5 _SUBDIRS += block01 6 _SUBDIRS += block02 7 _SUBDIRS += block03 8 _SUBDIRS += block04 9 _SUBDIRS += block05 10 _SUBDIRS += block06 11 _SUBDIRS += block07 12 _SUBDIRS += block08 13 _SUBDIRS += block09 14 _SUBDIRS += block10 15 _SUBDIRS += block11 16 _SUBDIRS += block12 17 _SUBDIRS += block13 18 _SUBDIRS += block14 19 _SUBDIRS += block15 20 _SUBDIRS += block16 21 _SUBDIRS += block17 22 _SUBDIRS += bspcmdline01 23 _SUBDIRS += capture01 24 _SUBDIRS += complex 25 _SUBDIRS += cpuuse 26 _SUBDIRS += crypt01 27 _SUBDIRS += defaultconfig01 28 _SUBDIRS += devfs01 29 _SUBDIRS += devfs02 30 _SUBDIRS += devfs03 31 _SUBDIRS += devfs04 32 _SUBDIRS += deviceio01 33 _SUBDIRS += devnullfatal01 34 _SUBDIRS += dumpbuf01 35 _SUBDIRS += exit01 36 _SUBDIRS += exit02 37 _SUBDIRS += flashdisk01 38 _SUBDIRS += gxx01 39 _SUBDIRS += heapwalk 40 _SUBDIRS += i2c01 41 _SUBDIRS += libfdt01 42 _SUBDIRS += malloc02 43 _SUBDIRS += malloc03 44 _SUBDIRS += malloc04 45 _SUBDIRS += malloctest 46 _SUBDIRS += math 47 _SUBDIRS += mathf 48 _SUBDIRS += mathl 49 _SUBDIRS += md501 50 _SUBDIRS += monitor 51 _SUBDIRS += monitor02 52 _SUBDIRS += mouse01 53 _SUBDIRS += newlib01 54 _SUBDIRS += putenvtest 55 _SUBDIRS += pwdgrp01 56 _SUBDIRS += pwdgrp02 57 _SUBDIRS += getentropy01 58 _SUBDIRS += rbheap01 59 _SUBDIRS += rtmonuse 60 _SUBDIRS += sha 61 _SUBDIRS += shell01 62 _SUBDIRS += sparsedisk01 63 _SUBDIRS += spi01 64 _SUBDIRS += stackchk 65 _SUBDIRS += stackchk01 66 _SUBDIRS += stringto01 67 _SUBDIRS += tar01 68 _SUBDIRS += tar02 69 _SUBDIRS += tar03 70 _SUBDIRS += termios 71 _SUBDIRS += termios01 72 _SUBDIRS += termios02 73 _SUBDIRS += termios03 74 _SUBDIRS += termios04 75 _SUBDIRS += termios05 76 _SUBDIRS += termios06 77 _SUBDIRS += termios07 78 _SUBDIRS += termios08 79 _SUBDIRS += termios09 80 _SUBDIRS += top 81 _SUBDIRS += tztest 82 _SUBDIRS += uid01 83 _SUBDIRS += utf8proc01 7 include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg 8 include $(top_srcdir)/../automake/compile.am 9 10 lib_tests = 11 lib_screens = 12 lib_docs = 13 14 support_includes = -I$(top_srcdir)/../support/include 15 test_includes = -I$(top_srcdir)/support \ 16 -I$(top_srcdir)/../psxtests/include 17 18 if TEST_block01 19 lib_tests += block01 20 lib_screens += block01/block01.scn 21 lib_docs += block01/block01.doc 22 block01_SOURCES = block01/init.c 23 block01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block01) \ 24 $(support_includes) 25 endif 26 27 if TEST_block02 28 lib_tests += block02 29 lib_screens += block02/block02.scn 30 lib_docs += block02/block02.doc 31 block02_SOURCES = block02/init.c 32 block02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block02) \ 33 $(support_includes) 34 endif 35 36 if TEST_block03 37 lib_tests += block03 38 lib_screens += block03/block03.scn 39 lib_docs += block03/block03.doc 40 block03_SOURCES = block03/init.c 41 block03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block03) \ 42 $(support_includes) 43 endif 44 45 if TEST_block04 46 lib_tests += block04 47 lib_screens += block04/block04.scn 48 lib_docs += block04/block04.doc 49 block04_SOURCES = block04/init.c 50 block04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block04) \ 51 $(support_includes) 52 endif 53 54 if TEST_block05 55 lib_tests += block05 56 lib_screens += block05/block05.scn 57 lib_docs += block05/block05.doc block05/block05.png 58 block05_SOURCES = block05/init.c 59 block05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block05) \ 60 $(support_includes) 61 endif 62 63 if TEST_block06 64 lib_tests += block06 65 lib_screens += block06/block06.scn 66 lib_docs += block06/block06.doc 67 block06_SOURCES = block06/init.c 68 block06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block06) \ 69 $(support_includes) 70 endif 71 72 if TEST_block07 73 lib_tests += block07 74 lib_screens += block07/block07.scn 75 lib_docs += block07/block07.doc 76 block07_SOURCES = block07/init.c 77 block07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block07) \ 78 $(support_includes) 79 endif 80 81 if TEST_block08 82 lib_tests += block08 83 lib_screens += block08/block08.scn 84 lib_docs += block08/block08.doc 85 block08_SOURCES = block08/init.c block08/system.h \ 86 block08/bdbuf_tests.c block08/bdbuf_tests.h block08/test_disk.c \ 87 block08/bdbuf_test1_1.c block08/bdbuf_test1_2.c \ 88 block08/bdbuf_test1_3.c block08/bdbuf_test1_4.c \ 89 block08/bdbuf_test1_5.c block08/bdbuf_test2_1.c \ 90 block08/bdbuf_test2_2.c block08/bdbuf_test3_1.c \ 91 block08/bdbuf_test3_2.c block08/bdbuf_test3_3.c \ 92 block08/bdbuf_test4_1.c block08/bdbuf_test4_2.c \ 93 block08/bdbuf_test4_3.c 94 block08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block08) \ 95 $(support_includes) -I$(top_srcdir)/block08 96 endif 97 98 if TEST_block09 99 lib_tests += block09 100 lib_screens += block09/block09.scn 101 lib_docs += block09/block09.doc 102 block09_SOURCES = block09/init.c 103 block09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block09) \ 104 $(support_includes) 105 endif 106 107 if TEST_block10 108 lib_tests += block10 109 lib_screens += block10/block10.scn 110 lib_docs += block10/block10.doc block10/block10.png 111 block10_SOURCES = block10/init.c 112 block10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block10) \ 113 $(support_includes) 114 endif 115 116 if TEST_block11 117 lib_tests += block11 118 lib_screens += block11/block11.scn 119 lib_docs += block11/block11.doc 120 block11_SOURCES = block11/init.c 121 block11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block11) \ 122 $(support_includes) 123 endif 124 125 if TEST_block12 126 lib_tests += block12 127 lib_screens += block12/block12.scn 128 lib_docs += block12/block12.doc 129 block12_SOURCES = block12/init.c 130 block12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block12) \ 131 $(support_includes) 132 endif 133 134 if TEST_block13 135 lib_tests += block13 136 lib_screens += block13/block13.scn 137 lib_docs += block13/block13.doc 138 block13_SOURCES = block13/init.c 139 block13_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block13) \ 140 $(support_includes) 141 endif 142 143 if TEST_block14 144 lib_tests += block14 145 lib_screens += block14/block14.scn 146 lib_docs += block14/block14.doc 147 block14_SOURCES = block14/init.c 148 block14_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block14) \ 149 $(support_includes) 150 endif 151 152 if TEST_block15 153 lib_tests += block15 154 lib_screens += block15/block15.scn 155 lib_docs += block15/block15.doc 156 block15_SOURCES = block15/init.c 157 block15_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block15) \ 158 $(support_includes) 159 endif 160 161 if TEST_block16 162 lib_tests += block16 163 lib_screens += block16/block16.scn 164 lib_docs += block16/block16.doc 165 block16_SOURCES = block16/init.c 166 block16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block16) \ 167 $(support_includes) 168 endif 169 170 if TEST_block17 171 lib_tests += block17 172 lib_screens += block17/block17.scn 173 lib_docs += block17/block17.doc 174 block17_SOURCES = block17/init.c 175 block17_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block17) \ 176 $(support_includes) 177 endif 178 179 if TEST_bspcmdline01 180 lib_tests += bspcmdline01 181 lib_screens += bspcmdline01/bspcmdline01.scn 182 lib_docs += bspcmdline01/bspcmdline01.doc 183 bspcmdline01_SOURCES = bspcmdline01/init.c 184 bspcmdline01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_bspcmdline01) \ 185 $(support_includes) 186 endif 187 188 if TEST_calloc 189 lib_tests += calloc.norun 190 calloc_norun_SOURCES = POSIX/calloc.c 191 endif 192 193 if TEST_capture01 194 lib_tests += capture01 195 lib_screens += capture01/capture01.scn 196 lib_docs += capture01/capture01.doc 197 capture01_SOURCES = capture01/init.c capture01/test1.c \ 198 capture01/system.h 199 capture01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_capture01) \ 200 $(support_includes) 201 endif 202 203 if TEST_clock_gettime 204 lib_tests += clock_gettime.norun 205 clock_gettime_norun_SOURCES = POSIX/clock_gettime.c 206 endif 207 208 if TEST_close 209 lib_tests += close.norun 210 close_norun_SOURCES = POSIX/close.c 211 endif 212 213 if TEST_complex 214 lib_tests += complex 215 lib_screens += complex/complex.scn 216 complex_SOURCES = complex/init.c complex/docomplex.c \ 217 complex/docomplexf.c complex/docomplexl.c 218 complex_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_complex) \ 219 $(support_includes) -DNO_LONG_DOUBLE 220 complex_LDADD = -lm 221 endif 222 223 if TEST_cpuuse 224 lib_tests += cpuuse 225 lib_screens += cpuuse/cpuuse.scn 226 cpuuse_SOURCES = cpuuse/init.c cpuuse/task1.c cpuuse/task2.c \ 227 cpuuse/task3.c cpuuse/tswitch.c cpuuse/system.h 228 cpuuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_cpuuse) \ 229 $(support_includes) 230 endif 231 232 if TEST_crypt01 233 lib_tests += crypt01 234 lib_screens += crypt01/crypt01.scn 235 lib_docs += crypt01/crypt01.doc 236 crypt01_SOURCES = crypt01/init.c 237 crypt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_crypt01) \ 238 $(support_includes) 239 endif 240 241 if DEBUGGERTESTS 242 if TEST_debugger01 243 lib_tests += debugger01 244 lib_screens += debugger01/debugger01.scn 245 debugger01_SOURCES = debugger01/init.c debugger01/remote.c \ 246 debugger01/system.h 247 debugger01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_debugger01) \ 248 $(support_includes) 249 endif 250 endif 251 252 if TEST_defaultconfig01 253 lib_tests += defaultconfig01 254 lib_screens += defaultconfig01/defaultconfig01.scn 255 lib_docs += defaultconfig01/defaultconfig01.doc 256 defaultconfig01_SOURCES = defaultconfig01/init.c 257 defaultconfig01_CPPFLAGS = $(AM_CPPFLAGS) \ 258 $(TEST_FLAGS_defaultconfig01) $(support_includes) 259 endif 260 261 if TEST_devfs01 262 lib_tests += devfs01 263 lib_screens += devfs01/devfs01.scn 264 lib_docs += devfs01/devfs01.doc 265 devfs01_SOURCES = devfs01/init.c 266 devfs01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs01) \ 267 $(support_includes) 268 endif 269 270 if TEST_devfs02 271 lib_tests += devfs02 272 lib_screens += devfs02/devfs02.scn 273 lib_docs += devfs02/devfs02.doc 274 devfs02_SOURCES = devfs02/init.c 275 devfs02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs02) \ 276 $(support_includes) 277 endif 278 279 if TEST_devfs03 280 lib_tests += devfs03 281 lib_screens += devfs03/devfs03.scn 282 lib_docs += devfs03/devfs03.doc 283 devfs03_SOURCES = devfs03/init.c 284 devfs03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs03) \ 285 $(support_includes) 286 endif 287 288 if TEST_devfs04 289 lib_tests += devfs04 290 lib_screens += devfs04/devfs04.scn 291 lib_docs += devfs04/devfs04.doc 292 devfs04_SOURCES = devfs04/init.c devfs04/test_driver.c \ 293 devfs04/test_driver.h 294 devfs04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs04) \ 295 $(support_includes) 296 endif 297 298 if TEST_deviceio01 299 lib_tests += deviceio01 300 lib_screens += deviceio01/deviceio01.scn 301 lib_docs += deviceio01/deviceio01.doc 302 deviceio01_SOURCES = deviceio01/init.c deviceio01/test_driver.c \ 303 deviceio01/test_driver.h 304 deviceio01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_deviceio01) \ 305 $(support_includes) 306 endif 307 308 if TEST_devnullfatal01 309 lib_tests += devnullfatal01 310 lib_screens += devnullfatal01/devnullfatal01.scn 311 lib_docs += devnullfatal01/devnullfatal01.doc 312 devnullfatal01_SOURCES = ../sptests/spfatal_support/init.c \ 313 ../sptests/spfatal_support/system.h devnullfatal01/testcase.h 314 devnullfatal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devnullfatal01) \ 315 $(support_includes) -I$(top_srcdir)/../../sptests/spfatal_support \ 316 -I$(top_srcdir)/devnullfatal01 317 endif 318 319 if DLTESTS 320 if TEST_dl01 321 lib_tests += dl01 322 lib_screens += dl01/dl01.scn 323 lib_docs += dl01/dl01.doc 324 dl01_SOURCES = dl01/init.c dl01/dl-load.c dl01-tar.c dl01-tar.h 325 dl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl01) $(support_includes) 326 dl01-o1.o: dl01/dl-o1.c 327 $(COMPILE) -c -o $@ $< 328 dl01.tar: dl01-o1.o 329 @rm -f $@ 330 $(PAX) -w -f $@ $< 331 dl01-tar.c: dl01.tar 332 $(BIN2C) -C $< $@ 333 dl01-tar.h: dl01.tar 334 $(BIN2C) -H $< $@ 335 dl01-tar.o: dl01-tar.c dl01-tar.h 336 dl01/init.c: dl01-tar.o 337 dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES) 338 @rm -f dl01.pre 339 $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 340 dl01-sym.o: dl01.pre 341 rtems-syms -e -c "$(CFLAGS)" -o $@ $< 342 dl01$(EXEEXT): $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o 343 @rm -f $@ 344 $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 345 CLEANFILES += dl01.pre dl01-sym.o dl02-o1.o dl01.tar dl01-tar.h 346 endif 347 endif 348 349 if DLTESTS 350 if TEST_dl02 351 lib_tests += dl02 352 lib_screens += dl02/dl02.scn 353 lib_docs += dl02/dl02.doc 354 dl02_SOURCES = dl02/init.c dl02/dl-load.c dl02-tar.c dl02-tar.h 355 dl02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl02) $(support_includes) 356 dl02-o1.o: dl02/dl-o1.c 357 $(COMPILE) -c -o $@ $< 358 dl02-o2.o: dl02/dl-o2.c 359 $(COMPILE) -c -o $@ $< 360 dl02.tar: dl02-o1.o dl02-o2.o 361 @rm -f $@ 362 $(PAX) -w -f $@ $< 363 dl02-tar.c: dl02.tar 364 $(BIN2C) -C $< $@ 365 dl02-tar.h: dl02.tar 366 $(BIN2C) -H $< $@ 367 dl02-tar.o: dl02-tar.c dl02-tar.h 368 dl02/init.c: dl02-tar.o 369 dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES) 370 @rm -f dl02.pre 371 $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 372 dl02-sym.o: dl02.pre 373 rtems-syms -e -c "$(CFLAGS)" -o $@ $< 374 dl02$(EXEEXT): $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o 375 @rm -f $@ 376 $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 377 CLEANFILES += dl02.pre dl02-sym.o dl02-o1.o dl02-o2.o dl02.tar dl02-tar.h 378 endif 379 endif 380 381 if DLTESTS 382 if TEST_dl03 383 lib_tests += dl03 384 lib_screens += dl03/dl03.scn 385 lib_docs += dl03/dl03.doc 386 dl03_SOURCES = dl03/init.c dl03/dl-cache.c 387 dl03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl03) $(support_includes) 388 endif 389 endif 390 391 if DLTESTS 392 if HAS_CXX 393 if TEST_dl04 394 lib_tests += dl04 395 lib_screens += dl04/dl04.scn 396 lib_docs += dl04/dl04.doc 397 dl04_SOURCES = dl04/init.c dl04/dl-load.c dl04/dl-cpp.cpp dl04-tar.c \ 398 dl04-tar.h 399 dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes) 400 dl04-o4.o: dl04/dl-o4.cpp 401 $(CXXCOMPILE) -c -o $@ $< 402 dl04.tar: dl04-o4.o 403 @rm -f $@ 404 $(PAX) -w -f $@ $< 405 dl04-tar.c: dl04.tar 406 $(BIN2C) -C $< $@ 407 dl04-tar.h: dl04.tar 408 $(BIN2C) -H $< $@ 409 dl04-tar.o: dl04-tar.c dl04-tar.h 410 dl04/init.c: dl04-tar.o 411 dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES) 412 @rm -f dl04.pre 413 $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 414 dl04-sym.o: dl04.pre 415 rtems-syms -e -c "$(CFLAGS)" -o $@ $< 416 dl04$(EXEEXT): $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o 417 @rm -f $@ 418 $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 419 CLEANFILES += dl04.pre dl04-sym.o dl04-o4.o dl04.tar dl04-tar.h 420 endif 421 endif 422 endif 423 424 if DLTESTS 425 if HAS_CXX 426 if TEST_dl05 427 lib_tests += dl05 428 lib_screens += dl05/dl05.scn 429 lib_docs += dl05/dl05.doc 430 dl05_SOURCES = dl05/init.c dl05/dl-load.c dl05/dl-cpp.cpp dl05-tar.c \ 431 dl05-tar.h 432 dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes) 433 dl05-o5.o: dl05/dl-o5.cpp 434 $(CXXCOMPILE) -c -o $@ $< 435 dl05.tar: dl05-o5.o 436 @rm -f $@ 437 $(PAX) -w -f $@ $< 438 dl05-tar.c: dl05.tar 439 $(BIN2C) -C $< $@ 440 dl05-tar.h: dl05.tar 441 $(BIN2C) -H $< $@ 442 dl05-tar.o: dl05-tar.c dl05-tar.h 443 dl05/init.c: dl05-tar.o 444 dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES) 445 @rm -f dl05.pre 446 $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 447 dl05-sym.o: dl05.pre 448 rtems-syms -e -c "$(CFLAGS)" -o $@ $< 449 dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o 450 @rm -f $@ 451 $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ 452 CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h 453 endif 454 endif 455 endif 456 457 if TEST_dumpbuf01 458 lib_tests += dumpbuf01 459 lib_screens += dumpbuf01/dumpbuf01.scn 460 lib_docs += dumpbuf01/dumpbuf01.doc 461 dumpbuf01_SOURCES = dumpbuf01/init.c 462 dumpbuf01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dumpbuf01) \ 463 $(support_includes) 464 endif 465 466 if TEST_dup2 467 lib_tests += dup2.norun 468 dup2_norun_SOURCES = POSIX/dup2.c 469 endif 470 471 if TEST_exit01 472 lib_tests += exit01 473 lib_screens += exit01/exit01.scn 474 lib_docs += exit01/exit01.doc 475 exit01_SOURCES = exit01/init.c 476 exit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit01) \ 477 $(support_includes) 478 endif 479 480 if TEST_exit02 481 lib_tests += exit02 482 lib_screens += exit02/exit02.scn 483 lib_docs += exit02/exit02.doc 484 exit02_SOURCES = exit02/init.c 485 exit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit02) \ 486 $(support_includes) 487 endif 488 489 if TEST_fcntl 490 lib_tests += fcntl.norun 491 fcntl_norun_SOURCES = POSIX/fcntl.c 492 endif 493 494 if TEST_flashdisk01 495 lib_tests += flashdisk01 496 lib_screens += flashdisk01/flashdisk01.scn 497 lib_docs += flashdisk01/flashdisk01.doc 498 flashdisk01_SOURCES = flashdisk01/init.c \ 499 flashdisk01/test-file-system.c 500 flashdisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_flashdisk01) \ 501 $(support_includes) 502 endif 503 504 if TEST_flockfile 505 lib_tests += flockfile.norun 506 flockfile_norun_SOURCES = POSIX/flockfile.c 507 endif 508 509 if TEST_fork 510 lib_tests += fork.norun 511 fork_norun_SOURCES = POSIX/fork.c 512 endif 513 514 if TEST_free 515 lib_tests += free.norun 516 free_norun_SOURCES = POSIX/free.c 517 endif 518 519 if TEST_fstat 520 lib_tests += fstat.norun 521 fstat_norun_SOURCES = POSIX/fstat.c 522 endif 523 524 if NETTESTS 525 if TEST_ftp01 526 lib_tests += ftp01 527 lib_screens += ftp01/ftp01.scn 528 lib_docs += ftp01/ftp01.doc 529 ftp01_SOURCES = ftp01/init.c 530 ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \ 531 $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking 532 ftp01_LDADD = -lftpd 533 endif 534 endif 535 536 if TEST_ftrylockfile 537 lib_tests += ftrylockfile.norun 538 ftrylockfile_norun_SOURCES = POSIX/ftrylockfile.c 539 endif 540 541 if TEST_funlockfile 542 lib_tests += funlockfile.norun 543 funlockfile_norun_SOURCES = POSIX/funlockfile.c 544 endif 545 546 if TEST_getentropy01 547 lib_tests += getentropy01 548 lib_screens += getentropy01/getentropy01.scn 549 lib_docs += getentropy01/getentropy01.doc 550 getentropy01_SOURCES = getentropy01/init.c 551 getentropy01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_getentropy01) \ 552 $(support_includes) 553 endif 554 555 if TEST_getlogin 556 lib_tests += getlogin.norun 557 getlogin_norun_SOURCES = POSIX/getlogin.c 558 endif 559 560 if TEST_getpwnam 561 lib_tests += getpwnam.norun 562 getpwnam_norun_SOURCES = POSIX/getpwnam.c 563 endif 564 565 if TEST_getpwuid 566 lib_tests += getpwuid.norun 567 getpwuid_norun_SOURCES = POSIX/getpwuid.c 568 endif 569 570 if TEST_gettimeofday 571 lib_tests += gettimeofday.norun 572 gettimeofday_norun_SOURCES = POSIX/gettimeofday.c 573 endif 574 575 if TEST_getuid 576 lib_tests += getuid.norun 577 getuid_norun_SOURCES = POSIX/getuid.c 578 endif 579 580 if TEST_gxx01 581 lib_tests += gxx01 582 lib_screens += gxx01/gxx01.scn 583 lib_docs += gxx01/gxx01.doc 584 gxx01_SOURCES = gxx01/init.c 585 gxx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_gxx01) \ 586 $(support_includes) 587 endif 588 589 if TEST_heapwalk 590 lib_tests += heapwalk 591 lib_screens += heapwalk/heapwalk.scn 592 heapwalk_SOURCES = heapwalk/init.c heapwalk/system.h 593 heapwalk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_heapwalk) \ 594 $(support_includes) 595 endif 596 597 if TEST_htonl 598 lib_tests += htonl.norun 599 htonl_norun_SOURCES = POSIX/htonl.c 600 endif 601 602 if TEST_i2c01 603 lib_tests += i2c01 604 lib_screens += i2c01/i2c01.scn 605 lib_docs += i2c01/i2c01.doc 606 i2c01_SOURCES = i2c01/init.c 607 i2c01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_i2c01) \ 608 $(support_includes) 609 endif 610 611 if TEST_iconv 612 lib_tests += iconv.norun 613 iconv_norun_SOURCES = POSIX/iconv.c 614 endif 615 616 if TEST_iconv_close 617 lib_tests += iconv_close.norun 618 iconv_close_norun_SOURCES = POSIX/iconv_close.c 619 endif 620 621 if TEST_iconv_open 622 lib_tests += iconv_open.norun 623 iconv_open_norun_SOURCES = POSIX/iconv_open.c 624 endif 625 626 if TEST_kill 627 lib_tests += kill.norun 628 kill_norun_SOURCES = POSIX/kill.c 629 endif 630 631 if TEST_libfdt01 632 lib_tests += libfdt01 633 lib_screens += libfdt01/libfdt01.scn 634 lib_docs += libfdt01/libfdt01.doc 635 libfdt01_SOURCES = libfdt01/init.c libfdt01/some.c 636 libfdt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_libfdt01) \ 637 $(support_includes) 638 endif 639 640 if TEST_longjmp 641 lib_tests += longjmp.norun 642 longjmp_norun_SOURCES = POSIX/longjmp.c 643 endif 644 645 if TEST_lseek 646 lib_tests += lseek.norun 647 lseek_norun_SOURCES = POSIX/lseek.c 648 endif 649 650 if TEST_lstat 651 lib_tests += lstat.norun 652 lstat_norun_SOURCES = POSIX/lstat.c 653 endif 654 655 if TEST_malloc 656 lib_tests += malloc.norun 657 malloc_norun_SOURCES = POSIX/malloc.c 658 endif 659 660 if TEST_malloc02 661 lib_tests += malloc02 662 lib_screens += malloc02/malloc02.scn 663 lib_docs += malloc02/malloc02.doc 664 malloc02_SOURCES = malloc02/init.c 665 malloc02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc02) \ 666 $(support_includes) 667 endif 668 669 if TEST_malloc03 670 lib_tests += malloc03 671 lib_screens += malloc03/malloc03.scn 672 lib_docs += malloc03/malloc03.doc 673 malloc03_SOURCES = malloc03/init.c 674 malloc03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc03) \ 675 $(support_includes) 676 endif 677 678 if TEST_malloc04 679 lib_tests += malloc04 680 lib_screens += malloc04/malloc04.scn 681 lib_docs += malloc04/malloc04.doc 682 malloc04_SOURCES = malloc04/init.c 683 malloc04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc04) \ 684 $(support_includes) 685 endif 686 687 if TEST_malloctest 688 lib_tests += malloctest 689 lib_screens += malloctest/malloctest.scn 690 malloctest_SOURCES = malloctest/init.c malloctest/task1.c \ 691 malloctest/system.h 692 malloctest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloctest) \ 693 $(support_includes) 694 endif 695 696 if TEST_math 697 lib_tests += math 698 lib_screens += math/math.scn 699 math_SOURCES = math/init.c math/domath.c 700 math_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_math) $(support_includes) \ 701 -I$(top_srcdir)/math 702 math_LDADD = -lm 703 endif 704 705 if TEST_mathf 706 lib_tests += mathf 707 lib_screens += mathf/mathf.scn 708 mathf_SOURCES = mathf/init.c mathf/domathf.c 709 mathf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathf) \ 710 $(support_includes) -I$(top_srcdir)/math 711 mathf_LDADD = -lm 712 endif 713 714 if TEST_mathl 715 lib_tests += mathl 716 lib_screens += mathl/mathl.scn 717 mathl_SOURCES = mathl/init.c mathl/domathl.c 718 mathl_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathl) \ 719 $(support_includes) -I$(top_srcdir)/math \ 720 -DNO_LONG_DOUBLE 721 mathl_LDADD = -lm 722 endif 723 724 if TEST_md501 725 lib_tests += md501 726 lib_screens += md501/md501.scn 727 lib_docs += md501/md501.doc 728 md501_SOURCES = md501/init.c 729 md501_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_md501) \ 730 $(support_includes) 731 endif 84 732 85 733 if NETTESTS 86 734 if HAS_POSIX 87 _SUBDIRS += mghttpd01 88 endif 89 _SUBDIRS += ftp01 90 _SUBDIRS += networking01 91 _SUBDIRS += syscall01 92 endif 93 94 ## 95 ## The libdl use use AM's BUILT_SOURCE and this has a weird side effect of 96 ## restarting the subdir loop. No idea why. 97 ## 98 if DLTESTS 99 _SUBDIRS += dl01 dl02 dl03 100 if HAS_CXX 101 _SUBDIRS += dl04 dl05 102 endif 103 endif 104 105 if DEBUGGERTESTS 106 _SUBDIRS += debugger01 107 endif 108 109 include $(top_srcdir)/../automake/subdirs.am 735 if TEST_mghttpd01 736 lib_tests += mghttpd01 737 lib_screens += mghttpd01/mghttpd01.scn 738 lib_docs += mghttpd01/mghttpd01.doc 739 mghttpd01_SOURCES = mghttpd01/init.c mghttpd01_tar.c \ 740 mghttpd01_tar.h mghttpd01/test-http-client.c \ 741 mghttpd01/test-http-client.h 742 mghttpd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mghttpd01) \ 743 $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking 744 mghttpd01_LDADD = -lmghttpd 745 mghttpd01_tar.c: mghttpd01/mghttpd01.tar 746 $(BIN2C) -C $< $@ 747 mghttpd01_tar.h: mghttpd01/mghttpd01.tar 748 $(BIN2C) -H $< $@ 749 mghttpd01-tar.o: mghttpd01-tar.c mghttpd01-tar.h 750 mghttpd01/init.c: mghttpd01_tar.h 751 CLEANFILES += mghttpd01.tar mghttpd01_tar.c mghttpd01_tar.h 752 endif 753 endif 754 endif 755 756 if TEST_monitor 757 lib_tests += monitor 758 monitor_SOURCES = monitor/init.c monitor/system.h 759 monitor_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor) \ 760 $(support_includes) 761 endif 762 763 if TEST_monitor02 764 lib_tests += monitor02 765 lib_screens += monitor02/monitor02.scn 766 monitor02_SOURCES = monitor02/init.c monitor02/system.h 767 monitor02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor02) \ 768 $(support_includes) 769 endif 770 771 if TEST_mouse01 772 lib_tests += mouse01 773 lib_screens += mouse01/mouse01.scn 774 lib_docs += mouse01/mouse01.doc 775 mouse01_SOURCES = mouse01/init.c mouse01/serial_mouse_config.c \ 776 mouse01/msmouse.c termios04/termios_testdriver_intr.c 777 mouse01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mouse01) \ 778 $(support_includes) -I$(top_srcdir)/termios04 779 endif 780 781 if TEST_nanosleep 782 lib_tests += nanosleep.norun 783 nanosleep_norun_SOURCES = POSIX/nanosleep.c 784 endif 785 786 if NETTESTS 787 if TEST_networking01 788 lib_tests += networking01 789 lib_screens += networking01/networking01.scn 790 lib_docs += networking01/networking01.doc 791 networking01_SOURCES = networking01/init.c 792 networking01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_networking01) \ 793 $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking 794 endif 795 endif 796 797 if TEST_newlib01 798 lib_tests += newlib01 799 lib_screens += newlib01/newlib01.scn 800 lib_docs += newlib01/newlib01.doc 801 newlib01_SOURCES = newlib01/init.c 802 newlib01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_newlib01) \ 803 $(support_includes) 804 endif 805 806 if TEST_open 807 lib_tests += open.norun 808 open_norun_SOURCES = POSIX/open.c 809 endif 810 811 if TEST_pipe 812 lib_tests += pipe.norun 813 pipe_norun_SOURCES = POSIX/pipe.c 814 endif 815 816 if TEST_posix_memalign 817 lib_tests += posix_memalign.norun 818 posix_memalign_norun_SOURCES = POSIX/posix_memalign.c 819 endif 820 821 if TEST_putenvtest 822 lib_tests += putenvtest 823 lib_screens += putenvtest/putenvtest.scn 824 putenvtest_SOURCES = putenvtest/init.c 825 putenvtest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_putenvtest) \ 826 $(support_includes) 827 endif 828 829 if TEST_pwdgrp01 830 lib_tests += pwdgrp01 831 lib_screens += pwdgrp01/pwdgrp01.scn 832 lib_docs += pwdgrp01/pwdgrp01.doc 833 pwdgrp01_SOURCES = pwdgrp01/init.c 834 pwdgrp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp01) \ 835 $(support_includes) 836 endif 837 838 if TEST_pwdgrp02 839 lib_tests += pwdgrp02 840 lib_screens += pwdgrp02/pwdgrp02.scn 841 lib_docs += pwdgrp02/pwdgrp02.doc 842 pwdgrp02_SOURCES = pwdgrp02/init.c 843 pwdgrp02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp02) \ 844 $(support_includes) 845 endif 846 847 if TEST_rbheap01 848 lib_tests += rbheap01 849 lib_screens += rbheap01/rbheap01.scn 850 lib_docs += rbheap01/rbheap01.doc 851 rbheap01_SOURCES = rbheap01/init.c 852 rbheap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rbheap01) \ 853 $(support_includes) 854 endif 855 856 if TEST_read 857 lib_tests += read.norun 858 read_norun_SOURCES = POSIX/read.c 859 endif 860 861 if TEST_readv 862 lib_tests += readv.norun 863 readv_norun_SOURCES = POSIX/readv.c 864 endif 865 866 if TEST_realloc 867 lib_tests += realloc.norun 868 realloc_norun_SOURCES = POSIX/realloc.c 869 endif 870 871 if TEST_rtmonuse 872 lib_tests += rtmonuse 873 lib_screens += rtmonuse/rtmonuse.scn 874 rtmonuse_SOURCES = rtmonuse/init.c rtmonuse/getall.c rtmonuse/task1.c \ 875 rtmonuse/system.h 876 rtmonuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rtmonuse) \ 877 $(support_includes) 878 endif 879 880 if TEST_setjmp 881 lib_tests += setjmp.norun 882 setjmp_norun_SOURCES = POSIX/setjmp.c 883 endif 884 885 if TEST_sha 886 lib_tests += sha 887 lib_screens += sha/sha.scn 888 lib_docs += sha/sha.doc 889 sha_SOURCES = sha/init.c 890 sha_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sha) $(support_includes) 891 endif 892 893 if TEST_shell01 894 lib_tests += shell01 895 lib_screens += shell01/shell01.scn 896 lib_docs += shell01/shell01.doc 897 shell01_SOURCES = shell01/init.c 898 shell01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_shell01) \ 899 $(support_includes) 900 endif 901 902 if TEST_sigaddset 903 lib_tests += sigaddset.norun 904 sigaddset_norun_SOURCES = POSIX/sigaddset.c 905 endif 906 907 if TEST_sigdelset 908 lib_tests += sigdelset.norun 909 sigdelset_norun_SOURCES = POSIX/sigdelset.c 910 endif 911 912 if TEST_sigemptyset 913 lib_tests += sigemptyset.norun 914 sigemptyset_norun_SOURCES = POSIX/sigemptyset.c 915 endif 916 917 if TEST_sigfillset 918 lib_tests += sigfillset.norun 919 sigfillset_norun_SOURCES = POSIX/sigfillset.c 920 endif 921 922 if TEST_sigismember 923 lib_tests += sigismember.norun 924 sigismember_norun_SOURCES = POSIX/sigismember.c 925 endif 926 927 if TEST_sigprocmask 928 lib_tests += sigprocmask.norun 929 sigprocmask_norun_SOURCES = POSIX/sigprocmask.c 930 endif 931 932 if TEST_sparsedisk01 933 lib_tests += sparsedisk01 934 lib_screens += sparsedisk01/sparsedisk01.scn 935 lib_docs += sparsedisk01/sparsedisk01.doc 936 sparsedisk01_SOURCES = sparsedisk01/init.c 937 sparsedisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sparsedisk01) \ 938 $(support_includes) 939 endif 940 941 if TEST_spi01 942 lib_tests += spi01 943 lib_screens += spi01/spi01.scn 944 lib_docs += spi01/spi01.doc 945 spi01_SOURCES = spi01/init.c 946 spi01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spi01) \ 947 $(support_includes) 948 endif 949 950 if TEST_stackchk 951 lib_tests += stackchk 952 lib_screens += stackchk/stackchk.scn 953 stackchk_SOURCES = stackchk/blow.c stackchk/init.c stackchk/task1.c \ 954 stackchk/system.h 955 stackchk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk) \ 956 $(support_includes) 957 endif 958 959 if TEST_stackchk01 960 lib_tests += stackchk01 961 lib_screens += stackchk01/stackchk01.scn 962 lib_docs += stackchk01/stackchk01.doc 963 stackchk01_SOURCES = stackchk01/init.c 964 stackchk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk01) \ 965 $(support_includes) 966 endif 967 968 if TEST_stat 969 lib_tests += stat.norun 970 stat_norun_SOURCES = POSIX/stat.c 971 endif 972 973 if TEST_stringto01 974 lib_tests += stringto01 975 lib_screens += stringto01/stringto01.scn 976 lib_docs += stringto01/stringto01.doc 977 stringto01_SOURCES = stringto01/init.c \ 978 stringto01/stringto_test_template.h 979 stringto01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stringto01) \ 980 $(support_includes) 981 endif 982 983 if NETTESTS 984 if TEST_syscall01 985 lib_tests += syscall01 986 lib_screens += syscall01/syscall01.scn 987 lib_docs += syscall01/syscall01.doc 988 syscall01_SOURCES = syscall01/init.c 989 syscall01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_syscall01) \ 990 $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking 991 endif 992 endif 993 994 if TARTESTS 995 if TEST_tar01 996 lib_tests += tar01 997 lib_screens += tar01/tar01.scn 998 lib_docs += tar01/tar01.doc 999 tar01_SOURCES = tar01/init.c ../psxtests/psxfile01/test_cat.c \ 1000 tar01_tar.c tar01_tar.h tar01_tar_gz.c tar01_tar_gz.h 1001 if TARTEST_XZ 1002 tar01_SOURCES += tar01_tar_xz.c tar01_tar_xz.h 1003 endif 1004 tar01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar01) \ 1005 $(support_includes) $(test_includes) -I$(top_srcdir)/include 1006 tar01_LDADD = -lrtemscpu -lz 1007 tar01.tar: Makefile 1008 rm -rf tar01_fs 1009 $(MKDIR_P) tar01_fs/home 1010 (echo "This is a test of loading an RTEMS filesystem from an" ; \ 1011 echo "initial tar image.") > tar01_fs/home/test_file 1012 (echo "#! joel" ; \ 1013 echo "ls -las /dev") > tar01_fs/home/test_script 1014 chmod +x tar01_fs/home/test_script 1015 (cd tar01_fs; \ 1016 $(LN_S) home/test_file symlink; \ 1017 $(PAX) -w -f ../tar01.tar home symlink) 1018 tar01_tar.c: tar01.tar 1019 $(BIN2C) -C $< $@ 1020 tar01_tar.h: tar01.tar 1021 $(BIN2C) -H $< $@ 1022 tar01-tar.o: tar01-tar.c tar01-tar.h 1023 tar01.tar.gz: tar01.tar 1024 $(GZIP) < $< > $@ 1025 tar01_tar_gz.c: tar01.tar.gz 1026 $(BIN2C) -C $< $@ 1027 tar01_tar_gz.h: tar01.tar.gz 1028 $(BIN2C) -H $< $@ 1029 CLEANFILES += tar01.tar tar01_tar.c tar01_tar.h \ 1030 tar01.tar.gz tar01_tar_gz.c tar01_tar_gz.h 1031 if TARTEST_XZ 1032 tar01.tar.xz: tar01.tar 1033 $(XZ) < $< > $@ 1034 tar01_tar_xz.c: tar01.tar.xz 1035 $(BIN2C) -C $< $@ 1036 tar01_tar_xz.h: tar01.tar.xz 1037 $(BIN2C) -H $< $@ 1038 TAR01_XZ_H = tar01_tar_xz.h 1039 CLEANFILES += tar01.tar.xz tar01_tar_xz.c tar01_tar_xz.h 1040 endif 1041 tar01/init.c: tar01_tar.h tar01_tar_gz.h $(TAR01_XZ_H) 1042 endif 1043 endif 1044 1045 if TARTESTS 1046 if TEST_tar02 1047 lib_tests += tar02 1048 lib_screens += tar02/tar02.scn 1049 lib_docs += tar02/tar02.doc 1050 tar02_SOURCES = tar02/init.c ../psxtests/psxfile01/test_cat.c \ 1051 tar02_tar.c tar02_tar.h 1052 tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \ 1053 $(support_includes) $(test_includes) -I$(top_srcdir)/include 1054 tar02.tar: Makefile 1055 rm -rf tar02_fs 1056 $(MKDIR_P) tar02_fs/home 1057 (echo "This is a test of loading an RTEMS filesystem from an" ; \ 1058 echo "initial tar image.") > tar02_fs/home/test_file 1059 (echo "#! joel" ; \ 1060 echo "ls -las /dev") > tar02_fs/home/test_script 1061 chmod +x tar02_fs/home/test_script 1062 (cd tar02_fs; \ 1063 $(LN_S) home/test_file symlink; \ 1064 $(PAX) -w -f ../tar02.tar home symlink) 1065 tar02_tar.c: tar02.tar 1066 $(BIN2C) -C $< $@ 1067 tar02_tar.h: tar02.tar 1068 $(BIN2C) -H $< $@ 1069 tar02-tar.o: tar02-tar.c tar02-tar.h 1070 tar02/init.c: tar02_tar.h 1071 CLEANFILES += tar02.tar tar02_tar.c tar02_tar.h 1072 endif 1073 endif 1074 1075 if TEST_tar03 1076 lib_tests += tar03 1077 lib_screens += tar03/tar03.scn 1078 lib_docs += tar03/tar03.doc 1079 tar03_SOURCES = tar03/init.c 1080 tar03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar03) \ 1081 $(support_includes) 1082 endif 1083 1084 if TEST_termios 1085 lib_tests += termios 1086 termios_SOURCES = termios/init.c 1087 termios_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios) \ 1088 $(support_includes) 1089 endif 1090 1091 if TEST_termios01 1092 lib_tests += termios01 1093 lib_screens += termios01/termios01.scn 1094 lib_docs += termios01/termios01.doc 1095 termios01_SOURCES = termios01/init.c termios01/termios_testdriver.c \ 1096 termios01/termios_testdriver.h 1097 termios01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios01) \ 1098 $(support_includes) -I$(top_srcdir)/include 1099 endif 1100 1101 if TEST_termios02 1102 lib_tests += termios02 1103 lib_screens += termios02/termios02.scn 1104 lib_docs += termios02/termios02.doc 1105 termios02_SOURCES = termios02/init.c 1106 termios02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios02) \ 1107 $(support_includes) -I$(top_srcdir)/include 1108 endif 1109 1110 if TEST_termios03 1111 lib_tests += termios03 1112 lib_screens += termios03/termios03.scn 1113 lib_docs += termios03/termios03.doc 1114 termios03_SOURCES = termios03/init.c \ 1115 termios03/termios_testdriver_polled.c \ 1116 termios03/termios_testdriver_polled.h 1117 termios03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios03) \ 1118 $(support_includes) 1119 endif 1120 1121 if TEST_termios04 1122 lib_tests += termios04 1123 lib_screens += termios04/termios04.scn 1124 lib_docs += termios04/termios04.doc 1125 termios04_SOURCES = termios04/init.c \ 1126 termios04/termios_testdriver_intr.c \ 1127 termios04/termios_testdriver_intr.h 1128 termios04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios04) \ 1129 $(support_includes) 1130 endif 1131 1132 if TEST_termios05 1133 lib_tests += termios05 1134 lib_screens += termios05/termios05.scn 1135 lib_docs += termios05/termios05.doc 1136 termios05_SOURCES = termios05/init.c \ 1137 termios04/termios_testdriver_intr.c 1138 termios05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios05) \ 1139 $(support_includes) -I$(top_srcdir)/termios04 -DTASK_DRIVEN 1140 endif 1141 1142 if TEST_termios06 1143 lib_tests += termios06 1144 lib_screens += termios06/termios06.scn 1145 lib_docs += termios06/termios06.doc 1146 termios06_SOURCES = termios06/init.c \ 1147 termios03/termios_testdriver_polled.c termios06/test_pppd.c 1148 termios06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios06) \ 1149 $(support_includes) -I$(top_srcdir)/termios03 1150 endif 1151 1152 if TEST_termios07 1153 lib_tests += termios07 1154 lib_screens += termios07/termios07.scn 1155 lib_docs += termios07/termios07.doc 1156 termios07_SOURCES = termios07/init.c \ 1157 termios04/termios_testdriver_intr.c 1158 termios07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios07) \ 1159 $(support_includes) -I$(top_srcdir)/termios04 1160 endif 1161 1162 if TEST_termios08 1163 lib_tests += termios08 1164 lib_screens += termios08/termios08.scn 1165 lib_docs += termios08/termios08.doc 1166 termios08_SOURCES = termios08/init.c \ 1167 termios03/termios_testdriver_polled.c 1168 termios08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios08) \ 1169 $(support_includes) -I$(top_srcdir)/termios03 1170 endif 1171 1172 if TEST_termios09 1173 lib_tests += termios09 1174 lib_screens += termios09/termios09.scn 1175 lib_docs += termios09/termios09.doc 1176 termios09_SOURCES = termios09/init.c 1177 termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \ 1178 $(support_includes) 1179 endif 1180 1181 if TEST_top 1182 lib_tests += top 1183 lib_screens += top/top.scn 1184 top_SOURCES = top/init.c top/task1.c top/task2.c top/task3.c \ 1185 top/system.h 1186 top_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_top) $(support_includes) 1187 endif 1188 1189 if TEST_tztest 1190 lib_tests += tztest 1191 lib_screens += tztest/tztest.scn 1192 lib_docs += tztest/tztest.doc 1193 tztest_SOURCES = tztest/init.c 1194 tztest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tztest) \ 1195 $(support_includes) 1196 endif 1197 1198 if TEST_uid01 1199 lib_tests += uid01 1200 lib_docs += uid01/uid01.doc 1201 uid01_SOURCES = uid01/init.c uid01/serial_mouse_config.c \ 1202 uid01/msmouse.c termios04/termios_testdriver_intr.c 1203 uid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_uid01) \ 1204 $(support_includes) -I$(top_srcdir)/termios04 1205 endif 1206 1207 if TEST_unlink 1208 lib_tests += unlink.norun 1209 unlink_norun_SOURCES = POSIX/unlink.c 1210 endif 1211 1212 if TEST_utf8proc01 1213 lib_tests += utf8proc01 1214 lib_screens += utf8proc01/utf8proc01.scn 1215 lib_docs += utf8proc01/utf8proc01.doc 1216 utf8proc01_SOURCES = utf8proc01/init.c 1217 utf8proc01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_utf8proc01) \ 1218 $(support_includes) 1219 endif 1220 1221 if TEST_vfork 1222 lib_tests += vfork.norun 1223 vfork_norun_SOURCES = POSIX/vfork.c 1224 endif 1225 1226 if TEST_wait 1227 lib_tests += wait.norun 1228 wait_norun_SOURCES = POSIX/wait.c 1229 endif 1230 1231 if TEST_waitpid 1232 lib_tests += waitpid.norun 1233 waitpid_norun_SOURCES = POSIX/waitpid.c 1234 endif 1235 1236 if TEST_write 1237 lib_tests += write.norun 1238 write_norun_SOURCES = POSIX/write.c 1239 endif 1240 1241 if TEST_writev 1242 lib_tests += writev.norun 1243 writev_norun_SOURCES = POSIX/writev.c 1244 endif 1245 1246 rtems_tests_PROGRAMS = $(lib_tests) 1247 dist_rtems_tests_DATA = $(lib_screens) $(lib_docs) 1248 110 1249 include $(top_srcdir)/../automake/local.am -
testsuites/libtests/configure.ac
r32f2629b r5c65b988 94 94 AM_CONDITIONAL(DEBUGGERTESTS,[test x"$TEST_LIBDEBUGGER" = x"yes"]) 95 95 96 # Explicitly list all Makefiles here 97 AC_CONFIG_FILES([Makefile 98 POSIX/Makefile 99 block01/Makefile 100 block02/Makefile 101 block03/Makefile 102 block04/Makefile 103 block05/Makefile 104 block06/Makefile 105 block07/Makefile 106 block08/Makefile 107 block09/Makefile 108 block10/Makefile 109 block11/Makefile 110 block12/Makefile 111 block13/Makefile 112 block14/Makefile 113 block15/Makefile 114 block16/Makefile 115 block17/Makefile 116 bspcmdline01/Makefile 117 capture01/Makefile 118 complex/Makefile 119 cpuuse/Makefile 120 crypt01/Makefile 121 debugger01/Makefile 122 defaultconfig01/Makefile 123 devfs01/Makefile 124 devfs02/Makefile 125 devfs03/Makefile 126 devfs04/Makefile 127 deviceio01/Makefile 128 devnullfatal01/Makefile 129 dl01/Makefile 130 dl02/Makefile 131 dl03/Makefile 132 dl04/Makefile 133 dl05/Makefile 134 dumpbuf01/Makefile 135 exit01/Makefile 136 exit02/Makefile 137 flashdisk01/Makefile 138 ftp01/Makefile 139 gxx01/Makefile 140 heapwalk/Makefile 141 i2c01/Makefile 142 libfdt01/Makefile 143 malloc02/Makefile 144 malloc03/Makefile 145 malloc04/Makefile 146 malloctest/Makefile 147 math/Makefile 148 mathf/Makefile 149 mathl/Makefile 150 md501/Makefile 151 mghttpd01/Makefile 152 monitor/Makefile 153 monitor02/Makefile 154 mouse01/Makefile 155 networking01/Makefile 156 newlib01/Makefile 157 putenvtest/Makefile 158 pwdgrp01/Makefile 159 pwdgrp02/Makefile 160 getentropy01/Makefile 161 rbheap01/Makefile 162 rtmonuse/Makefile 163 sha/Makefile 164 shell01/Makefile 165 sparsedisk01/Makefile 166 spi01/Makefile 167 stackchk/Makefile 168 stackchk01/Makefile 169 stringto01/Makefile 170 syscall01/Makefile 171 tar01/Makefile 172 tar02/Makefile 173 tar03/Makefile 174 termios/Makefile 175 termios01/Makefile 176 termios02/Makefile 177 termios03/Makefile 178 termios04/Makefile 179 termios05/Makefile 180 termios06/Makefile 181 termios07/Makefile 182 termios08/Makefile 183 termios09/Makefile 184 top/Makefile 185 tztest/Makefile 186 uid01/Makefile 187 utf8proc01/Makefile 188 ]) 96 # BSP Test configuration 97 RTEMS_TEST_CHECK([block01]) 98 RTEMS_TEST_CHECK([block02]) 99 RTEMS_TEST_CHECK([block03]) 100 RTEMS_TEST_CHECK([block04]) 101 RTEMS_TEST_CHECK([block05]) 102 RTEMS_TEST_CHECK([block06]) 103 RTEMS_TEST_CHECK([block07]) 104 RTEMS_TEST_CHECK([block08]) 105 RTEMS_TEST_CHECK([block09]) 106 RTEMS_TEST_CHECK([block10]) 107 RTEMS_TEST_CHECK([block11]) 108 RTEMS_TEST_CHECK([block12]) 109 RTEMS_TEST_CHECK([block13]) 110 RTEMS_TEST_CHECK([block14]) 111 RTEMS_TEST_CHECK([block15]) 112 RTEMS_TEST_CHECK([block16]) 113 RTEMS_TEST_CHECK([block17]) 114 RTEMS_TEST_CHECK([bspcmdline01]) 115 RTEMS_TEST_CHECK([calloc]) 116 RTEMS_TEST_CHECK([capture01]) 117 RTEMS_TEST_CHECK([clock_gettime]) 118 RTEMS_TEST_CHECK([close]) 119 RTEMS_TEST_CHECK([complex]) 120 RTEMS_TEST_CHECK([cpuuse]) 121 RTEMS_TEST_CHECK([crypt01]) 122 RTEMS_TEST_CHECK([debugger01]) 123 RTEMS_TEST_CHECK([defaultconfig01]) 124 RTEMS_TEST_CHECK([devfs01]) 125 RTEMS_TEST_CHECK([devfs02]) 126 RTEMS_TEST_CHECK([devfs03]) 127 RTEMS_TEST_CHECK([devfs04]) 128 RTEMS_TEST_CHECK([deviceio01]) 129 RTEMS_TEST_CHECK([devnullfatal01]) 130 RTEMS_TEST_CHECK([dl01]) 131 RTEMS_TEST_CHECK([dl02]) 132 RTEMS_TEST_CHECK([dl03]) 133 RTEMS_TEST_CHECK([dl04]) 134 RTEMS_TEST_CHECK([dl05]) 135 RTEMS_TEST_CHECK([dumpbuf01]) 136 RTEMS_TEST_CHECK([dup2]) 137 RTEMS_TEST_CHECK([exit01]) 138 RTEMS_TEST_CHECK([exit02]) 139 RTEMS_TEST_CHECK([fcntl]) 140 RTEMS_TEST_CHECK([flashdisk01]) 141 RTEMS_TEST_CHECK([flockfile]) 142 RTEMS_TEST_CHECK([fork]) 143 RTEMS_TEST_CHECK([free]) 144 RTEMS_TEST_CHECK([fstat]) 145 RTEMS_TEST_CHECK([ftp01]) 146 RTEMS_TEST_CHECK([ftrylockfile]) 147 RTEMS_TEST_CHECK([funlockfile]) 148 RTEMS_TEST_CHECK([getentropy01]) 149 RTEMS_TEST_CHECK([getlogin]) 150 RTEMS_TEST_CHECK([getpwnam]) 151 RTEMS_TEST_CHECK([getpwuid]) 152 RTEMS_TEST_CHECK([gettimeofday]) 153 RTEMS_TEST_CHECK([getuid]) 154 RTEMS_TEST_CHECK([gxx01]) 155 RTEMS_TEST_CHECK([heapwalk]) 156 RTEMS_TEST_CHECK([htonl]) 157 RTEMS_TEST_CHECK([i2c01]) 158 RTEMS_TEST_CHECK([iconv]) 159 RTEMS_TEST_CHECK([iconv_close]) 160 RTEMS_TEST_CHECK([iconv_open]) 161 RTEMS_TEST_CHECK([kill]) 162 RTEMS_TEST_CHECK([libfdt01]) 163 RTEMS_TEST_CHECK([longjmp]) 164 RTEMS_TEST_CHECK([lseek]) 165 RTEMS_TEST_CHECK([lstat]) 166 RTEMS_TEST_CHECK([malloc]) 167 RTEMS_TEST_CHECK([malloc02]) 168 RTEMS_TEST_CHECK([malloc03]) 169 RTEMS_TEST_CHECK([malloc04]) 170 RTEMS_TEST_CHECK([malloctest]) 171 RTEMS_TEST_CHECK([math]) 172 RTEMS_TEST_CHECK([mathf]) 173 RTEMS_TEST_CHECK([mathl]) 174 RTEMS_TEST_CHECK([md501]) 175 RTEMS_TEST_CHECK([mghttpd01]) 176 RTEMS_TEST_CHECK([monitor]) 177 RTEMS_TEST_CHECK([monitor02]) 178 RTEMS_TEST_CHECK([mouse01]) 179 RTEMS_TEST_CHECK([nanosleep]) 180 RTEMS_TEST_CHECK([networking01]) 181 RTEMS_TEST_CHECK([newlib01]) 182 RTEMS_TEST_CHECK([open]) 183 RTEMS_TEST_CHECK([pipe]) 184 RTEMS_TEST_CHECK([posix_memalign]) 185 RTEMS_TEST_CHECK([putenvtest]) 186 RTEMS_TEST_CHECK([pwdgrp01]) 187 RTEMS_TEST_CHECK([pwdgrp02]) 188 RTEMS_TEST_CHECK([rbheap01]) 189 RTEMS_TEST_CHECK([read]) 190 RTEMS_TEST_CHECK([readv]) 191 RTEMS_TEST_CHECK([realloc]) 192 RTEMS_TEST_CHECK([rtmonuse]) 193 RTEMS_TEST_CHECK([setjmp]) 194 RTEMS_TEST_CHECK([sha]) 195 RTEMS_TEST_CHECK([shell01]) 196 RTEMS_TEST_CHECK([sigaddset]) 197 RTEMS_TEST_CHECK([sigdelset]) 198 RTEMS_TEST_CHECK([sigemptyset]) 199 RTEMS_TEST_CHECK([sigfillset]) 200 RTEMS_TEST_CHECK([sigismember]) 201 RTEMS_TEST_CHECK([sigprocmask]) 202 RTEMS_TEST_CHECK([sparsedisk01]) 203 RTEMS_TEST_CHECK([spi01]) 204 RTEMS_TEST_CHECK([stackchk]) 205 RTEMS_TEST_CHECK([stackchk01]) 206 RTEMS_TEST_CHECK([stat]) 207 RTEMS_TEST_CHECK([stringto01]) 208 RTEMS_TEST_CHECK([syscall01]) 209 RTEMS_TEST_CHECK([tar01]) 210 RTEMS_TEST_CHECK([tar02]) 211 RTEMS_TEST_CHECK([tar03]) 212 RTEMS_TEST_CHECK([termios]) 213 RTEMS_TEST_CHECK([termios01]) 214 RTEMS_TEST_CHECK([termios02]) 215 RTEMS_TEST_CHECK([termios03]) 216 RTEMS_TEST_CHECK([termios04]) 217 RTEMS_TEST_CHECK([termios05]) 218 RTEMS_TEST_CHECK([termios06]) 219 RTEMS_TEST_CHECK([termios07]) 220 RTEMS_TEST_CHECK([termios08]) 221 RTEMS_TEST_CHECK([termios09]) 222 RTEMS_TEST_CHECK([top]) 223 RTEMS_TEST_CHECK([tztest]) 224 RTEMS_TEST_CHECK([uid01]) 225 RTEMS_TEST_CHECK([unlink]) 226 RTEMS_TEST_CHECK([utf8proc01]) 227 RTEMS_TEST_CHECK([vfork]) 228 RTEMS_TEST_CHECK([wait]) 229 RTEMS_TEST_CHECK([waitpid]) 230 RTEMS_TEST_CHECK([write]) 231 RTEMS_TEST_CHECK([writev]) 232 233 AC_CONFIG_FILES([Makefile]) 189 234 AC_OUTPUT -
testsuites/libtests/dl01/init.c
r32f2629b r5c65b988 28 28 static rtems_task Init(rtems_task_argument argument); 29 29 30 #include "dl -tar.h"30 #include "dl01-tar.h" 31 31 32 #define TARFILE_START dl _tar33 #define TARFILE_SIZE dl _tar_size32 #define TARFILE_START dl01_tar 33 #define TARFILE_SIZE dl01_tar_size 34 34 35 35 static int test(void) -
testsuites/libtests/dl02/init.c
r32f2629b r5c65b988 28 28 static rtems_task Init(rtems_task_argument argument); 29 29 30 #include "dl -tar.h"30 #include "dl02-tar.h" 31 31 32 #define TARFILE_START dl _tar33 #define TARFILE_SIZE dl _tar_size32 #define TARFILE_START dl02_tar 33 #define TARFILE_SIZE dl02_tar_size 34 34 35 35 static int test(void) -
testsuites/libtests/dl04/init.c
r32f2629b r5c65b988 28 28 static rtems_task Init(rtems_task_argument argument); 29 29 30 #include "dl -tar.h"30 #include "dl04-tar.h" 31 31 32 #define TARFILE_START dl _tar33 #define TARFILE_SIZE dl _tar_size32 #define TARFILE_START dl04_tar 33 #define TARFILE_SIZE dl04_tar_size 34 34 35 35 static int test(void) -
testsuites/libtests/dl05/init.c
r32f2629b r5c65b988 28 28 static rtems_task Init(rtems_task_argument argument); 29 29 30 #include "dl -tar.h"30 #include "dl05-tar.h" 31 31 32 #define TARFILE_START dl _tar33 #define TARFILE_SIZE dl _tar_size32 #define TARFILE_START dl05_tar 33 #define TARFILE_SIZE dl05_tar_size 34 34 35 35 static int test(void) -
testsuites/libtests/mghttpd01/init.c
r32f2629b r5c65b988 29 29 #include <rtems/imfs.h> 30 30 #include <rtems/error.h> 31 #include " init_fs.h"31 #include "mghttpd01_tar.h" 32 32 33 33 #include "test-http-client.h" … … 35 35 const char rtems_test_name[] = "MGHTTPD 1"; 36 36 37 #define TARFILE_START init_fs_tar38 #define TARFILE_SIZE init_fs_tar_size37 #define TARFILE_START mghttpd01_tar 38 #define TARFILE_SIZE mghttpd01_tar_size 39 39 40 40 #define CBACKTEST_URI "/callbacktest.txt" … … 265 265 TEST_END(); 266 266 267 rtems_test_exit(0); 267 rtems_test_exit(0); 268 268 } 269 269 -
testsuites/libtests/tar01/init.c
r32f2629b r5c65b988 24 24 #include <unistd.h> 25 25 26 #include " initial_filesystem_tar.h"27 #include " initial_filesystem_tar_gz.h"26 #include "tar01_tar.h" 27 #include "tar01_tar_gz.h" 28 28 #if HAVE_XZ 29 #include " initial_filesystem_tar_xz.h"29 #include "tar01_tar_xz.h" 30 30 #endif 31 31 … … 40 40 void test_untar_unzip_txz(void); 41 41 42 #define TARFILE_START initial_filesystem_tar43 #define TARFILE_SIZE initial_filesystem_tar_size44 #define TARFILE_GZ_START initial_filesystem_tar_gz45 #define TARFILE_GZ_SIZE initial_filesystem_tar_gz_size42 #define TARFILE_START tar01_tar 43 #define TARFILE_SIZE tar01_tar_size 44 #define TARFILE_GZ_START tar01_tar_gz 45 #define TARFILE_GZ_SIZE tar01_tar_gz_size 46 46 #if HAVE_XZ 47 #define TARFILE_XZ_START initial_filesystem_tar_xz48 #define TARFILE_XZ_SIZE initial_filesystem_tar_xz_size47 #define TARFILE_XZ_START tar01_tar_xz 48 #define TARFILE_XZ_SIZE tar01_tar_xz_size 49 49 #endif 50 50 -
testsuites/libtests/tar02/init.c
r32f2629b r5c65b988 25 25 #include <string.h> 26 26 27 #include " initial_filesystem_tar.h"27 #include "tar02_tar.h" 28 28 29 29 const char rtems_test_name[] = "TAR 2"; … … 33 33 void test_tarfs_load(void); 34 34 35 #define TARFILE_START initial_filesystem_tar36 #define TARFILE_SIZE initial_filesystem_tar_size35 #define TARFILE_START tar02_tar 36 #define TARFILE_SIZE tar02_tar_size 37 37 38 38 static const char file[] = "/home/test_file";
Note: See TracChangeset
for help on using the changeset viewer.