summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/Makefile.am
blob: 3fadbec8230e318febb40241d6daa4301a509930 (plain) (blame)
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
#
# POSIX Teststuite
#

ACLOCAL_AMFLAGS = -I ../aclocal

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am

psx_tests =
psx_screens =
psx_docs =
psx_lib =

support_includes = -I$(top_srcdir)/../support/include

if HAS_POSIX
if TEST_psx01
psx_tests += psx01
psx01_SOURCES = psx01/init.c psx01/task.c psx01/system.h \
	include/pmacros.h
psx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx02
psx_tests += psx02
psx_screens += psx02/psx02.scn
psx02_SOURCES = psx02/init.c psx02/task.c psx02/system.h \
	include/pmacros.h
psx02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx03
psx_tests += psx03
psx_screens += psx03/psx03.scn
psx03_SOURCES = psx03/init.c psx03/task.c psx03/system.h \
	include/pmacros.h
psx03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx03) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx04
psx_tests += psx04
psx_screens += psx04/psx04.scn
psx04_SOURCES = psx04/init.c psx04/task1.c psx04/task2.c psx04/task3.c \
	psx04/system.h include/pmacros.h
psx04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx04) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx05
psx_tests += psx05
psx_screens += psx05/psx05.scn
psx05_SOURCES = psx05/init.c psx05/task.c psx05/task2.c psx05/task3.c \
	psx05/system.h include/pmacros.h
psx05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx05) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx06
psx_tests += psx06
psx_screens += psx06/psx06.scn
psx06_SOURCES = psx06/init.c psx06/task.c psx06/task2.c psx06/system.h \
	include/pmacros.h
psx06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx06) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx07
psx_tests += psx07
psx_screens += psx07/psx07.scn
psx_docs += psx07/psx07.doc
psx07_SOURCES = psx07/init.c psx07/task.c psx07/system.h \
	include/pmacros.h
psx07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx07) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx08
psx_tests += psx08
psx_screens += psx08/psx08.scn
psx08_SOURCES = psx08/init.c psx08/task1.c psx08/task2.c psx08/task3.c \
	psx08/system.h include/pmacros.h
psx08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx08) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx09
psx_tests += psx09
psx_screens += psx09/psx09.scn
psx09_SOURCES = psx09/init.c psx09/system.h include/pmacros.h
psx09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx09) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx10
psx_tests += psx10
psx_screens += psx10/psx10.scn
psx10_SOURCES = psx10/init.c psx10/task.c psx10/task2.c psx10/task3.c \
	psx10/system.h include/pmacros.h
psx10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx10) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx11
psx_tests += psx11
psx_screens += psx11/psx11.scn
psx11_SOURCES = psx11/init.c psx11/task.c psx11/system.h \
	include/pmacros.h
psx11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx11) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx12
psx_tests += psx12
psx_screens += psx12/psx12.scn
psx12_SOURCES = psx12/init.c include/pmacros.h
psx12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx12) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psx13
psx_tests += psx13
psx_screens += psx13/psx13.scn
psx13_SOURCES = psx13/main.c psx13/test.c include/pmacros.h
psx13_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx13) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psx14
psx_tests += psx14
psx_screens += psx14/psx14.scn
psx14_SOURCES = psx14/init.c psx14/system.h include/pmacros.h
psx14_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx14) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx15
psx_tests += psx15
psx_screens += psx15/psx15.scn
psx15_SOURCES = psx15/init.c include/pmacros.h
psx15_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx15) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psx16
psx_tests += psx16
psx_screens += psx16/psx16.scn
psx16_SOURCES = psx16/init.c include/pmacros.h
psx16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx16) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxaio01
psx_tests += psxaio01
psx_screens += psxaio01/psxaio01.scn
psxaio01_SOURCES = psxaio01/init.c psxaio01/system.h include/pmacros.h
psxaio01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxaio01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxaio02
psx_tests += psxaio02
psx_screens += psxaio02/psxaio02.scn
psxaio02_SOURCES = psxaio02/init.c psxaio02/system.h include/pmacros.h
psxaio02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxaio02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxaio03
psx_tests += psxaio03
psx_screens += psxaio03/psxaio03.scn
psxaio03_SOURCES = psxaio03/init.c psxaio03/system.h include/pmacros.h
psxaio03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxaio03) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxalarm01
psx_tests += psxalarm01
psx_screens += psxalarm01/psxalarm01.scn
psx_docs += psxalarm01/psxalarm01.doc
psxalarm01_SOURCES = psxalarm01/init.c include/pmacros.h
psxalarm01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxalarm01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxautoinit01
psx_tests += psxautoinit01
psx_screens += psxautoinit01/psxautoinit01.scn
psxautoinit01_SOURCES = psxautoinit01/init.c include/pmacros.h
psxautoinit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxautoinit01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxautoinit02
psx_tests += psxautoinit02
psx_screens += psxautoinit02/psxautoinit02.scn
psx_docs += psxautoinit02/psxautoinit02.doc
psxautoinit02_SOURCES = psxautoinit02/init.c include/pmacros.h
psxautoinit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxautoinit02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxbarrier01
psx_tests += psxbarrier01
psx_screens += psxbarrier01/psxbarrier01.scn
psxbarrier01_SOURCES = psxbarrier01/main.c psxbarrier01/test.c \
	include/pmacros.h
