-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCMTestsuite.cmake
904 lines (851 loc) · 20.9 KB
/
CMTestsuite.cmake
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
include(CTest)
enable_testing()
set(T3_DAT "${CMAKE_CURRENT_SOURCE_DIR}/tads3/test/data")
set(T3_LOG "${CMAKE_CURRENT_SOURCE_DIR}/tads3/test/log")
set(T3_OUT "${CMAKE_CURRENT_BINARY_DIR}/test/out")
set(T3_RESDIR "${CMAKE_CURRENT_SOURCE_DIR}/tads3")
set(T3_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/tads3/include")
set(T3_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/tads3/lib")
set(SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/testscripts")
set(TESTPROGS "${CMAKE_CURRENT_BINARY_DIR}/test")
set(T3_MAKE "$<TARGET_FILE:t3make>")
macro(set_test_env test)
set_tests_properties(${test} PROPERTIES ENVIRONMENT
"T3_DAT=${T3_DAT};\
T3_LOG=${T3_LOG};\
T3_OUT=${T3_OUT};\
T3_RESDIR=${T3_RESDIR};\
T3_INCDIR=${T3_INCDIR};\
T3_LIBDIR=${T3_LIBDIR};\
SCRIPTS=${SCRIPTS};\
TESTPROGS=${TESTPROGS};\
t3make=${T3_MAKE};"
)
endmacro()
macro(run_test test_type test_name script_file)
add_test (
NAME ${test_type}-${test_name}
COMMAND "${SCRIPTS}/${script_file}" ${ARGV3} ${ARGV4} ${ARGV5} ${ARGV6} ${ARGV7} ${ARGV8} ${ARGV9}
${ARGV10} ${ARGV11}
)
set_test_env(${test_type}-${test_name})
endmacro()
macro(run_preproc_test test)
run_test(PreprocessorTest ${test} test_pp.sh ${test})
endmacro()
macro(run_exec_test test codepage)
run_test(ExecutionTest ${test} test_ex.sh ${test} ${codepage})
endmacro()
macro(run_make_test test)
run_test(MakeTest ${test} test_make.sh ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5} ${ARGV6} ${ARGV7}
${ARGV8} ${ARGV9})
endmacro()
macro(run_restore_test test arg1 arg2)
run_test(RestoreTest ${test} test_restore.sh ${arg1} ${arg2})
endmacro()
macro(run_preinit_test test)
run_test(PreinitTest ${test} test_pre.sh ${test})
endmacro()
macro(run_run_test test)
run_test(RunTest ${test} test_run.sh ${ARGV1} ${ARGV2} ${ARGV3} ${ARGV4} ${ARGV5} ${ARGV6} ${ARGV7}
${ARGV8} ${ARGV9})
endmacro()
add_test (
NAME ObjectSubsystem
COMMAND test_obj
)
foreach(test ansi circ circ2 embed define ifdef concat varmacpp)
run_preproc_test(${test})
endforeach()
foreach(test basic finally dstr fnredef undo gotofin)
run_exec_test(${test} cp437)
endforeach()
run_exec_test(builtin latin1)
foreach(test asi anon anonfunc anonobj anonvarg badnest bignum bignum2 findreplace foreach funcparm htmlify
ifnil inh_next isin join lclprop listprop lookup lookup2 lookup3 lookupdef multidyn nested newprop
objloop opoverload propaddr propptr rexassert rexreplace setsc shr spec2html spec2text split sprintf
strcomp2 strbuf substr unicode varmac vector vector2 vector3 testaddr2 testaddr3 testaddr4 strtpl
listminmax packstr packarr except propset rand3 findall constregex datatypexlat embedfmt clocktime
testov vecmod listmod idxov newline_spacing nested_embed nested_embed_err inlineobj1 inlineobj2
# date datefmt dateprs
# hashes
)
run_make_test(${test} cp437 ${test} ${test})
endforeach()
#call %tstbat%\testmake -cp latin1 datelocale datelocale
#call %tstbat%\testmake -norun -pre datesave datesave
#call %tstbat%\testrun datesave_s datesave save
#call %tstbat%\testrun datesave_r datesave restore
run_make_test(strcomp3 latin1 strcomp3 strcomp3)
run_make_test(bytarr cp1252 -pre bytarr bytarr)
run_make_test(bytarr2 cp1252 -pre bytarr2 bytarr2)
foreach(test catch save html addlist listpar arith)
run_make_test(${test} cp437 -nodef ${test} ${test})
endforeach()
foreach(test extfunc objrep funcrep conflict)
run_make_test(${test} cp437 -nodef ${test} ${test}1 ${test}2)
endforeach()
run_make_test(vocext cp437 -pre vocext vocext1 vocext2 reflect)
foreach(test extern objmod)
run_make_test(${test} cp437 -nodef ${test} ${test}1 ${test}2 ${test}3)
endforeach()
run_make_test(gram2 cp437 -nodef gram2 tok gram2)
run_make_test(rand cp437 -nodef rand rand)
run_make_test(stack cp437 -debug stack stack reflect)
run_make_test(targprop cp437 -pre targprop targprop reflect)
run_make_test(clone cp437 -pre clone clone reflect)
run_make_test(printexpr cp437 -pre printexpr printexpr dynfunc)
run_make_test(dynctx cp437 -pre dynctx dynctx dynfunc)
run_make_test(inkey cp437 -script -nodef inkey inkey)
foreach(test vec_pre symtab enumprop modtobj undef undef2 newembed newembederr triplequote optargs
optargs_err optargs_err2)
run_make_test(${test} cp437 -pre ${test} ${test})
endforeach()
# Disable this for now; they can't work since they don't support building
# in a different directory than where the sources reside.
#run_make_test(multimethod_dynamic -pre multimethod_dynamic multimethod multmethmultimethod_static
# -DMULTMETH_STATIC_INHERITED multimethod multmeth)
run_make_test(multimethod_dynamic2 cp437 -pre multimethod_dynamic2 multimethod multimethod2 multmeth)
run_make_test(multimethod_static2 cp437 -pre multimethod_static2 -DMULTMETH_STATIC_INHERITED
multimethod multimethod2 multmeth)
run_make_test(namedparam cp437 -pre namedparam namedparam multmeth)
run_make_test(bifptr cp437 -pre bifptr bifptr dynfunc)
run_make_test(setmethod cp437 -pre setmethod setmethod dynfunc)
run_make_test(lclvars cp437 -pre lclvars lclvars lclvars2 reflect dynfunc)
run_make_test(dynamicGrammar cp437 -pre dynamicGrammar dynamicGrammar tok dynfunc gramprod)
run_make_test(iter cp437 iter iter)
run_restore_test(iter iter2 iter)
run_make_test(dyncomp cp437 -norun -pre dyncomp dyncomp dynfunc)
run_make_test(testaddr1 cp437 testaddr1 testaddr1 testaddr1b)
run_make_test(defined_test1 cp437 defined_test1 defined)
run_make_test(defined_test2 cp437 defined_test2 defined defined2)
#run_make_test(dirtest cp437 dirtest dirtest file)
run_make_test(floatfolderr cp437 -norun floatfolderr floatfolderr)
run_make_test(floatfold cp437 -pre floatfold floatfold reflect)
# TZ
#run_make_test(tostring cp437 -pre tostring tostring reflect)
run_make_test(match cp437 -pre match match)
run_make_test(inlineobj cp437 -pre inlineobj inlineobj dynfunc)
run_preinit_test(preinit)
run_run_test(strbuf_restore strbuf_restore strbuf -restore)
run_run_test(dyncomp_save dyncomp_save dyncomp -save dyncomp.t3v)
run_run_test(dyncomp_restore dyncomp_restore dyncomp -restore dyncomp.t3v)
# Extra compiler sources for dynamic code compilation in interpreter.
set (
DYN_COMP_OBJS
tads3/vmrunsym.cpp
tads3/tcprs.cpp
tads3/tcprs_rt.cpp
tads3/tcprsnf.cpp
tads3/tcprsstm.cpp
tads3/tcprsnl.cpp
tads3/tcgen.cpp
tads3/tcglob.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tctok.cpp
tads3/tcmain.cpp
tads3/tcsrc.cpp
tads3/tchostsi.cpp
tads3/tclibprs.cpp
tads3/tccmdutl.cpp
)
set(REG_BUILTIN_CHAR tads3/vmbifreg.cpp)
set(REG_BUILTIN_CHARNET tads3/vmbifregn.cpp)
set(REG_BUILTIN_HTML tads3/vmbifregx.cpp)
set(REG_BUILTIN_HTMLNET tads3/vmbifregxn.cpp)
set(REG_METACLASS tads3/vmmcreg.cpp)
set (
TARGET_OBJS_BASE
tads3/tct3.cpp
tads3/tct3stm.cpp
tads3/tct3unas.cpp
)
set (
TARGET_OBJS_NO_RT
${TARGET_OBJS_BASE}
tads3/tct3nl.cpp
tads3/tct3_d.cpp
)
set (
TARGET_OBJS_NO_LINK
${TARGET_OBJS_BASE}
tads3/tct3nl.cpp
tads3/tct3_d.cpp
)
set (
TARGET_OBJS_SYM
${TARGET_OBJS_BASE}
tads3/tct3nl.cpp
tads3/tct3prg.cpp
)
set (
TARGET_OBJS
${TARGET_OBJS_BASE}
tads3/tct3img.cpp
tads3/tct3prg.cpp
)
add_executable (
t3pre
tads3/test/test_pre.cpp
src/osportable.cc
src/missing.cc
src/ost3comp.cc
tads3/std.cpp
tads3/std_dbg.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resldexe.cpp
tads3/vmwrtimg.cpp
tads3/vminit.cpp
tads3/vmini_nd.cpp
tads3/vminitim.cpp
tads3/vmcfgmem.cpp
tads3/vmobj.cpp
tads3/vmundo.cpp
tads3/vmtobj.cpp
tads3/vmpat.cpp
tads3/vmstrcmp.cpp
tads3/vmdict.cpp
tads3/vmgram.cpp
tads3/vmstr.cpp
tads3/vmcoll.cpp
tads3/vmiter.cpp
tads3/vmfref.cpp
tads3/vmlst.cpp
tads3/vmsort.cpp
tads3/vmsortv.cpp
tads3/vmbignum.cpp
tads3/vmvec.cpp
tads3/vmintcls.cpp
tads3/vmanonfn.cpp
tads3/vmlookup.cpp
tads3/vmstrbuf.cpp
tads3/vmdynfunc.cpp
tads3/vmbytarr.cpp
tads3/vmcset.cpp
tads3/vmfilobj.cpp
tads3/vmtmpfil.cpp
tads3/vmpack.cpp
tads3/vmhttpdum.cpp
tads3/vmnetfillcl.cpp
tads3/vmstack.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/vmpool.cpp
tads3/vmpoolim.cpp
tads3/vmtype.cpp
tads3/vmtypedh.cpp
tads3/utf8.cpp
tads3/vmglob.cpp
tads3/vmrun.cpp
tads3/vmfunc.cpp
tads3/vmmeta.cpp
tads3/vmpreini.cpp
tads3/vmimgrb.cpp
tads3/vmbif.cpp
tads3/vmbifc.cpp
tads3/vmimage.cpp
tads3/vmimg_nd.cpp
tads3/vmsrcf.cpp
tads3/vmfile.cpp
tads3/vmbiftad.cpp
tads3/vmisaac.cpp
tads3/vmbiftio.cpp
tads3/askf_tx3.cpp
tads3/indlg_tx3.cpp
tads3/vmsave.cpp
tads3/vmcrc.cpp
tads3/vmbift3.cpp
tads3/vmbt3_nd.cpp
tads3/vmregex.cpp
tads3/vmconsol.cpp
tads3/vmconmor.cpp
tads3/vmconhmp.cpp
tads3/os_stdio.cpp
tads3/vmhosttx.cpp
tads3/vmhostsi.cpp
tads3/vmhash.cpp
tads3/sha2.cpp
tads3/md5.cpp
tads3/vmlog.cpp
tads3/vmbignumlib.cpp
tads3/vmtz.cpp
tads3/vmtzobj.cpp
tads3/vmdate.cpp
tads3/vmfilnam.cpp
tads3/vmop.cpp
${DYN_COMP_OBJS}
${REG_METACLASS}
${REG_BUILTIN_CHAR}
tads3/derived/vmuni_cs.cpp
tads2/osifc.c
tads2/osnoui.c
tads2/osrestad.c
tads2/osstzprs.c
tads2/ostzposix.c
${TARGET_OBJS_NO_LINK}
)
add_executable (
test_utf8
tads3/test/test_utf8.cpp
tads3/utf8.cpp
)
add_executable (
test_chr
tads3/test/test_chr.cpp
src/osportable.cc
src/missing.cc
tads2/osnoui.c
tads2/osstzprs.c
tads3/std.cpp
tads3/std_dbg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/derived/vmuni_cs.cpp
)
add_executable (
test_gets
tads3/test/test_gets.cpp
src/osportable.cc
src/missing.cc
tads2/osnoui.c
tads2/osstzprs.c
tads3/std.cpp
tads3/std_dbg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcsrc.cpp
tads3/derived/vmuni_cs.cpp
)
add_executable (
test_pool
tads3/test/test_pool.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmpool.cpp
tads3/vmpoolim.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/vmglob.cpp
tads3/derived/vmuni_cs.cpp
)
add_executable (
test_err
tads3/test/test_err.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/derived/vmuni_cs.cpp
)
add_executable (
test_regex
tads3/test/test_regex.cpp
src/missing.cc
tads3/vmregex.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/derived/vmuni_cs.cpp
tads3/std.cpp
tads3/std_dbg.cpp
)
add_executable (
test_obj
tads3/test/test_obj.cpp
src/osportable.cc
src/missing.cc
src/ost3comp.cc
tads3/std.cpp
tads3/std_dbg.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/vmfile.cpp
tads3/vmundo.cpp
tads3/vmobj.cpp
tads3/vmtobj.cpp
tads3/vmpat.cpp
tads3/vmstrcmp.cpp
tads3/vmstr.cpp
tads3/vmcoll.cpp
tads3/vmiter.cpp
tads3/vmfref.cpp
tads3/vmlst.cpp
tads3/vmsort.cpp
tads3/vmsortv.cpp
tads3/vmbignum.cpp
tads3/vmsave.cpp
tads3/vmcrc.cpp
tads3/vmvec.cpp
tads3/vmintcls.cpp
tads3/vmanonfn.cpp
tads3/vmlookup.cpp
tads3/vmstrbuf.cpp
tads3/vmdynfunc.cpp
tads3/vmbytarr.cpp
tads3/vmcset.cpp
tads3/vmfilobj.cpp
tads3/vmtmpfil.cpp
tads3/vmpack.cpp
tads3/vmstack.cpp
tads3/vmdict.cpp
tads3/vmgram.cpp
tads3/vmhttpsrv.cpp
tads3/vmhttpreq.cpp
tads3/vmnet.cpp
tads3/vmnetui.cpp
tads3/vmnetcfg.cpp
tads3/vmnetfil.cpp
tads3/vmnetfillcl.cpp
tads3/unix/osnetunix.cpp
tads3/osifcnet.cpp
tads3/vmrefcnt.cpp
tads3/sha2.cpp
tads3/md5.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/vmpool.cpp
tads3/vmpoolim.cpp
tads3/vmtype.cpp
tads3/vmtypedh.cpp
tads3/utf8.cpp
tads3/vmglob.cpp
tads3/vmrun.cpp
tads3/vmsrcf.cpp
tads3/vmfunc.cpp
tads3/vmmeta.cpp
tads3/vmbif.cpp
tads3/vmsa.cpp
tads3/vmbifl.cpp
tads3/vmbiftad.cpp
tads3/vmisaac.cpp
tads3/vmbiftio.cpp
tads3/vmbifnet.cpp
tads3/askf_tx3.cpp
tads3/indlg_tx3.cpp
tads3/vmbift3.cpp
tads3/vmbt3_nd.cpp
tads3/vminit.cpp
tads3/vmini_nd.cpp
tads3/vmconsol.cpp
tads3/vmconmor.cpp
tads3/vmconhmp.cpp
tads3/os_stdio.cpp
tads3/vminitim.cpp
tads3/vmcfgmem.cpp
tads3/vmregex.cpp
tads3/vmhosttx.cpp
tads3/vmhostsi.cpp
tads3/vmhash.cpp
${REG_METACLASS}
${REG_BUILTIN_CHARNET}
tads3/derived/vmuni_cs.cpp
tads3/tcprs.cpp
tads3/tcprsnl.cpp
tads3/tcprsfil.cpp
tads3/tcprsstm.cpp
tads3/tcprsprg.cpp
tads3/tcgen.cpp
tads3/tcgenfil.cpp
tads3/tcglob.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tctok.cpp
tads3/tcmain.cpp
tads3/tcsrc.cpp
tads3/tchostsi.cpp
tads3/tclibprs.cpp
tads3/tccmdutl.cpp
tads3/vmrunsym.cpp
tads3/vmlog.cpp
tads3/vmbignumlib.cpp
tads3/vmfilnam.cpp
tads3/vmdate.cpp
tads3/vmtz.cpp
tads3/vmtzobj.cpp
tads3/vmop.cpp
${TARGET_OBJS_NO_LINK}
tads3/tct3prg.cpp
tads2/osifc.c
tads2/osnoui.c
tads2/osrestad.c
tads2/osstzprs.c
tads2/ostzposix.c
)
target_link_libraries (
test_obj
${CURL_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
add_executable (
test_sort
tads3/test/test_sort.cpp
tads3/vmsort.cpp
)
add_executable (
test_write
tads3/test/test_write.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmwrtimg.cpp
tads3/vmfile.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/vmtypedh.cpp
tads3/derived/vmuni_cs.cpp
)
add_executable (
test_exec
tads3/test/test_exec.cpp
src/missing.cc
src/osportable.cc
src/ost3comp.cc
src/teststubs.c
tads3/vmmain.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resldexe.cpp
tads3/vminit.cpp
tads3/vmini_nd.cpp
tads3/vmconsol.cpp
tads3/vmconmor.cpp
tads3/vmconhmp.cpp
tads3/os_stdio.cpp
tads3/vminitim.cpp
tads3/vmcfgmem.cpp
tads3/vmobj.cpp
tads3/vmundo.cpp
tads3/vmtobj.cpp
tads3/vmpat.cpp
tads3/vmstrcmp.cpp
tads3/vmstr.cpp
tads3/vmcoll.cpp
tads3/vmiter.cpp
tads3/vmfref.cpp
tads3/vmlst.cpp
tads3/vmsort.cpp
tads3/vmsortv.cpp
tads3/vmbignum.cpp
tads3/vmvec.cpp
tads3/vmintcls.cpp
tads3/vmanonfn.cpp
tads3/vmdict.cpp
tads3/vmgram.cpp
tads3/vmlookup.cpp
tads3/vmstrbuf.cpp
tads3/vmdynfunc.cpp
tads3/vmbytarr.cpp
tads3/vmcset.cpp
tads3/vmfilobj.cpp
tads3/vmtmpfil.cpp
tads3/vmpack.cpp
tads3/vmhttpsrv.cpp
tads3/vmhttpreq.cpp
tads3/vmnet.cpp
tads3/vmnetui.cpp
tads3/vmnetcfg.cpp
tads3/vmnetfil.cpp
tads3/vmnetfillcl.cpp
tads3/unix/osnetunix.cpp
tads3/osifcnet.cpp
tads3/vmrefcnt.cpp
tads3/sha2.cpp
tads3/md5.cpp
tads3/vmstack.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/vmpool.cpp
tads3/vmpoolim.cpp
tads3/vmtype.cpp
tads3/vmtypedh.cpp
tads3/utf8.cpp
tads3/vmglob.cpp
tads3/vmrun.cpp
tads3/vmfunc.cpp
tads3/vmmeta.cpp
tads3/vmsa.cpp
tads3/vmbif.cpp
tads3/vmbifl.cpp
tads3/vmimage.cpp
tads3/vmimg_nd.cpp
tads3/vmsrcf.cpp
tads3/vmfile.cpp
tads3/vmbiftad.cpp
tads3/vmisaac.cpp
tads3/vmbiftio.cpp
tads3/askf_tx3.cpp
tads3/indlg_tx3.cpp
tads3/vmsave.cpp
tads3/vmcrc.cpp
tads3/vmbift3.cpp
tads3/vmbt3_nd.cpp
tads3/vmbifnet.cpp
tads3/vmregex.cpp
tads3/vmhosttx.cpp
tads3/vmhostsi.cpp
tads3/vmhash.cpp
tads3/vmbignumlib.cpp
tads3/vmfilnam.cpp
tads3/vmdate.cpp
tads3/vmtz.cpp
tads3/vmtzobj.cpp
tads3/vmop.cpp
${REG_METACLASS}
${REG_BUILTIN_CHARNET}
tads3/derived/vmuni_cs.cpp
tads3/vmlog.cpp
${DYN_COMP_OBJS}
tads2/osifc.c
tads2/osnoui.c
tads2/osrestad.c
tads2/osstzprs.c
tads2/ostzposix.c
${TARGET_OBJS_NO_LINK}
)
target_link_libraries (
test_exec
${CURL_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
add_executable (
test_tok
tads3/test/test_tok.cpp
src/osportable.cc
src/missing.cc
tads3/std.cpp
tads3/std_dbg.cpp
tads3/tcglob.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcmain.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tchostsi.cpp
tads3/tcsrc.cpp
tads3/tctok.cpp
tads3/tcprs.cpp
tads3/tcprsnl.cpp
tads3/tcprsnf.cpp
tads3/tcgen.cpp
tads3/tct3.cpp
tads3/tct3unas.cpp
tads3/tct3nl.cpp
tads3/tct3_d.cpp
tads3/vmhash.cpp
tads3/vmtypedh.cpp
tads3/vmbignumlib.cpp
tads3/vmop.cpp
tads3/derived/vmuni_cs.cpp
tads2/osnoui.c
tads2/osstzprs.c
)
add_executable (
test_prs
tads3/test/test_prs.cpp
src/osportable.cc
src/missing.cc
tads3/tcglob.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcmain.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tchostsi.cpp
tads3/tcsrc.cpp
tads3/tctok.cpp
tads3/tcprs.cpp
tads3/tcprsfil.cpp
tads3/tcprsstm.cpp
tads3/tcprsprg.cpp
tads3/tcprsimg.cpp
tads3/tcgen.cpp
tads3/tcgenfil.cpp
${TARGET_OBJS}
tads3/vmhash.cpp
tads3/vmwrtimg.cpp
tads3/vmtypedh.cpp
tads3/vmfile.cpp
tads2/osnoui.c
tads3/vmglob.cpp
tads3/derived/vmuni_cs.cpp
tads3/vmbignumlib.cpp
tads3/vmop.cpp
tads2/osstzprs.c
)
add_executable (
test_sym
tads3/test/test_sym.cpp
src/osportable.cc
src/missing.cc
tads3/tcglob.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcmain.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tchostsi.cpp
tads3/tcsrc.cpp
tads3/tctok.cpp
tads3/tcprs.cpp
tads3/tcprsfil.cpp
tads3/tcprsnl.cpp
${TARGET_OBJS_SYM}
tads3/tcprsstm.cpp
tads3/tcprsprg.cpp
tads3/tcgen.cpp
tads3/tcgenfil.cpp
tads3/vmhash.cpp
tads3/vmtypedh.cpp
tads3/vmfile.cpp
tads3/derived/vmuni_cs.cpp
tads3/vmbignumlib.cpp
tads3/vmglob.cpp
tads3/vmop.cpp
tads2/osnoui.c
tads2/osstzprs.c
)
add_executable (
test_prs_top
tads3/test/test_prs_top.cpp
src/osportable.cc
src/missing.cc
tads3/tcglob.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcmain.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tchostsi.cpp
tads3/tcsrc.cpp
tads3/tctok.cpp
tads3/tcprs.cpp
tads3/tcprsfil.cpp
tads3/tcprsstm.cpp
tads3/tcprsprg.cpp
tads3/tcprsimg.cpp
tads3/tcgen.cpp
tads3/tcgenfil.cpp
${TARGET_OBJS}
tads3/vmhash.cpp
tads3/vmwrtimg.cpp
tads3/vmtypedh.cpp
tads3/vmfile.cpp
tads3/vmglob.cpp
tads3/derived/vmuni_cs.cpp
tads3/vmbignumlib.cpp
tads3/vmop.cpp
tads2/osnoui.c
tads2/osstzprs.c
)
add_executable (
test_comp_obj
tads3/test/test_comp_obj.cpp
src/osportable.cc
src/missing.cc
tads3/tcglob.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcmain.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tchostsi.cpp
tads3/tcsrc.cpp
tads3/tctok.cpp
tads3/tcprs.cpp
tads3/tcprsfil.cpp
tads3/tcprsstm.cpp
tads3/tcprsprg.cpp
tads3/tcprsimg.cpp
tads3/tcgen.cpp
tads3/tcgenfil.cpp
${TARGET_OBJS}
tads3/vmhash.cpp
tads3/vmwrtimg.cpp
tads3/vmtypedh.cpp
tads3/vmfile.cpp
tads3/vmglob.cpp
tads3/derived/vmuni_cs.cpp
tads3/vmbignumlib.cpp
tads3/vmop.cpp
tads2/osnoui.c
tads2/osstzprs.c
)
add_executable (
test_link
tads3/test/test_link.cpp
src/osportable.cc
src/missing.cc
tads3/tcglob.cpp
tads3/std.cpp
tads3/std_dbg.cpp
tads3/vmerr.cpp
tads3/vmerrmsg.cpp
tads3/utf8.cpp
tads3/charmap.cpp
tads3/resload.cpp
tads3/resnoexe.cpp
tads3/tcmain.cpp
tads3/tcerr.cpp
tads3/tcerrmsg.cpp
tads3/tchostsi.cpp
tads3/tcsrc.cpp
tads3/tctok.cpp
tads3/tcprs.cpp
tads3/tcprsfil.cpp
tads3/tcprsstm.cpp
tads3/tcprsprg.cpp
tads3/tcprsimg.cpp
tads3/tcgen.cpp
tads3/tcgenfil.cpp
${TARGET_OBJS}
tads3/vmhash.cpp
tads3/vmwrtimg.cpp
tads3/vmtypedh.cpp
tads3/vmfile.cpp
tads3/vmglob.cpp
tads3/derived/vmuni_cs.cpp
tads3/vmbignumlib.cpp
tads3/vmop.cpp
tads2/osnoui.c
tads2/osstzprs.c
)
set_target_properties(
t3pre test_utf8 test_chr test_gets test_pool test_err test_regex test_obj test_sort test_write test_exec
test_tok test_prs test_sym test_prs_top test_comp_obj test_link
PROPERTIES RUNTIME_OUTPUT_DIRECTORY test
)