Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhou601 committed Aug 11, 2021
1 parent 08e65c6 commit 4c96dc7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tst/EnergyPlus/unit/HVACManager.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ TEST_F(EnergyPlusFixture, InfiltrationReportTest)
state->dataHeatBalFanSys->ZoneAirHumRatAvg.allocate(state->dataGlobal->NumOfZones);
state->dataHeatBal->TotVentilation = 1;
state->dataHeatBal->Ventilation.allocate(state->dataHeatBal->TotVentilation);
state->dataHeatBal->TotInfiltration = 2;
state->dataHeatBal->Infiltration.allocate(state->dataHeatBal->TotInfiltration);
state->dataZoneEquip->VentMCP.allocate(1);

state->dataGlobal->NumOfZones = state->dataGlobal->NumOfZones;
Expand Down Expand Up @@ -182,6 +184,10 @@ TEST_F(EnergyPlusFixture, InfiltrationReportTest)
state->dataZoneEquip->ZoneEquipConfig(2).NumReturnNodes = 0;
state->dataHeatBal->Ventilation(1).ZonePtr = 1;
state->dataHeatBal->Ventilation(1).AirTemp = state->dataHeatBal->Zone(1).OutDryBulbTemp;
state->dataHeatBal->Infiltration(1).ZonePtr = 1;
state->dataHeatBal->Infiltration(2).ZonePtr = 2;
state->dataHeatBal->Infiltration(1).MCpI_temp = 1.0;
state->dataHeatBal->Infiltration(2).MCpI_temp = 1.5;
state->dataZoneEquip->VentMCP(1) = state->dataHeatBalFanSys->MCPV(1);
// Call HVACManager
ReportAirHeatBalance(*state);
Expand Down Expand Up @@ -223,6 +229,12 @@ TEST_F(EnergyPlusFixture, ExfilAndExhaustReportTest)
state->dataHVACGlobal->TimeStepSys = 1.0;
state->dataHeatBalFanSys->MCPI(1) = 1.0;
state->dataHeatBalFanSys->MCPI(2) = 1.5;
state->dataHeatBal->TotInfiltration = 2;
state->dataHeatBal->Infiltration.allocate(state->dataHeatBal->TotInfiltration);
state->dataHeatBal->Infiltration(1).ZonePtr = 1;
state->dataHeatBal->Infiltration(2).ZonePtr = 2;
state->dataHeatBal->Infiltration(1).MCpI_temp = 1.0;
state->dataHeatBal->Infiltration(2).MCpI_temp = 1.5;
state->dataHeatBalFanSys->MCPV(1) = 2.0;
state->dataHeatBalFanSys->MCPV(2) = 2.5;
state->dataEnvrn->OutBaroPress = 101325.0;
Expand Down

5 comments on commit 4c96dc7

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infiltration-reporting (yzhou601) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: OK (3159 of 3161 tests passed, 382 test warnings)

Messages:\n

  • 383 tests had: AUD diffs.
  • 375 tests had: RDD diffs.
  • 9 tests had: ESO small diffs.
  • 2 tests had: Table small diffs.
  • 2 tests had: ESO big diffs.

Failures:\n

regression Test Summary

  • Passed: 742
  • Failed: 2

Build Badge Test Badge

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infiltration-reporting (yzhou601) - x86_64-MacOS-10.15-clang-11.0.0: OK (3118 of 3120 tests passed, 381 test warnings)

Messages:\n

  • 382 tests had: AUD diffs.
  • 374 tests had: RDD diffs.
  • 9 tests had: ESO small diffs.
  • 2 tests had: Table small diffs.
  • 2 tests had: ESO big diffs.
  • 1 test had: MTR small diffs.

Failures:\n

regression Test Summary

  • Passed: 722
  • Failed: 2

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infiltration-reporting (yzhou601) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: OK (1671 of 1671 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infiltration-reporting (yzhou601) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: OK (725 of 728 tests passed, 0 test warnings)

Failures:\n

integration Test Summary

  • Passed: 725
  • Timeout: 3

Build Badge Test Badge Coverage Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infiltration-reporting (yzhou601) - Win64-Windows-10-VisualStudio-16: OK (2375 of 2375 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.