psxbarrier01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxbarrier01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcancel
psx_tests += psxcancel
psx_screens += psxcancel/psxcancel.scn
psx_docs += psxcancel/psxcancel.doc
psxcancel_SOURCES = psxcancel/init.c include/pmacros.h
psxcancel_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcancel) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcancel01
psx_tests += psxcancel01
psx_screens += psxcancel01/psxcancel01.scn
psx_docs += psxcancel01/psxcancel01.doc
psxcancel01_SOURCES = psxcancel01/init.c include/pmacros.h
psxcancel01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcancel01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxchroot01
psx_tests += psxchroot01
psx_screens += psxchroot01/psxchroot01.scn
psxchroot01_SOURCES = psxchroot01/main.c psxchroot01/test.c \
	include/pmacros.h
psxchroot01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxchroot01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxclassic01
psx_tests += psxclassic01
psx_screens += psxclassic01/psxclassic01.scn
psx_docs += psxclassic01/psxclassic01.doc
psxclassic01_SOURCES = psxclassic01/init.c include/pmacros.h
psxclassic01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxclassic01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcleanup
psx_tests += psxcleanup
psx_screens += psxcleanup/psxcleanup.scn
psxcleanup_SOURCES = psxcleanup/psxcleanup.c psxcleanup/system.h \
	include/pmacros.h
psxcleanup_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcleanup) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcleanup01
psx_tests += psxcleanup01
psx_screens += psxcleanup01/psxcleanup01.scn
psx_docs += psxcleanup01/psxcleanup01.doc
psxcleanup01_SOURCES = psxcleanup01/init.c include/pmacros.h
psxcleanup01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcleanup01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcleanup02
psx_tests += psxcleanup02
psx_screens += psxcleanup02/psxcleanup02.scn
psx_docs += psxcleanup02/psxcleanup02.doc
psxcleanup02_SOURCES = psxcleanup02/init.c psxcleanup02/main.c
psxcleanup02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcleanup02) \
	$(support_includes)
endif
endif

if TEST_psxclock
psx_tests += psxclock
psx_screens += psxclock/psxclock.scn
psx_docs += psxclock/psxclock.doc
psxclock_SOURCES = psxclock/init.c include/pmacros.h
psxclock_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxclock) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxclock01
psx_tests += psxclock01
psx_screens += psxclock01/psxclock01.scn
psx_docs += psxclock01/psxclock01.doc
psxclock01_SOURCES = psxclock01/init.c
psxclock01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxclock01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxclockrealtime01
psx_tests += psxclockrealtime01
psx_screens += psxclockrealtime01/psxclockrealtime01.scn
psx_docs += psxclockrealtime01/psxclockrealtime01.doc
psxclockrealtime01_SOURCES = psxclockrealtime01/init.c
psxclockrealtime01_CPPFLAGS = $(AM_CPPFLAGS) \
	$(TEST_FLAGS_psxclockrealtime01) $(support_includes)
endif
endif

if HAS_POSIX
if TEST_psxconcurrency01
psx_tests += psxconcurrency01
psx_screens += psxconcurrency01/psxconcurrency01.scn
psx_docs += psxconcurrency01/psxconcurrency01.doc
psxconcurrency01_SOURCES = psxconcurrency01/init.c include/pmacros.h
psxconcurrency01_CPPFLAGS = $(AM_CPPFLAGS) \
	$(TEST_FLAGS_psxconcurrency01) $(support_includes) \
	-I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcond01
psx_tests += psxcond01
psx_screens += psxcond01/psxcond01.scn
psx_docs += psxcond01/psxcond01.doc
psxcond01_SOURCES = psxcond01/init.c include/pmacros.h
psxcond01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcond01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxcond02
psx_tests += psxcond02
psx_screens += psxcond02/psxcond02.scn
psx_docs += psxcond02/psxcond02.doc
psxcond02_SOURCES = psxcond02/init.c include/pmacros.h
psxcond02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxcond02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxconfig01
psx_tests += psxconfig01
psx_screens += psxconfig01/psxconfig01.scn
psx_docs += psxconfig01/psxconfig01.doc
psxconfig01_SOURCES = psxconfig01/init.c include/pmacros.h
psxconfig01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxconfig01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxdevctl01
psx_tests += psxdevctl01
psx_screens += psxdevctl01/psxdevctl01.scn
psxdevctl01_SOURCES = psxdevctl01/main.c psxdevctl01/test.c \
	include/pmacros.h
