Ignore:
Timestamp:
11/02/2017 12:07:25 AM (9 years ago)
Author:
jtorres
Message:

branches/FEPSimulator/tests: added unit test HighwaysParserTest?.cpp, which yielded a bug in HighwayParser?.cpp (not returning correct loop_loc... garbage data...), this likely explains why not all green dots were showing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FEPSimulator/nbproject/configurations.xml

    r186 r209  
    2929                   projectFiles="false" 
    3030                   kind="TEST_LOGICAL_FOLDER"> 
     31      <logicalFolder name="f1" 
     32                     displayName="HighwaysParserTest" 
     33                     projectFiles="true" 
     34                     kind="TEST"> 
     35        <itemPath>tests/HighwaysParserTest.cpp</itemPath> 
     36      </logicalFolder> 
    3137    </logicalFolder> 
    3238    <logicalFolder name="ExternalFiles" 
     
    4652      </toolsSet> 
    4753      <compileType> 
    48         <ccTool> 
    49           <incDir> 
    50             <pElem>tinyxml</pElem> 
    51           </incDir> 
    52         </ccTool> 
     54        <cTool> 
     55          <incDir> 
     56            <pElem>.</pElem> 
     57          </incDir> 
     58          <commandLine>`cppunit-config --cflags`</commandLine> 
     59        </cTool> 
     60        <ccTool> 
     61          <incDir> 
     62            <pElem>.</pElem> 
     63          </incDir> 
     64          <commandLine>`cppunit-config --cflags`</commandLine> 
     65        </ccTool> 
     66        <linkerTool> 
     67          <output>${TESTDIR}/TestFiles/f2</output> 
     68        </linkerTool> 
    5369      </compileType> 
    5470      <item path="DataPacker.cpp" ex="false" tool="1" flavor2="0"> 
     
    6682      <item path="Main.cpp" ex="false" tool="1" flavor2="0"> 
    6783      </item> 
     84      <folder path="TestFiles/f1"> 
     85        <cTool> 
     86          <incDir> 
     87            <pElem>.</pElem> 
     88          </incDir> 
     89        </cTool> 
     90        <ccTool> 
     91          <incDir> 
     92            <pElem>.</pElem> 
     93          </incDir> 
     94        </ccTool> 
     95        <linkerTool> 
     96          <output>${TESTDIR}/TestFiles/f1</output> 
     97        </linkerTool> 
     98      </folder> 
    6899      <item path="fep.h" ex="false" tool="3" flavor2="0"> 
    69100      </item> 
     
    73104      </item> 
    74105      <item path="network.h" ex="false" tool="3" flavor2="0"> 
     106      </item> 
     107      <item path="tests/HighwaysParserTest.cpp" ex="false" tool="1" flavor2="0"> 
    75108      </item> 
    76109    </conf> 
     
    84117        <cTool> 
    85118          <developmentMode>5</developmentMode> 
    86         </cTool> 
    87         <ccTool> 
    88           <developmentMode>5</developmentMode> 
     119          <incDir> 
     120            <pElem>.</pElem> 
     121          </incDir> 
     122          <commandLine>`cppunit-config --cflags`</commandLine> 
     123        </cTool> 
     124        <ccTool> 
     125          <developmentMode>5</developmentMode> 
     126          <incDir> 
     127            <pElem>.</pElem> 
     128          </incDir> 
     129          <commandLine>`cppunit-config --cflags`</commandLine> 
    89130        </ccTool> 
    90131        <fortranCompilerTool> 
     
    94135          <developmentMode>5</developmentMode> 
    95136        </asmTool> 
     137        <linkerTool> 
     138          <output>${TESTDIR}/TestFiles/f2</output> 
     139          <linkerLibItems> 
     140            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     141            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     142            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     143            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     144          </linkerLibItems> 
     145        </linkerTool> 
    96146      </compileType> 
    97147      <item path="DataPacker.cpp" ex="false" tool="1" flavor2="0"> 
     
    109159      <item path="Main.cpp" ex="false" tool="1" flavor2="0"> 
    110160      </item> 
     161      <folder path="TestFiles/f1"> 
     162        <cTool> 
     163          <incDir> 
     164            <pElem>.</pElem> 
     165          </incDir> 
     166        </cTool> 
     167        <ccTool> 
     168          <incDir> 
     169            <pElem>.</pElem> 
     170          </incDir> 
     171        </ccTool> 
     172        <linkerTool> 
     173          <output>${TESTDIR}/TestFiles/f1</output> 
     174        </linkerTool> 
     175      </folder> 
    111176      <item path="fep.h" ex="false" tool="3" flavor2="0"> 
    112177      </item> 
     
    116181      </item> 
    117182      <item path="network.h" ex="false" tool="3" flavor2="0"> 
     183      </item> 
     184      <item path="tests/HighwaysParserTest.cpp" ex="false" tool="1" flavor2="0"> 
     185      </item> 
     186    </conf> 
     187    <conf name="testHighwaysParser" type="1"> 
     188      <toolsSet> 
     189        <compilerSet>default</compilerSet> 
     190        <dependencyChecking>true</dependencyChecking> 
     191        <rebuildPropChanged>false</rebuildPropChanged> 
     192      </toolsSet> 
     193      <compileType> 
     194        <cTool> 
     195          <incDir> 
     196            <pElem>.</pElem> 
     197          </incDir> 
     198          <commandLine>`cppunit-config --cflags`</commandLine> 
     199        </cTool> 
     200        <ccTool> 
     201          <incDir> 
     202            <pElem>.</pElem> 
     203          </incDir> 
     204          <commandLine>`cppunit-config --cflags`</commandLine> 
     205        </ccTool> 
     206        <linkerTool> 
     207          <output>${TESTDIR}/TestFiles/f2</output> 
     208          <linkerLibItems> 
     209            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     210            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     211            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     212            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     213            <linkerOptionItem>`cppunit-config --libs`</linkerOptionItem> 
     214          </linkerLibItems> 
     215        </linkerTool> 
     216      </compileType> 
     217      <item path="DataPacker.cpp" ex="false" tool="1" flavor2="0"> 
     218      </item> 
     219      <item path="DataPacker.h" ex="false" tool="3" flavor2="0"> 
     220      </item> 
     221      <item path="FEPSim.cpp" ex="false" tool="1" flavor2="0"> 
     222      </item> 
     223      <item path="FEPSim.h" ex="false" tool="3" flavor2="0"> 
     224      </item> 
     225      <item path="HighwaysParser.cpp" ex="false" tool="1" flavor2="0"> 
     226      </item> 
     227      <item path="HighwaysParser.h" ex="false" tool="3" flavor2="0"> 
     228      </item> 
     229      <item path="Main.cpp" ex="false" tool="1" flavor2="0"> 
     230      </item> 
     231      <folder path="TestFiles/f1"> 
     232        <cTool> 
     233          <incDir> 
     234            <pElem>.</pElem> 
     235          </incDir> 
     236        </cTool> 
     237        <ccTool> 
     238          <incDir> 
     239            <pElem>.</pElem> 
     240          </incDir> 
     241        </ccTool> 
     242        <linkerTool> 
     243          <output>${TESTDIR}/TestFiles/f1</output> 
     244        </linkerTool> 
     245      </folder> 
     246      <item path="fep.h" ex="false" tool="3" flavor2="0"> 
     247      </item> 
     248      <item path="fep_clnt.c" ex="false" tool="0" flavor2="0"> 
     249      </item> 
     250      <item path="fep_xdr.c" ex="false" tool="0" flavor2="0"> 
     251      </item> 
     252      <item path="network.h" ex="false" tool="3" flavor2="0"> 
     253      </item> 
     254      <item path="tests/HighwaysParserTest.cpp" ex="false" tool="1" flavor2="0"> 
    118255      </item> 
    119256    </conf> 
Note: See TracChangeset for help on using the changeset viewer.