|
| 1 | +TEST = ../../../../rtest -v |
| 2 | + |
| 3 | +TESTFILES = \ |
| 4 | +PowerSystems.Examples.AC1ph_DC.Drives.BLDC.mos \ |
| 5 | +PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mos \ |
| 6 | +PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mos \ |
| 7 | +PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mos \ |
| 8 | +PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mos \ |
| 9 | +PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mos \ |
| 10 | +PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.mos \ |
| 11 | +PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.mos \ |
| 12 | +PowerSystems.Examples.AC1ph_DC.Elementary.Fault.mos \ |
| 13 | +PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mos \ |
| 14 | +PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mos \ |
| 15 | +PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mos \ |
| 16 | +PowerSystems.Examples.AC1ph_DC.Elementary.Line.mos \ |
| 17 | +PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mos \ |
| 18 | +PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mos \ |
| 19 | +PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mos \ |
| 20 | +PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mos \ |
| 21 | +PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mos \ |
| 22 | +PowerSystems.Examples.AC1ph_DC.Elementary.Source.mos \ |
| 23 | +PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mos \ |
| 24 | +PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mos \ |
| 25 | +PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mos \ |
| 26 | +PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mos \ |
| 27 | +PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.mos \ |
| 28 | +PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.mos \ |
| 29 | +PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.mos \ |
| 30 | +PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mos \ |
| 31 | +PowerSystems.Examples.AC3ph.Drives.ASM.mos \ |
| 32 | +PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mos \ |
| 33 | +PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.mos \ |
| 34 | +PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.mos \ |
| 35 | +PowerSystems.Examples.AC3ph.Drives.ASMav.mos \ |
| 36 | +PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.mos \ |
| 37 | +PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mos \ |
| 38 | +PowerSystems.Examples.AC3ph.Drives.SM_ctrl.mos \ |
| 39 | +PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.mos \ |
| 40 | +PowerSystems.Examples.AC3ph.Elementary.Breaker.mos \ |
| 41 | +PowerSystems.Examples.AC3ph.Elementary.Fault.mos \ |
| 42 | +PowerSystems.Examples.AC3ph.Elementary.Impedance.mos \ |
| 43 | +PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.mos \ |
| 44 | +PowerSystems.Examples.AC3ph.Elementary.Inverter.mos \ |
| 45 | +PowerSystems.Examples.AC3ph.Elementary.Line.mos \ |
| 46 | +PowerSystems.Examples.AC3ph.Elementary.Load.mos \ |
| 47 | +PowerSystems.Examples.AC3ph.Elementary.Machines.mos \ |
| 48 | +PowerSystems.Examples.AC3ph.Elementary.Rectifier.mos \ |
| 49 | +PowerSystems.Examples.AC3ph.Elementary.Sensor.mos \ |
| 50 | +PowerSystems.Examples.AC3ph.Elementary.Source.mos \ |
| 51 | +PowerSystems.Examples.AC3ph.Elementary.Transformer.mos \ |
| 52 | +PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.mos \ |
| 53 | +PowerSystems.Examples.AC3ph.Generation.Islanding.mos \ |
| 54 | +PowerSystems.Examples.AC3ph.Generation.LocalGeneration.mos \ |
| 55 | +PowerSystems.Examples.AC3ph.Generation.PQsource.mos \ |
| 56 | +PowerSystems.Examples.AC3ph.Generation.PVsource.mos \ |
| 57 | +PowerSystems.Examples.AC3ph.Generation.PowerAngle.mos \ |
| 58 | +PowerSystems.Examples.AC3ph.Generation.TieLine.mos \ |
| 59 | +PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mos \ |
| 60 | +PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mos \ |
| 61 | +PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.mos \ |
| 62 | +PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator.mos \ |
| 63 | +PowerSystems.Examples.AC3ph.Generation.Vsource.mos \ |
| 64 | +PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mos \ |
| 65 | +PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mos \ |
| 66 | +PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.mos \ |
| 67 | +PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.mos \ |
| 68 | +PowerSystems.Examples.AC3ph.Inverters.Rectifier.mos \ |
| 69 | +PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.mos \ |
| 70 | +PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.mos \ |
| 71 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.mos \ |
| 72 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mos \ |
| 73 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mos \ |
| 74 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mos \ |
| 75 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.mos \ |
| 76 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.mos \ |
| 77 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.mos \ |
| 78 | +PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.mos \ |
| 79 | +PowerSystems.Examples.AC3ph.Transformation.PhaseShifts.mos \ |
| 80 | +PowerSystems.Examples.AC3ph.Transformation.TapChanger.mos \ |
| 81 | +PowerSystems.Examples.AC3ph.Transformation.ThreeWinding.mos \ |
| 82 | +PowerSystems.Examples.AC3ph.Transmission.DoubleLineTG.mos \ |
| 83 | +PowerSystems.Examples.AC3ph.Transmission.DoubleRXline.mos \ |
| 84 | +PowerSystems.Examples.AC3ph.Transmission.DoubleRXlineTG.mos \ |
| 85 | +PowerSystems.Examples.AC3ph.Transmission.FaultRXline.mos \ |
| 86 | +PowerSystems.Examples.AC3ph.Transmission.FaultTline.mos \ |
| 87 | +PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.mos \ |
| 88 | +PowerSystems.Examples.AC3ph.Transmission.RXline.mos \ |
| 89 | +PowerSystems.Examples.AC3ph.Transmission.Tline.mos \ |
| 90 | +PowerSystems.Examples.AC3ph.Transmission.VoltageStability.mos \ |
| 91 | +PowerSystems.Examples.Generic.Network.NetworkControlled.mos \ |
| 92 | +PowerSystems.Examples.Generic.Network.NetworkLoop.mos \ |
| 93 | +PowerSystems.Examples.Generic.Network.NetworkLoop_d.mos \ |
| 94 | +PowerSystems.Examples.Generic.Network.NetworkLoop_dq.mos \ |
| 95 | +PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.mos \ |
| 96 | +PowerSystems.Examples.Generic.Network.NetworkOpened.mos \ |
| 97 | +PowerSystems.Examples.Generic.Test.AdmittanceTest.mos \ |
| 98 | +PowerSystems.Examples.Generic.Test.FixedCurrentTest.mos \ |
| 99 | +PowerSystems.Examples.Generic.Test.FixedLoadTest.mos \ |
| 100 | +PowerSystems.Examples.Generic.Test.GeneratorTest.mos \ |
| 101 | +PowerSystems.Examples.Generic.Test.GeneratorTest2.mos \ |
| 102 | +PowerSystems.Examples.Generic.Test.ImpedanceTest.mos \ |
| 103 | +PowerSystems.Examples.Generic.Test.InductiveLoadTest.mos \ |
| 104 | +PowerSystems.Examples.Generic.Test.PMeterTest.mos \ |
| 105 | +PowerSystems.Examples.Introductory.Display.mos \ |
| 106 | +PowerSystems.Examples.Introductory.Frequency.mos \ |
| 107 | +PowerSystems.Examples.Introductory.InitialSteadyState.mos \ |
| 108 | +PowerSystems.Examples.Introductory.ReferenceInertial.mos \ |
| 109 | +PowerSystems.Examples.Introductory.ReferenceSynchron.mos \ |
| 110 | +PowerSystems.Examples.Introductory.SimulationFixedInitial.mos \ |
| 111 | +PowerSystems.Examples.Introductory.SimulationSteadyInitial.mos \ |
| 112 | +PowerSystems.Examples.Introductory.SimulationSteadyState.mos \ |
| 113 | +PowerSystems.Examples.Introductory.Tables.mos \ |
| 114 | +PowerSystems.Examples.Introductory.Units.mos \ |
| 115 | +PowerSystems.Examples.PowerWorld.PowerWorld.mos \ |
| 116 | +PowerSystems.Examples.PowerWorld.Test.CityTest.mos \ |
| 117 | +PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mos \ |
| 118 | +PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.mos \ |
| 119 | +PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mos \ |
| 120 | +PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mos \ |
| 121 | +PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.mos \ |
| 122 | +PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mos \ |
| 123 | +PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.mos \ |
| 124 | +PowerSystems.Examples.Wind.Test.RotorTest.mos \ |
| 125 | +PowerSystems.Examples.Wind.WindFarm.mos \ |
| 126 | +PowerSystems.Examples.Wind.WindTurbine_DFIG.mos \ |
| 127 | +PowerSystems.Examples.Wind.WindTurbine_IG.mos \ |
| 128 | +PowerSystems.Examples.Wind.WindTurbine_PSGI.mos \ |
| 129 | +PowerSystems.Examples.Wind.WindTurbine_PSGR.mos \ |
| 130 | + |
| 131 | + |
| 132 | +# Run make failingtest |
| 133 | +FAILINGTESTFILES= \ |
| 134 | + |
| 135 | + |
| 136 | +DISABLED_TOO_SLOW = \ |
| 137 | +PowerSystems.Examples.AC3ph.Transmission.DoubleLine.mos \ |
| 138 | + |
| 139 | + |
| 140 | +# Dependency files that are not .mo .mos or Makefile |
| 141 | +# Add them here or they will be cleaned. |
| 142 | +DEPENDENCIES = \ |
| 143 | +*.mos \ |
| 144 | +Makefile \ |
| 145 | + |
| 146 | + |
| 147 | +CLEAN = `ls | grep -w -v -f deps.tmp` |
| 148 | + |
| 149 | +.PHONY : test clean getdeps failingtest |
| 150 | + |
| 151 | + |
| 152 | +test: |
| 153 | + @echo |
| 154 | + @echo Running tests... |
| 155 | + @echo |
| 156 | + @echo OPENMODELICAHOME=" $(OPENMODELICAHOME) " |
| 157 | + @$(TEST) $(TESTFILES) |
| 158 | + |
| 159 | +# Cleans all files that are not listed as dependencies |
| 160 | +clean : |
| 161 | + @echo $(DEPENDENCIES) | sed 's/ /\\|/g' > deps.tmp |
| 162 | + @rm -f *.mos.txt |
| 163 | + @rm -rf $(CLEAN) |
| 164 | + |
| 165 | +# Run this if you want to list out the files (dependencies). |
| 166 | +# do it after cleaning and updating the folder |
| 167 | +# then you can get a list of file names (which must be dependencies |
| 168 | +# since you got them from repository + your own new files) |
| 169 | +# then add them to the DEPENDENCIES. You can find the |
| 170 | +# list in deps.txt |
| 171 | +getdeps: |
| 172 | + @echo $(DEPENDENCIES) | sed 's/ /\\|/g' > deps.tmp |
| 173 | + @echo $(CLEAN) | sed -r 's/deps.txt|deps.tmp//g' | sed 's/ / \\\n/g' > deps.txt |
| 174 | + @echo Dependency list saved in deps.txt. |
| 175 | + @echo Copy the list from deps.txt and add it to the Makefile @DEPENDENCIES |
| 176 | + |
| 177 | +failingtest : |
| 178 | + @echo |
| 179 | + @echo Running failing tests... |
| 180 | + @echo |
| 181 | + @$(TEST) $(FAILINGTESTFILES) |
0 commit comments