psxdevctl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxdevctl01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxeintr_join
psx_tests += psxeintr_join
psx_screens += psxeintr_join/psxeintr_join.scn
psx_docs += psxeintr_join/psxeintr_join.doc
psxeintr_join_SOURCES = psxeintr_join/init.c
psxeintr_join_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxeintr_join) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxenosys
psx_tests += psxenosys
psx_screens += psxenosys/psxenosys.scn
psx_docs += psxenosys/psxenosys.doc
psxenosys_SOURCES = psxenosys/init.c psxenosys/system.h \
	include/pmacros.h
psxenosys_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxenosys) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxfatal01
psx_tests += psxfatal01
psx_screens += psxfatal01/psxfatal01.scn
psxfatal01_SOURCES = psxfatal_support/init.c psxfatal_support/system.h \
	psxfatal01/testcase.h
psxfatal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxfatal01) \
	$(support_includes) -I$(top_srcdir)/psxfatal01
endif
endif

if HAS_POSIX
if TEST_psxfatal02
psx_tests += psxfatal02
psx_screens += psxfatal02/psxfatal02.scn
psxfatal02_SOURCES = psxfatal_support/init.c psxfatal_support/system.h \
	psxfatal02/testcase.h
psxfatal02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxfatal02) \
	$(support_includes) -I$(top_srcdir)/psxfatal02
endif
endif

if TEST_psxfchx01
psx_tests += psxfchx01
psx_screens += psxfchx01/psxfchx01.scn
psx_docs += psxfchx01/psxfchx01.doc
psxfchx01_SOURCES = psxfchx01/init.c include/pmacros.h
psxfchx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxfchx01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxfile01
psx_tests += psxfile01
psx_screens += psxfile01/psxfile01.scn
psxfile01_SOURCES = psxfile01/main.c psxfile01/test.c \
	psxfile01/test_cat.c psxfile01/test_extend.c psxfile01/test_write.c \
	include/pmacros.h
psxfile01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxfile01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxfile02
psx_tests += psxfile02
psx_screens += psxfile02/psxfile02.scn
psx_docs += psxfile02/psxfile02.doc
psxfile02_SOURCES = psxfile02/init.c ../support/src/spin.c
psxfile02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxfile02) \
	$(support_includes)
endif

if TEST_psxfilelock01
psx_tests += psxfilelock01
psx_screens += psxfilelock01/psxfilelock01.scn
psx_docs += psxfilelock01/psxfilelock01.doc
psxfilelock01_SOURCES = psxfilelock01/init.c
psxfilelock01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxfilelock01) \
	$(support_includes)
endif

if HAS_POSIX
if TEST_psxgetattrnp01
psx_tests += psxgetattrnp01
psx_screens += psxgetattrnp01/psxgetattrnp01.scn
psx_docs += psxgetattrnp01/psxgetattrnp01.doc
psxgetattrnp01_SOURCES = psxgetattrnp01/init.c
psxgetattrnp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxgetattrnp01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxgetrusage01
psx_tests += psxgetrusage01
psx_screens += psxgetrusage01/psxgetrusage01.scn
psx_docs += psxgetrusage01/psxgetrusage01.doc
psxgetrusage01_SOURCES = psxgetrusage01/init.c ../support/src/spin.c
psxgetrusage01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxgetrusage01) \
	$(support_includes)
endif

if HAS_POSIX
if HAS_CPLUSPLUS
if TEST_psxglobalcon01
psx_tests += psxglobalcon01
psx_screens += psxglobalcon01/psxglobalcon01.scn
psx_docs += psxglobalcon01/psxglobalcon01.doc
psxglobalcon01_SOURCES = psxglobalcon01/init.cc
psxglobalcon01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxglobalcon01) \
	$(support_includes)
endif
endif
endif

if HAS_POSIX
if HAS_CPLUSPLUS
if TEST_psxglobalcon02
psx_tests += psxglobalcon02
psx_screens += psxglobalcon02/psxglobalcon02.scn
psx_docs += psxglobalcon02/psxglobalcon02.doc
psxglobalcon02_SOURCES = psxglobalcon02/init.cc
psxglobalcon02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxglobalcon02) \
	$(support_includes)
endif
endif
endif

if TEST_psxid01
psx_tests += psxid01
psx_screens += psxid01/psxid01.scn
psx_docs += psxid01/psxid01.doc
psxid01_SOURCES = psxid01/init.c
psxid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxid01) \
	$(support_includes)
