This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
730 lines (715 loc) · 28.6 KB
/
Makefile
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
SLOWLOGS = \
bootstrapping.log \
msl31.log \
msl32simulation.log \
msl32simulation_cpp_mini.log \
simulationmodelicamsl22.log \
msl22electrical.log \
msl22mechanics.log \
msl22flattening.log \
msl22additions.log \
msl31simulation.log \
msl31mediasimulation.log \
siemens_nosim.log \
siemens_simulation.log \
SiemensPower.log \
hummod.log \
ThermoSysPro_simulation.log \
flatteningExercises.log \
flatteningPlanarMechanics.log \
TestMedia.log \
cppruntime.log \
cppruntimeHpcom.log \
cppruntimeFMU1.log \
cppruntimeFMU2.log \
cppruntimeStaticLinking.log \
cppruntimeGenDebugSymbols.log \
cppruntimeHardcodedStartValues.log \
cppruntimeOMEdit.log \
taskGraph.log \
debugDumps.log \
dumpCruntime.log \
optimization.log \
xmlFiles.log \
resolveLoops.log \
evalConstFuncs.log \
flatteningBuildings.log \
buildings.log \
requirements.log \
scalable.log \
device.log
SIMULATIONLOGS = \
linearization.log \
modelicaML.log \
msl22electrical.log \
msl22mechanics.log \
simulationalgorithms-functions.log \
simulationarrays.log \
simulationasserts.log \
simulationbuilt-in-functions.log \
simulationconnectors.log \
simulationdaemode.log \
simulationdeclarations.log \
simulationenums.log \
simulationequations.log \
simulationevents.log \
simulationsynchronous.log \
simulationstatemachines.log \
simulationexternal-functions.log \
simulationindexreduction.log \
simulationinheritances.log \
simulationinlineFunction.log \
simulationjapaneselanguage.log \
simualtionlinear_system.log \
simulationnonlinear_system.log \
simulationothers.log \
simulationpackages.log \
simulationrecords.log \
simulationsolver.log \
simulationtypes.log \
simulationmodelicamsl22.log \
msl31mediasimulation.log \
msl31simulation.log \
flatteningExercises.log \
simulationExercises.log \
simulation-start-value-selection.log \
simulationinitialization.log \
simulationqss.log \
simulationunitcheck.log \
simulationtearing.log \
simulationDrModelica.log \
simulationPlanarMechanics.log \
simulationExercises.log \
simulation-start-value-selection.log \
TestMediaFrancesco.log \
ThermoPower.log \
MathematicalAspects_simulation.log \
PNlib_simulation.log \
parallel.log \
parameters.log \
simoptions.log \
annex60.log \
frontEndUnitCheck.log \
gitlibraries.log
# Sorted by time it takes to run the tests...
# DO NOT ADD ANYTHING HERE THAT YOU EXPECT WILL TAKE MORE THAN 5 SECONDS TO RUN IN THE NEXT 18 YEARS
FASTLOGS= \
modelicaexternal-objects.log \
simulationalgorithms-functions.log \
simulationarrays.log \
simulationasserts.log \
simulationbuilt-in-functions.log \
simulationconnectors.log \
simulationdeclarations.log \
simulationenums.log \
simulationequations.log \
simulationevents.log \
simulationsynchronous.log \
simulationstatemachines.log \
simulationexternal-functions.log \
simulationindexreduction.log \
simulationinheritances.log \
simulationjapaneselanguage.log \
simualtionlinear_system.log \
simulationnonlinear_system.log \
simulationothers.log \
simulationpackages.log \
simulationrecords.log \
simulationsolver.log \
simulationtypes.log \
modelicaasserts.log \
modelicaalgorithms-functions.log \
modelicaarrays.log \
modelicaothers.log \
modelicaexternal-functions.log \
modelicaequations.log \
modelicabuilt-in-functions.log \
modelicaextends.log \
modelicaoperators.log \
modelicapackages.log \
modelicadeclarations.log \
modelicaenums.log \
modelicasynchronous.log \
modelicastatemachines.log \
modelicascoping.log \
modelicatypes.log \
modelicamodification.log \
modelicaconnectors.log \
modelicablocks.log \
parser.log \
meta.log \
biochem.log \
flatteningmodelicamsl.log \
mmdev.log \
flatteningmosfiles.log \
interactive-API.log \
typed-API.log \
records.log \
expandable.log \
linearization.log \
modelicaML.log \
streams.log \
redeclare.log \
fmi_me_10.log \
fmi_me_20.log \
omsimulator.log \
fmi_cs_st.log \
uncertainties.log \
scodeinst.log \
xml.log \
xogeny.log \
openmodelicadiff.log
.PHONY : all omc-diff ReferenceFiles failingtest test fast fast.logs $(FASTLOGS) $(SLOWLOGS) $(SIMULATIONLOGS) slow.logs threaded
all : test
ReferenceFiles:
$(MAKE) -C ReferenceFiles
# This will run the test with 5 threads (cores + 1)
# If you have more cores increase it.
# or just run "make -jN" on the command line if you have N-1 cores
threaded :
@echo running the testsuite with multiple MAKE threads.
@echo This is not an official OM test. Run the normal test before commites.
@echo If some tests fail with this just run them individualy. Most probably
@echo they will work.
@echo This threaded version still have some issues. However if it succedes
@echo then there is no need to run the serial one. Except when you are COMMITING changes.
$(MAKE) -j5 clean
$(MAKE) -j5 test
omc-diff :
$(MAKE) -C difftool
test : slow.logs fast.logs
@cat `ls $(FASTLOGS) $(SLOWLOGS) | sort`
@rm -f {flattening/modelica/asserts,flattening/modelica/algorithms-functions,flattening/modelica/arrays,flattening/modelica/others,flattening/modelica/external-functions,flattening/modelica/equations,flattening/modelica/built-in-functions,flattening/modelica/extends,flattening/modelica/operators,flattening/modelica/packages,flattening/modelica/declarations,flattening/modelica/enums,flattening/modelica/synchronous,flattening/modelica/statemachines,flattening/modelica/scoping,flattening/modelica/types,flattening/modelica/modification,flattening/modelica/connectors,flattening/modelica/blocks,flattening/modelica/streams,flattening/libraries/msl22,flattening/modelica/msl,metamodelica/meta,flattening/modelica/records,openmodelica/java,openmodelica/interactive-API,flattening/modelica/mosfiles}/*.{dll,so,exe};
test-oldresult:
@cat `ls $(FASTLOGS) $(SLOWLOGS) | sort`
test-oldresult-summary:
@cat `ls $(FASTLOGS) $(SLOWLOGS) | sort` > test.log
@cat test.log
@grep ^== test.log | grep failed | gawk '{ fail += $$2; sum += $$5 } END {printf "== Total: %d out of %d failed\n",fail,sum}'
fast : omc-diff fast.logs
@cat `ls $(FASTLOGS) | sort`
@rm -f {flattening/modelica/asserts,flattening/modelica/algorithms-functions,flattening/modelica/arrays,flattening/modelica/others,flattening/modelica/external-functions,flattening/modelica/equations,flattening/modelica/built-in-functions,flattening/modelica/extends,flattening/modelica/operators,flattening/modelica/packages,flattening/modelica/declarations,flattening/modelica/enums,flattening/modelica/synchronous,flattening/modelica/statemachines,flattening/modelica/scoping,flattening/modelica/types,flattening/modelica/modification,flattening/modelica/connectors,flattening/modelica/blocks,flattening/modelica/streams,flattening/modelica/msl,metamodelica/meta,flattening/modelica/records,openmodelica/java}/*.{dll,so,exe};
simulation: omc-diff simulation.logs
@cat `ls $(SIMULATIONLOGS) | sort` > simulation.log
@cat simulation.log
@grep ^== simulation.log | grep failed | gawk '{ fail += $$2; sum += $$5 } END {printf "== Total: %d out of %d failed\n",fail,sum}'
fast.logs: $(FASTLOGS)
# java should probably also be part of 'fast'
slow.logs: $(SLOWLOGS)
simulation.logs: $(SIMULATIONLOGS)
streams.log: omc-diff
$(MAKE) -C flattening/modelica/streams -f Makefile test > $@
@echo $@ done
redeclare.log: omc-diff
$(MAKE) -C flattening/modelica/redeclare -f Makefile test > $@
@echo $@ done
modelicaasserts.log: omc-diff
$(MAKE) -C flattening/modelica/asserts -f Makefile test > $@
@echo $@ done
modelicaalgorithms-functions.log: omc-diff
$(MAKE) -C flattening/modelica/algorithms-functions -f Makefile test > $@
@echo $@ done
modelicaarrays.log: omc-diff
$(MAKE) -C flattening/modelica/arrays -f Makefile test > $@
@echo $@ done
modelicaothers.log: omc-diff
$(MAKE) -C flattening/modelica/others -f Makefile test > $@
@echo $@ done
modelicaexternal-functions.log: omc-diff
$(MAKE) -C flattening/modelica/external-functions -f Makefile test > $@
@echo $@ done
modelicaexternal-objects.log: omc-diff
$(MAKE) -C flattening/modelica/external-objects -f Makefile test > $@
@echo $@ done
modelicaequations.log: omc-diff
$(MAKE) -C flattening/modelica/equations -f Makefile test > $@
@echo $@ done
modelicabuilt-in-functions.log: omc-diff
$(MAKE) -C flattening/modelica/built-in-functions -f Makefile test > $@
@echo $@ done
modelicaextends.log: omc-diff
$(MAKE) -C flattening/modelica/extends -f Makefile test > $@
@echo $@ done
modelicaoperators.log: omc-diff
$(MAKE) -C flattening/modelica/operators -f Makefile test > $@
@echo $@ done
modelicapackages.log: omc-diff
$(MAKE) -C flattening/modelica/packages -f Makefile test > $@
@echo $@ done
modelicadeclarations.log: omc-diff
$(MAKE) -C flattening/modelica/declarations -f Makefile test > $@
@echo $@ done
modelicaenums.log: omc-diff
$(MAKE) -C flattening/modelica/enums -f Makefile test > $@
@echo $@ done
modelicasynchronous.log: omc-diff
$(MAKE) -C flattening/modelica/synchronous -f Makefile test > $@
@echo $@ done
modelicastatemachines.log: omc-diff
$(MAKE) -C flattening/modelica/statemachines -f Makefile test > $@
@echo $@ done
modelicascoping.log: omc-diff
$(MAKE) -C flattening/modelica/scoping -f Makefile test > $@
@echo $@ done
modelicatypes.log: omc-diff
$(MAKE) -C flattening/modelica/types -f Makefile test > $@
@echo $@ done
modelicamodification.log: omc-diff
$(MAKE) -C flattening/modelica/modification -f Makefile test > $@
@echo $@ done
modelicaconnectors.log: omc-diff
$(MAKE) -C flattening/modelica/connectors -f Makefile test > $@
@echo $@ done
modelicablocks.log: omc-diff
$(MAKE) -C flattening/modelica/blocks -f Makefile test > $@
@echo $@ done
parser.log: omc-diff
$(MAKE) -C openmodelica/parser -f Makefile test > $@
@echo $@ done
uncertainties.log: omc-diff
$(MAKE) -C openmodelica/uncertainties -f Makefile test > $@
@echo $@ done
interactive-API.log: omc-diff
$(MAKE) -C openmodelica/interactive-API -f Makefile test > $@
@echo $@ done
typed-API.log: omc-diff
$(MAKE) -C openmodelica/typed-API -f Makefile test > $@
@echo $@ done
flatteningmodelicamsl.log: omc-diff
$(MAKE) -C flattening/modelica/msl -f Makefile test > flatteningmodelicamsl.log
@echo $@ done
simulationalgorithms-functions.log: omc-diff
$(MAKE) -C simulation/modelica/algorithms_functions -f Makefile test > $@
@echo $@ done
simulationarrays.log: omc-diff
$(MAKE) -C simulation/modelica/arrays -f Makefile test > $@
@echo $@ done
simulationasserts.log: omc-diff
$(MAKE) -C simulation/modelica/asserts -f Makefile test > $@
@echo $@ done
simulationbuilt-in-functions.log: omc-diff
$(MAKE) -C simulation/modelica/built_in_functions -f Makefile test > $@
@echo $@ done
simulationconnectors.log: omc-diff
$(MAKE) -C simulation/modelica/connectors -f Makefile test > $@
@echo $@ done
simulationdaemode.log: omc-diff
$(MAKE) -C simulation/modelica/daemode -f Makefile test > $@
@echo $@ done
simulationdeclarations.log: omc-diff
$(MAKE) -C simulation/modelica/declarations -f Makefile test > $@
@echo $@ done
simulationenums.log: omc-diff
$(MAKE) -C simulation/modelica/enums -f Makefile test > $@
@echo $@ done
simulationequations.log: omc-diff
$(MAKE) -C simulation/modelica/equations -f Makefile test > $@
@echo $@ done
simulationevents.log: omc-diff
$(MAKE) -C simulation/modelica/events -f Makefile test > $@
@echo $@ done
simulationsynchronous.log: omc-diff
$(MAKE) -C simulation/modelica/synchronous -f Makefile test > $@
@echo $@ done
simulationstatemachines.log: omc-diff
$(MAKE) -C simulation/modelica/statemachines -f Makefile test > $@
@echo $@ done
simulationexternal-functions.log: omc-diff
$(MAKE) -C simulation/modelica/external_functions -f Makefile test > $@
@echo $@ done
simulationindexreduction.log: omc-diff
$(MAKE) -C simulation/modelica/indexreduction -f Makefile test > $@
@echo $@ done
simulationinheritances.log: omc-diff
$(MAKE) -C simulation/modelica/inheritances -f Makefile test > $@
@echo $@ done
simulationinlineFunction.log: omc-diff
$(MAKE) -C simulation/modelica/inlineFunction -f Makefile test > $@
@echo $@ done
simulationinStream.log: omc-diff
$(MAKE) -C simulation/modelica/inStream -f Makefile test > $@
@echo $@ done
simulationjapaneselanguage.log: omc-diff
$(MAKE) -C simulation/modelica/japaneselanguage -f Makefile test > $@
@echo $@ done
simualtionlinear_system.log: omc-diff
$(MAKE) -C simulation/modelica/linear_system -f Makefile test > $@
@echo $@ done
simulationnonlinear_system.log: omc-diff
$(MAKE) -C simulation/modelica/nonlinear_system -f Makefile test > $@
@echo $@ done
simulationothers.log: omc-diff
$(MAKE) -C simulation/modelica/others -f Makefile test > $@
@echo $@ done
simulationpackages.log: omc-diff
$(MAKE) -C simulation/modelica/packages -f Makefile test > $@
@echo $@ done
simulationrecords.log: omc-diff
$(MAKE) -C simulation/modelica/records -f Makefile test > $@
@echo $@ done
simulationsolver.log: omc-diff
$(MAKE) -C simulation/modelica/solver -f Makefile test > $@
@echo $@ done
simulationtypes.log: omc-diff
$(MAKE) -C simulation/modelica/types -f Makefile test > $@
@echo $@ done
simulationmodelicamsl22.log: omc-diff
$(MAKE) -C simulation/modelica/msl22 -f Makefile test > $@
@echo $@ done
flatteningmosfiles.log: omc-diff
$(MAKE) -C flattening/modelica/mosfiles -f Makefile test > $@
@echo $@ done
meta.log: omc-diff
$(MAKE) -C metamodelica/meta -f Makefile test > $@
@echo $@ done
mmdev.log: omc-diff
$(MAKE) -C metamodelica/MetaModelicaDev -f Makefile test > $@
@echo $@ done
records.log: omc-diff
$(MAKE) -C flattening/modelica/records -f Makefile test > $@
@echo $@ done
expandable.log: omc-diff
$(MAKE) -C flattening/modelica/expandable -f Makefile test > $@
@echo $@ done
simulationinitialization.log: omc-diff
$(MAKE) -C simulation/modelica/initialization -f Makefile test > $@
@echo $@ done
simulationqss.log: omc-diff
$(MAKE) -C simulation/modelica/qss -f Makefile test > $@
@echo $@ done
frontEndUnitCheck.log: omc-diff
$(MAKE) -C simulation/modelica/NFunitcheck -f Makefile test > $@
@echo $@ done
simulationunitcheck.log: omc-diff
$(MAKE) -C simulation/modelica/unitcheck -f Makefile test > $@
@echo $@ done
simulationtearing.log: omc-diff
$(MAKE) -C simulation/modelica/tearing -f Makefile test > $@
@echo $@ done
cppruntime.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime -f Makefile test > $@
@echo $@ done
cppruntimeHpcom.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/hpcom -f Makefile test > $@
@echo $@ done
cppruntimeOMEdit.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/omedit -f Makefile test > $@
@echo $@ done
cppruntimeFMU1.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/fmu/modelExchange/1.0 -f Makefile test > $@
@echo $@ done
cppruntimeFMU2.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/fmu/modelExchange/2.0 -f Makefile test > $@
@echo $@ done
cppruntimeStaticLinking.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/staticLinking -f Makefile test > $@
@echo $@ done
cppruntimeGenDebugSymbols.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/genDebugSymbols -f Makefile test > $@
@echo $@ done
cppruntimeHardcodedStartValues.log: omc-diff
$(MAKE) -j1 -C openmodelica/cppruntime/hardcodedStartValues -f Makefile test > $@
@echo $@ done
linearization.log: omc-diff
$(MAKE) -C openmodelica/linearization -f Makefile test > $@
@echo $@ done
modelicaML.log: omc-diff
$(MAKE) -C openmodelica/modelicaML -f Makefile test > $@
@echo $@ done
openmodelicajava.log: omc-diff
$(MAKE) -C openmodelica/java -f Makefile test > $@
@echo $@ done
bootstrapping.log: omc-diff
$(MAKE) -C openmodelica/bootstrapping -f Makefile test > $@
@echo $@ done
msl22electrical.log: omc-diff
$(MAKE) -C simulation/libraries/msl22/Electrical -f Makefile test > $@
@echo $@ done
msl22mechanics.log: omc-diff
$(MAKE) -C simulation/libraries/msl22/Mechanics -f Makefile test > $@
@echo $@ done
biochem.log: omc-diff
$(MAKE) -C flattening/libraries/biochem -f Makefile test > $@
@echo $@ done
msl32simulation.log: omc-diff
$(MAKE) -C simulation/libraries/msl32 -f Makefile test > $@
@echo $@ done
msl32simulation_cpp.log: omc-diff
$(MAKE) -C simulation/libraries/msl32_cpp -f Makefile test > $@
@echo $@ done
msl32simulation_cpp_mini.log: omc-diff
$(MAKE) -C openmodelica/cppruntime/libraries/msl32 -f Makefile test > $@
@echo $@ done
msl31simulation.log: omc-diff
$(MAKE) -C simulation/libraries/msl31 -f Makefile test > $@
@echo $@ done
msl31mediasimulation.log: omc-diff
$(MAKE) -C simulation/libraries/msl31/media -f Makefile test > $@
@echo $@ done
siemens_nosim.log: omc-diff
$(MAKE) -C flattening/libraries/3rdParty/siemens -f Makefile test > $@
@echo $@ done
siemens_simulation.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/siemens -f Makefile test > $@
@echo $@ done
SiemensPower.log: omc-diff
$(MAKE) -C flattening/libraries/3rdParty/SiemensPower -f Makefile test > $@
@echo $@ done
ThermoSysPro_simulation.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/ThermoSysPro -f Makefile test > $@
@echo $@ done
MathematicalAspects_simulation.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/MathematicalAspects -f Makefile test > $@
@echo $@ done
PNlib_simulation.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/PNlib -f Makefile test > $@
@echo $@ done
fmi_me_10.log: omc-diff
$(MAKE) -C openmodelica/fmi/ModelExchange/1.0/ -f Makefile test > $@
@echo $@ done
fmi_me_20.log: omc-diff
$(MAKE) -C openmodelica/fmi/ModelExchange/2.0/ -f Makefile test > $@
@echo $@ done
omsimulator.log: omc-diff
$(MAKE) -C omsimulator/ -f Makefile test > $@
@echo $@ done
fmi_cs_st.log: omc-diff
$(MAKE) -C openmodelica/fmi/CoSimulationStandAlone -f Makefile test > $@
@echo $@ done
flatteningPlanarMechanics.log: omc-diff
$(MAKE) -C flattening/libraries/3rdParty/PlanarMechanics -f Makefile test > $@
@echo $@ done
simulationPlanarMechanics.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/PlanarMechanics -f Makefile test > $@
@echo $@ done
flatteningExercises.log: omc-diff
$(MAKE) -C flattening/libraries/3rdParty/Exercises -f Makefile test > $@
@echo $@ done
simulationExercises.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/Exercises -f Makefile test > $@
@echo $@ done
simulation-start-value-selection.log: omc-diff
$(MAKE) -C simulation/modelica/start_value_selection -f Makefile test > $@
@echo $@ done
TestMedia.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/TestMedia -f Makefile test > $@
@echo $@ done
TestMediaFrancesco.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/TestMediaFrancesco -f Makefile test > $@
@echo $@ done
ThermoPower.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/ThermoPower -f Makefile test > $@
@echo $@ done
simulationDrModelica.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/DrModelica -f Makefile test > $@
@echo $@ done
scodeinst.log: omc-diff
$(MAKE) -C flattening/modelica/scodeinst -f Makefile test > $@
@echo $@ done
xml.log: omc-diff
$(MAKE) -C openmodelica/xml -f Makefile test > $@
@echo $@ done
parallel.log: omc-diff
$(MAKE) -C simulation/modelica/parallel -f Makefile test > $@
@echo $@ done
parameters.log: omc-diff
$(MAKE) -C simulation/modelica/parameters -f Makefile test > $@
@echo $@ done
taskGraph.log: omc-diff
$(MAKE) -C simulation/modelica/hpcom -f Makefile test > $@
@echo $@ done
debugDumps.log: omc-diff
$(MAKE) -j1 -C openmodelica/debugDumps -f Makefile test > $@
@echo $@ done
optimization.log: omc-diff
$(MAKE) -j1 -C openmodelica/cruntime/optimization/basic -f Makefile test > $@
$(MAKE) -j1 -C openmodelica/cruntime/optimization/benchmark -f Makefile test > $@
@echo $@ done
xmlFiles.log: omc-diff
$(MAKE) -j1 -C openmodelica/cruntime/xmlFiles -f Makefile test > $@
@echo $@ done
simoptions.log: omc-diff
$(MAKE) -j1 -C openmodelica/cruntime/simoptions -f Makefile test > $@
@echo $@ done
sensitivities.log: omc-diff
$(MAKE) -j1 -C openmodelica/cruntime/sensitivities -f Makefile test > $@
@echo $@ done
dumpCruntime.log: omc-diff
$(MAKE) -j1 -C openmodelica/cruntime/debugDumps -f Makefile test > $@
@echo $@ done
resolveLoops.log: omc-diff
$(MAKE) -C simulation/modelica/resolveLoops -f Makefile test > $@
@echo $@ done
evalConstFuncs.log: omc-diff
$(MAKE) -C simulation/modelica/functions_eval -f Makefile test > $@
@echo $@ done
xogeny.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/Xogeny -f Makefile test > $@
@echo $@ done
flatteningBuildings.log: omc-diff
$(MAKE) -C flattening/libraries/3rdParty/Buildings -f Makefile test > $@
@echo $@ done
buildings.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/Buildings -f Makefile test > $@
@echo $@ done
annex60.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/Annex60 -f Makefile test > $@
@echo $@ done
gitlibraries.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/GitLibraries -f Makefile test > $@
@echo $@ done
cse.log: omc-diff
$(MAKE) -C simulation/modelica/commonSubExp -f Makefile test > $@
@echo $@ done
hummod.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/HumMod -f Makefile test > $@
@echo $@ done
openmodelicadiff.log: omc-diff
$(MAKE) -C openmodelica/diff -f Makefile test > $@
@echo $@ done
scalable.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/ScalableTestSuite -f Makefile test > $@
@echo $@ done
requirements.log: omc-diff
$(MAKE) -C openmodelica/requirements -f Makefile test > $@
@echo $@ done
device.log: omc-diff
$(MAKE) -C simulation/libraries/3rdParty/Modelica_DeviceDrivers -f Makefile test > $@
@echo $@ done
failingtest: omc-diff
cd mofiles; $(MAKE) -f Makefile failingtest; \
cd mosfiles; $(MAKE) -f Makefile failingtest; \
cd ../flattening/modelica/msl; $(MAKE) -f Makefile failingtest; \
cd ../flattening/libraries/msl22; $(MAKE) -f Makefile failingtest; \
cd ../flattening/libraries/msl22; $(MAKE) -f Makefile failingtest; \
cd ../msl22/modelicaAdditions; $(MAKE) -f Makefile failingtest; \
cd ../../biochem; $(MAKE) -f Makefile failingtest; \
cd ../multibody; $(MAKE) -f Makefile failingtest; \
cd ../msl31; $(MAKE) -f Makefile failingtest;
cd ../msl32; $(MAKE) -f Makefile failingtest;
clean:
test -e .git || $(MAKE) clean_g_1 clean_g_2 clean_g_3 clean_g_4
test ! -e .git || $(MAKE) git-clean
git-clean:
git clean -fdxq -e 'runtest.db*'
clean_g_1 :
$(MAKE) -C flattening/modelica/algorithms-functions -f Makefile clean
$(MAKE) -C flattening/modelica/arrays -f Makefile clean
$(MAKE) -C flattening/modelica/asserts -f Makefile clean
$(MAKE) -C flattening/modelica/blocks -f Makefile clean
$(MAKE) -C flattening/modelica/built-in-functions -f Makefile clean
$(MAKE) -C flattening/modelica/connectors -f Makefile clean
$(MAKE) -C flattening/modelica/declarations -f Makefile clean
$(MAKE) -C flattening/modelica/enums -f Makefile clean
$(MAKE) -C flattening/modelica/synchronous -f Makefile clean
$(MAKE) -C flattening/modelica/statemachines -f Makefile clean
$(MAKE) -C flattening/modelica/equations -f Makefile clean
$(MAKE) -C flattening/modelica/extends -f Makefile clean
$(MAKE) -C flattening/modelica/external-functions -f Makefile clean
$(MAKE) -C flattening/modelica/modification -f Makefile clean
$(MAKE) -C flattening/modelica/operators -f Makefile clean
$(MAKE) -C flattening/modelica/others -f Makefile clean
$(MAKE) -C flattening/modelica/packages -f Makefile clean
$(MAKE) -C flattening/modelica/redeclare -f Makefile clean
$(MAKE) -C flattening/modelica/scoping -f Makefile clean
$(MAKE) -C flattening/modelica/streams -f Makefile clean
$(MAKE) -C flattening/modelica/types -f Makefile clean
clean_g_2 :
$(MAKE) -C flattening/modelica/expandable -f Makefile clean
$(MAKE) -C flattening/modelica/mosfiles -f Makefile clean
$(MAKE) -C flattening/modelica/msl -f Makefile clean
$(MAKE) -C flattening/modelica/records -f Makefile clean
$(MAKE) -C metamodelica/meta -f Makefile clean
$(MAKE) -C openmodelica/cppruntime -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/hpcom -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/omedit -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/fmu/modelExchange/1.0 -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/fmu/modelExchange/2.0 -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/staticLinking -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/genDebugSymbols -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/hardcodedStartValues -f Makefile clean
$(MAKE) -C openmodelica/cruntime/optimization/basic -f Makefile clean
$(MAKE) -C openmodelica/cruntime/xmlFiles -f Makefile clean
$(MAKE) -C openmodelica/debugDumps -f Makefile clean
$(MAKE) -C openmodelica/interactive-API -f Makefile clean
$(MAKE) -C openmodelica/parser -f Makefile clean
$(MAKE) -C openmodelica/typed-API -f Makefile clean
$(MAKE) -C openmodelica/xml -f Makefile clean
$(MAKE) -C simulation/modelica/algorithms_functions -f Makefile clean
$(MAKE) -C simulation/modelica/arrays -f Makefile clean
$(MAKE) -C simulation/modelica/asserts -f Makefile clean
$(MAKE) -C simulation/modelica/built_in_functions -f Makefile clean
$(MAKE) -C simulation/modelica/connectors -f Makefile clean
$(MAKE) -C simulation/modelica/declarations -f Makefile clean
$(MAKE) -C simulation/modelica/enums -f Makefile clean
$(MAKE) -C simulation/modelica/equations -f Makefile clean
$(MAKE) -C simulation/modelica/events -f Makefile clean
$(MAKE) -C simulation/modelica/synchronous -f Makefile clean
$(MAKE) -C simulation/modelica/external_functions -f Makefile clean
$(MAKE) -C simulation/modelica/inheritances -f Makefile clean
$(MAKE) -C simulation/modelica/initialization -f Makefile clean
$(MAKE) -C simulation/modelica/qss -f Makefile clean
$(MAKE) -C simulation/modelica/unitcheck -f Makefile clean
$(MAKE) -C simulation/modelica/tearing -f Makefile clean
$(MAKE) -C simulation/modelica/japaneselanguage -f Makefile clean
$(MAKE) -C simulation/modelica/linear_system -f Makefile clean
$(MAKE) -C simulation/modelica/msl22 -f Makefile clean
$(MAKE) -C simulation/modelica/nonlinear_system -f Makefile clean
$(MAKE) -C simulation/modelica/others -f Makefile clean
$(MAKE) -C simulation/modelica/packages -f Makefile clean
$(MAKE) -C simulation/modelica/records -f Makefile clean
$(MAKE) -C simulation/modelica/types -f Makefile clean
$(MAKE) -C simulation/modelica/NFunitcheck -f Makefile clean
clean_g_3 :
$(MAKE) -C flattening/libraries/msl22/modelicaAdditions -f Makefile clean
$(MAKE) -C flattening/libraries/biochem -f Makefile clean
$(MAKE) -C flattening/libraries/msl22 -f Makefile clean
$(MAKE) -C openmodelica/bootstrapping -f Makefile clean
$(MAKE) -C openmodelica/linearization -f Makefile clean
$(MAKE) -C openmodelica/modelicaML -f Makefile clean
$(MAKE) -C simulation/libraries/msl22/Electrical -f Makefile clean
$(MAKE) -C simulation/libraries/msl22/Mechanics -f Makefile clean
clean_g_4:
$(MAKE) -C flattening/libraries/3rdParty/PlanarMechanics -f Makefile clean
$(MAKE) -C flattening/libraries/3rdParty/siemens -f Makefile clean
$(MAKE) -C flattening/libraries/3rdParty/SiemensPower -f Makefile clean
$(MAKE) -C flattening/libraries/msl31 -f Makefile clean
$(MAKE) -C flattening/libraries/msl31/multibody -f Makefile clean
$(MAKE) -C flattening/libraries/msl32 -f Makefile clean
$(MAKE) -C flattening/libraries/msl32_cpp -f Makefile clean
$(MAKE) -C openmodelica/cppruntime/libraries/msl32 -f Makefile clean
$(MAKE) -C openmodelica/fmi/CoSimulationStandAlone -f Makefile clean
$(MAKE) -C openmodelica/fmi/ModelExchange/1.0 -f Makefile clean
$(MAKE) -C openmodelica/fmi/ModelExchange/2.0 -f Makefile clean
$(MAKE) -C omsimulator -f Makefile clean
$(MAKE) -C simulation/libraries/3rdParty/PlanarMechanics -f Makefile clean
$(MAKE) -C simulation/libraries/3rdParty/siemens -f Makefile clean
$(MAKE) -C simulation/libraries/msl32 -f Makefile clean
git-sanity-check: git-clean
find -name "*.cpp" > invalid-files.log
find -name "*.h" >> invalid-files.log
find -name "*.c" >> invalid-files.log
find -name "*.xml" >> invalid-files.log
find -name "*.graphml" >> invalid-files.log
find -name "*~*" >> invalid-files.log
find -name "*.fmu" >> invalid-files.log
find -name "*.libs" >> invalid-files.log
find -name "*.log" >> invalid-files.log
find -name "*.makefile" >> invalid-files.log
find -name "*.sh" >> invalid-files.log
find -name "*.o" >> invalid-files.log
find -name "*.so" >> invalid-files.log
find -name "*.lib" >> invalid-files.log
find -name "*.a" >> invalid-files.log
find -name "*.mat" >> invalid-files.log
find -name "*.csv" >> invalid-files.log
(find -type f -executable -exec file -i '{}' ";" | grep -s charset=binary >> invalid-files.log) || true
sort invalid-files.log | grep -v runtest.db > invalid-files.sorted
sort .gitvalidfiles > .gitvalidfiles.sorted
comm --check-order -23 invalid-files.sorted .gitvalidfiles.sorted > invalid-files.log
cat invalid-files.log
test ! -s invalid-files.log
for commit in `git rev-list origin/master..HEAD`; do \
test 50 -ge "`git log --format="%s" $$commit~1..$$commit | wc -c`" || (echo "$$commit has a too long commit summary (leave an empty line after the first if it is not part of the summary)"; git log $$commit~1..$$commit; false);\
test 72 -ge "`git log --format="%b" $$commit~1..$$commit | wc -L`" || (echo "$$commit has too long commit lines (max 72 characters per line)"; git log $$commit~1..$$commit; false);\
done