endif

if TEST_psximfs01
psx_tests += psximfs01
psx_screens += psximfs01/psximfs01.scn
psx_docs += psximfs01/psximfs01.doc
psximfs01_SOURCES = psximfs01/init.c
psximfs01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psximfs01) \
	$(support_includes)
endif

if TEST_psximfs02
psx_tests += psximfs02
psx_screens += psximfs02/psximfs02.scn
psx_docs += psximfs02/psximfs02.doc
psximfs02_SOURCES = psximfs02/init.c
psximfs02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psximfs02) \
	$(support_includes)
endif

if HAS_POSIX
if TEST_psxintrcritical01
psx_tests += psxintrcritical01
psx_screens += psxintrcritical01/psxintrcritical01.scn
psx_docs += psxintrcritical01/psxintrcritical01.doc
psxintrcritical01_SOURCES = psxintrcritical01/init.c \
	../sptests/spintrcritical_support/intrcritical.c
psxintrcritical01_CPPFLAGS = $(AM_CPPFLAGS) \
	$(TEST_FLAGS_psxintrcritical01) $(support_includes) \
	-I$(top_srcdir)/../sptests/spintrcritical_support
endif
endif

if HAS_POSIX
if TEST_psxitimer
psx_tests += psxitimer
psx_screens += psxitimer/psxitimer.scn
psxitimer_SOURCES = psxitimer/init.c include/pmacros.h
psxitimer_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxitimer) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxkey01
psx_tests += psxkey01
psx_screens += psxkey01/psxkey01.scn
psxkey01_SOURCES = psxkey01/init.c psxkey01/system.h include/pmacros.h \
	../support/src/test_support.c
psxkey01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey02
psx_tests += psxkey02
psx_screens += psxkey02/psxkey02.scn
psx_docs += psxkey02/psxkey02.doc
psxkey02_SOURCES = psxkey02/init.c
psxkey02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey02) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey03
psx_tests += psxkey03
psx_screens += psxkey03/psxkey03.scn
psx_docs += psxkey03/psxkey03.doc
psxkey03_SOURCES = psxkey03/init.c
psxkey03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey03) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey04
psx_tests += psxkey04
psx_screens += psxkey04/psxkey04.scn
psx_docs += psxkey04/psxkey04.doc
psxkey04_SOURCES = psxkey04/init.c
psxkey04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey04) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey05
psx_tests += psxkey05
psx_screens += psxkey05/psxkey05.scn
psx_docs += psxkey05/psxkey05.doc
psxkey05_SOURCES = psxkey05/init.c
psxkey05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey05) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey06
psx_tests += psxkey06
psx_screens += psxkey06/psxkey06.scn
psx_docs += psxkey06/psxkey06.doc
psxkey06_SOURCES = psxkey06/init.c
psxkey06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey06) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxkey07
psx_tests += psxkey07
psx_screens += psxkey07/psxkey07.scn
psx_docs += psxkey07/psxkey07.doc
psxkey07_SOURCES = psxkey07/init.c
psxkey07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey07) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxkey08
psx_tests += psxkey08
psx_screens += psxkey08/psxkey08.scn
psx_docs += psxkey08/psxkey08.doc
psxkey08_SOURCES = psxkey08/init.c
psxkey08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey08) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey09
psx_tests += psxkey09
psx_screens += psxkey09/psxkey09.scn
psx_docs += psxkey09/psxkey09.doc
psxkey09_SOURCES = psxkey09/init.c
psxkey09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey09) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxkey10
psx_tests += psxkey10
psx_screens += psxkey10/psxkey10.scn
psx_docs += psxkey10/psxkey10.doc
psxkey10_SOURCES = psxkey10/init.c
psxkey10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxkey10) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxmmap01
psx_tests += psxmmap01
psx_screens += psxmmap01/psxmmap01.scn
psxmmap01_SOURCES = psxmmap01/init.c psxmmap01/test_helper.c \
	psxmmap01/test_driver.c psxmmap01/system.h
psxmmap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmmap01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxmount
psx_tests += psxmount
psx_screens += psxmount/psxmount.scn
psxmount_SOURCES = psxmount/main.c psxmount/test.c include/pmacros.h
psxmount_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmount) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxmsgq01
psx_tests += psxmsgq01
psx_screens += psxmsgq01/psxmsgq01.scn
psxmsgq01_SOURCES = psxmsgq01/init.c psxmsgq01/system.h \
	include/pmacros.h ../support/src/test_support.c
psxmsgq01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmsgq01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxmsgq02
psx_tests += psxmsgq02
psx_screens += psxmsgq02/psxmsgq02.scn
psxmsgq02_SOURCES = psxmsgq02/init.c psxmsgq02/system.h \
	include/pmacros.h ../support/src/test_support.c
psxmsgq02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmsgq02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxmsgq03
psx_tests += psxmsgq03
psx_screens += psxmsgq03/psxmsgq03.scn
psx_docs += psxmsgq03/psxmsgq03.doc
psxmsgq03_SOURCES = psxmsgq03/init.c psxmsgq03/system.h \
	include/pmacros.h ../support/src/test_support.c
psxmsgq03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmsgq03) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxmsgq04
psx_tests += psxmsgq04
psx_screens += psxmsgq04/psxmsgq04.scn
psx_docs += psxmsgq04/psxmsgq04.doc
psxmsgq04_SOURCES = psxmsgq04/init.c include/pmacros.h \
	../support/src/test_support.c
psxmsgq04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmsgq04) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxmutexattr01
psx_tests += psxmutexattr01
psx_screens += psxmutexattr01/psxmutexattr01.scn
psx_docs += psxmutexattr01/psxmutexattr01.doc
psxmutexattr01_SOURCES = psxmutexattr01/init.c
psxmutexattr01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxmutexattr01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxobj01
psx_tests += psxobj01
psx_screens += psxobj01/psxobj01.scn
psx_docs += psxobj01/psxobj01.doc
psxobj01_SOURCES = psxobj01/init.c ../support/src/test_support.c
psxobj01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxobj01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxonce01
psx_tests += psxonce01
psx_screens += psxonce01/psxonce01.scn
psxonce01_SOURCES = psxonce01/init.c psxonce01/system.h \
	include/pmacros.h
psxonce01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxonce01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxpasswd01
psx_tests += psxpasswd01
psx_screens += psxpasswd01/psxpasswd01.scn
psx_docs += psxpasswd01/psxpasswd01.doc
psxpasswd01_SOURCES = psxpasswd01/init.c include/pmacros.h
psxpasswd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxpasswd01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxpasswd02
psx_tests += psxpasswd02
psx_screens += psxpasswd02/psxpasswd02.scn
psx_docs += psxpasswd02/psxpasswd02.doc
psxpasswd02_SOURCES = psxpasswd02/init.c include/pmacros.h
psxpasswd02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxpasswd02) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxpipe01
psx_tests += psxpipe01
psx_screens += psxpipe01/psxpipe01.scn
psx_docs += psxpipe01/psxpipe01.doc
psxpipe01_SOURCES = psxpipe01/init.c include/pmacros.h
psxpipe01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxpipe01) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxrdwrv
psx_tests += psxrdwrv
psx_screens += psxrdwrv/psxrdwrv.scn
psxrdwrv_SOURCES = psxrdwrv/main.c psxrdwrv/test.c include/pmacros.h
psxrdwrv_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxrdwrv) \
	$(support_includes) -I$(top_srcdir)/include
endif

if TEST_psxreaddir
psx_tests += psxreaddir
psx_screens += psxreaddir/psxreaddir.scn
psxreaddir_SOURCES = psxreaddir/main.c psxreaddir/test.c \
	include/pmacros.h
psxreaddir_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxreaddir) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxrwlock01
psx_tests += psxrwlock01
psx_screens += psxrwlock01/psxrwlock01.scn
psxrwlock01_SOURCES = psxrwlock01/main.c psxrwlock01/test.c \
	include/pmacros.h
psxrwlock01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxrwlock01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxsem01
psx_tests += psxsem01
psx_screens += psxsem01/psxsem01.scn
psxsem01_SOURCES = psxsem01/init.c include/pmacros.h \
	../support/src/test_support.c
psxsem01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsem01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxshm01
psx_tests += psxshm01
psx_screens += psxshm01/psxshm01.scn
psxshm01_SOURCES = psxshm01/init.c psxshm01/system.h
psxshm01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxshm01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxshm02
psx_tests += psxshm02
psx_screens += psxshm02/psxshm02.scn
psxshm02_SOURCES = psxshm02/init.c psxshm02/system.h
psxshm02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxshm02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxsignal01
psx_tests += psxsignal01
psx_screens += psxsignal01/psxsignal01.scn
psxsignal01_SOURCES = psxsignal01/init.c psxsignal01/task1.c \
	psxsignal01/system.h include/pmacros.h
psxsignal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsignal01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxsignal02
psx_tests += psxsignal02
psx_screens += psxsignal02/psxsignal02.scn
psx_docs += psxsignal02/psxsignal02.doc
psxsignal02_SOURCES = psxsignal02/init.c include/pmacros.h
psxsignal02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsignal02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxsignal03
psx_tests += psxsignal03
psx_screens += psxsignal03/psxsignal03.scn
psx_docs += psxsignal03/psxsignal03.doc
psxsignal03_SOURCES = psxsignal03/init.c include/pmacros.h
psxsignal03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsignal03) \
	$(support_includes) -I$(top_srcdir)/include \
	-DUSE_USER_SIGNALS_PROCESS
endif
endif

if HAS_POSIX
if TEST_psxsignal04
psx_tests += psxsignal04
psx_screens += psxsignal04/psxsignal04.scn
psx_docs += psxsignal04/psxsignal04.doc
psxsignal04_SOURCES = psxsignal03/init.c include/pmacros.h
psxsignal04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsignal04) \
	$(support_includes) -I$(top_srcdir)/include \
	-DUSE_REAL_TIME_SIGNALS_PROCESS
endif
endif

if HAS_POSIX
if TEST_psxsignal05
psx_tests += psxsignal05
psx_screens += psxsignal05/psxsignal05.scn
psx_docs += psxsignal05/psxsignal05.doc
psxsignal05_SOURCES = psxsignal05/init.c include/pmacros.h
psxsignal05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsignal05) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxsignal06
psx_tests += psxsignal06
psx_screens += psxsignal06/psxsignal06.scn
psx_docs += psxsignal06/psxsignal06.doc
psxsignal06_SOURCES = psxsignal06/init.c
psxsignal06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsignal06) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxspin01
psx_tests += psxspin01
psx_screens += psxspin01/psxspin01.scn
psxspin01_SOURCES = psxspin01/main.c psxspin01/test.c \
	include/pmacros.h
psxspin01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxspin01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxstack01
psx_tests += psxstack01
psx_screens += psxstack01/psxstack01.scn
psx_docs += psxstack01/psxstack01.doc
psxstack01_SOURCES = psxstack01/init.c include/pmacros.h
psxstack01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxstack01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxstack02
psx_tests += psxstack02
psx_screens += psxstack02/psxstack02.scn
psx_docs += psxstack02/psxstack02.doc
psxstack02_SOURCES = psxstack02/init.c
psxstack02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxstack02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxstat
psx_tests += psxstat
psx_screens += psxstat/psxstat.scn
psxstat_SOURCES = psxstat/main.c psxstat/test.c include/pmacros.h
psxstat_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxstat) \
	$(support_includes) -I$(top_srcdir)/include
endif

if HAS_POSIX
if TEST_psxstrsignal01
psx_tests += psxstrsignal01
psx_screens += psxstrsignal01/psxstrsignal01.scn
psx_docs += psxstrsignal01/psxstrsignal01.doc
psxstrsignal01_SOURCES = psxstrsignal01/init.c include/pmacros.h
psxstrsignal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxstrsignal01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxsysconf
psx_tests += psxsysconf
psx_screens += psxsysconf/psxsysconf.scn
psxsysconf_SOURCES = psxsysconf/init.c psxsysconf/system.h \
	include/pmacros.h
psxsysconf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxsysconf) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxthreadname01
psx_tests += psxthreadname01
psx_screens += psxthreadname01/psxthreadname01.scn
psx_docs += psxthreadname01/psxthreadname01.doc
psxthreadname01_SOURCES = psxthreadname01/init.c
psxthreadname01_CPPFLAGS = $(AM_CPPFLAGS) \
	$(TEST_FLAGS_psxthreadname01) $(support_includes)
endif
endif

if HAS_POSIX
if TEST_psxtime
psx_tests += psxtime
psx_screens += psxtime/psxtime.scn
psxtime_SOURCES = psxtime/main.c psxtime/test.c
psxtime_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtime) \
	$(support_includes)
endif
endif

if HAS_POSIX
if TEST_psxtimer01
psx_tests += psxtimer01
psx_screens += psxtimer01/psxtimer01.scn
psxtimer01_SOURCES = psxtimer01/psxtimer.c psxtimer01/system.h \
	include/pmacros.h
psxtimer01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtimer01) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxtimer02
psx_tests += psxtimer02
psx_screens += psxtimer02/psxtimer02.scn
psxtimer02_SOURCES = psxtimer02/psxtimer.c psxtimer02/system.h \
	include/pmacros.h
psxtimer02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtimer02) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if TEST_psxtimes01
psx_tests += psxtimes01
psx_screens += psxtimes01/psxtimes01.scn
psx_docs += psxtimes01/psxtimes01.doc
psxtimes01_SOURCES = psxtimes01/init.c ../support/src/spin.c
psxtimes01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtimes01) \
	$(support_includes)
endif

if HAS_POSIX
if TEST_psxualarm
psx_tests += psxualarm
psx_screens += psxualarm/psxualarm.scn
psxualarm_SOURCES = psxualarm/init.c psxualarm/system.h \
	include/pmacros.h
psxualarm_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxualarm) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_psxusleep
psx_tests += psxusleep
psx_screens += psxusleep/psxusleep.scn
psx_docs += psxusleep/psxusleep.doc
psxusleep_SOURCES = psxusleep/init.c include/pmacros.h
psxusleep_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxusleep) \
	$(support_includes) -I$(top_srcdir)/include
endif
endif

if HAS_POSIX
if TEST_lib_a
psx_lib += lib.a
lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \
	psxhdrs/pthread/pthread_attr_destroy.c \
	psxhdrs/pthread/pthread_attr_getdetachstate.c \
	psxhdrs/pthread/pthread_attr_getguardsize.c \
	psxhdrs/pthread/pthread_attr_getinheritsched.c \
	psxhdrs/pthread/pthread_attr_getschedparam.c \
	psxhdrs/pthread/pthread_attr_getschedpolicy.c \
	psxhdrs/pthread/pthread_attr_getscope.c \
	psxhdrs/pthread/pthread_attr_getstackaddr.c \
	psxhdrs/pthread/pthread_attr_getstack.c \
	psxhdrs/pthread/pthread_attr_getstacksize.c \
	psxhdrs/pthread/pthread_attr_init.c \
	psxhdrs/pthread/pthread_attr_setdetachstate.c \
	psxhdrs/pthread/pthread_attr_setguardsize.c \
	psxhdrs/pthread/pthread_attr_setinheritsched.c \
	psxhdrs/pthread/pthread_attr_setschedparam.c \
	psxhdrs/pthread/pthread_attr_setschedpolicy.c \
	psxhdrs/pthread/pthread_attr_setscope.c \
	psxhdrs/pthread/pthread_attr_setstackaddr.c \
	psxhdrs/pthread/pthread_attr_setstack.c \
	psxhdrs/pthread/pthread_attr_setstacksize.c \
	psxhdrs/pthread/pthread_cancel.c psxhdrs/pthread/pthread_cleanup.c \
	psxhdrs/pthread/pthread_condattr_destroy.c \
	psxhdrs/pthread/pthread_condattr_getpshared.c \
	psxhdrs/pthread/pthread_condattr_init.c \
	psxhdrs/pthread/pthread_condattr_setpshared.c \
	psxhdrs/pthread/pthread_cond_broadcast.c \
	psxhdrs/pthread/pthread_cond_destroy.c \
	psxhdrs/pthread/pthread_cond_init.c \
	psxhdrs/pthread/pthread_cond_signal.c \
	psxhdrs/pthread/pthread_cond_timedwait.c \
	psxhdrs/pthread/pthread_cond_wait.c psxhdrs/pthread/pthread_create.c \
	psxhdrs/pthread/pthread_detach.c psxhdrs/pthread/pthread_equal.c \
	psxhdrs/pthread/pthread_exit.c \
	psxhdrs/pthread/pthread_getconcurrency.c \
	psxhdrs/pthread/pthread_getcpuclockid.c \
	psxhdrs/pthread/pthread_getschedparam.c \
	psxhdrs/pthread/pthread_getspecific.c psxhdrs/pthread/pthread_join.c \
	psxhdrs/pthread/pthread_key_create.c \
	psxhdrs/pthread/pthread_key_delete.c \
	psxhdrs/pthread/pthread_mutexattr_destroy.c \
	psxhdrs/pthread/pthread_mutexattr_getprioceiling.c \
	psxhdrs/pthread/pthread_mutexattr_getprotocol.c \
	psxhdrs/pthread/pthread_mutexattr_getpshared.c \
	psxhdrs/pthread/pthread_mutexattr_init.c \
	psxhdrs/pthread/pthread_mutexattr_setprioceiling.c \
	psxhdrs/pthread/pthread_mutexattr_setprotocol.c \
	psxhdrs/pthread/pthread_mutexattr_setpshared.c \
	psxhdrs/pthread/pthread_mutex_destroy.c \
	psxhdrs/pthread/pthread_mutex_getprioceiling.c \
	psxhdrs/pthread/pthread_mutex_init.c \
	psxhdrs/pthread/pthread_mutex_lock.c \
	psxhdrs/pthread/pthread_mutex_setprioceiling.c \
	psxhdrs/pthread/pthread_mutex_timedlock.c \
	psxhdrs/pthread/pthread_mutex_trylock.c \
	psxhdrs/pthread/pthread_mutex_unlock.c psxhdrs/pthread/pthread_once.c \
	psxhdrs/pthread/pthread_self.c \
	psxhdrs/pthread/pthread_setcancelstate.c \
	psxhdrs/pthread/pthread_setcanceltype.c \
	psxhdrs/pthread/pthread_setconcurrency.c \
	psxhdrs/pthread/pthread_setschedparam.c \
	psxhdrs/pthread/pthread_setspecific.c \
	psxhdrs/pthread/pthread_testcancel.c psxhdrs/sched/sched_getparam.c \
	psxhdrs/sched/sched_get_priority_max.c \
	psxhdrs/sched/sched_get_priority_min.c \
	psxhdrs/sched/sched_getscheduler.c \
	psxhdrs/sched/sched_rr_get_interval.c psxhdrs/sched/sched_setparam.c \
	psxhdrs/sched/sched_setscheduler.c psxhdrs/sched/sched_yield.c \
	psxhdrs/signal/pthread_sigmask.c psxhdrs/signal/raise.c \
	psxhdrs/signal/signal.c psxhdrs/signal/sigpending.c \
	psxhdrs/signal/sigprocmask.c psxhdrs/signal/sigsuspend.c \
	psxhdrs/signal/sigtimedwait.c psxhdrs/signal/sigwait.c \
	psxhdrs/signal/sigwaitinfo.c psxhdrs/time/asctime.c \
	psxhdrs/time/asctime_r.c psxhdrs/time/clock.c \
	psxhdrs/time/clock_getcpuclockid.c psxhdrs/time/clock_getres.c \
	psxhdrs/time/clock_gettime.c psxhdrs/time/clock_nanosleep.c \
	psxhdrs/time/clock_settime.c psxhdrs/time/ctime.c \
	psxhdrs/time/ctime_r.c psxhdrs/time/difftime.c psxhdrs/time/gmtime.c \
	psxhdrs/time/gmtime_r.c psxhdrs/time/localtime.c \
	psxhdrs/time/localtime_r.c psxhdrs/time/mktime.c \
	psxhdrs/time/nanosleep.c psxhdrs/time/strftime.c psxhdrs/time/time.c \
	psxhdrs/time/timer_create.c psxhdrs/time/timer_delete.c \
	psxhdrs/time/timer_getoverrun.c psxhdrs/time/timer_gettime.c \
	psxhdrs/time/timer_settime.c psxhdrs/unistd/alarm.c \
	psxhdrs/unistd/fdatasync.c psxhdrs/unistd/fsync.c \
	psxhdrs/unistd/getegid.c psxhdrs/unistd/geteuid.c \
	psxhdrs/unistd/getgid.c psxhdrs/unistd/getgroups.c \
	psxhdrs/unistd/getlogin.c psxhdrs/unistd/getlogin_r.c \
	psxhdrs/unistd/getpgrp.c psxhdrs/unistd/getpid.c \
	psxhdrs/unistd/getppid.c psxhdrs/unistd/getuid.c \
	psxhdrs/unistd/pause.c psxhdrs/unistd/setgid.c \
	psxhdrs/unistd/setgroups.c psxhdrs/unistd/setpgid.c \
	psxhdrs/unistd/setsid.c psxhdrs/unistd/setuid.c \
	psxhdrs/unistd/sleep.c psxhdrs/unistd/sync.c psxhdrs/unistd/ualarm.c \
	psxhdrs/unistd/usleep.c psxhdrs/sys/mman/mlockall.c \
	psxhdrs/sys/mman/mlock.c psxhdrs/sys/mman/mmap.c \
	psxhdrs/sys/mman/mprotect.c psxhdrs/sys/mman/msync.c \
	psxhdrs/sys/mman/munlockall.c psxhdrs/sys/mman/munlock.c \
	psxhdrs/sys/mman/munmap.c psxhdrs/sys/mman/posix_madvise.c \
	psxhdrs/sys/mman/shm_open.c psxhdrs/sys/mman/shm_unlink.c \
	psxhdrs/sys/socket/accept.c psxhdrs/sys/socket/bind.c \
	psxhdrs/sys/socket/connect.c psxhdrs/sys/socket/getpeername.c \
	psxhdrs/sys/socket/getsockname.c psxhdrs/sys/socket/getsockopt.c \
	psxhdrs/sys/socket/listen.c psxhdrs/sys/socket/recv.c \
	psxhdrs/sys/socket/recvfrom.c psxhdrs/sys/socket/recvmsg.c \
	psxhdrs/sys/socket/send.c psxhdrs/sys/socket/sendmsg.c \
	psxhdrs/sys/socket/sendto.c psxhdrs/sys/socket/setsockopt.c \
	psxhdrs/sys/socket/shutdown.c psxhdrs/sys/socket/socket.c \
	psxhdrs/sys/socket/socketpair.c
endif
endif

rtems_tests_PROGRAMS = $(psx_tests)
noinst_LIBRARIES = $(psx_lib)
dist_rtems_tests_DATA = $(psx_screens) $(psx_docs)