Skip to content

Commit

Permalink
Update IDD path for library call test; update dummy cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Sep 1, 2015
1 parent af53c10 commit 66d52ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/RunCallbackTest.cmake
Expand Up @@ -5,7 +5,7 @@
# Currently the TestEnergyPlusCallbacks runner does not exit. Give it an idf and supporting files so that it will run.
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${SOURCE_DIR}/testfiles/${IDF_FILE}" "${BINARY_DIR}/${TEST_DIR}/in.idf" )
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${SOURCE_DIR}/weather/${EPW_FILE}" "${BINARY_DIR}/${TEST_DIR}/in.epw" )
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${BINARY_DIR}/Energy+.idd" "${BINARY_DIR}/${TEST_DIR}/Energy+.idd" )
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${BINARY_DIR}/Products/Energy+.idd" "${BINARY_DIR}/${TEST_DIR}/Energy+.idd" )

# Find and execute the test executable, passing the argument of the directory to run in
if( WIN32 )
Expand Down
4 changes: 2 additions & 2 deletions src/EnergyPlus/EnergyPlusPgm.cc
Expand Up @@ -372,8 +372,8 @@ EnergyPlusPgm( std::string const & filepath )
exit(EXIT_FAILURE);
}
ProgramPath = filepath + pathChar;
int dummy_argc = 0;
const char * dummy_argv[] = { nullptr };
int dummy_argc = 1;
const char * dummy_argv[1] = { "energyplus" };
CommandLineInterface::ProcessArgs( dummy_argc, dummy_argv );
}

Expand Down

6 comments on commit 66d52ae

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

Autodesk_Performance (Myoldmopar) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (1804 of 1805 tests passed)

Build Badge Test 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.

Autodesk_Performance (Myoldmopar) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)

Build 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.

Autodesk_Performance (Myoldmopar) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (755 of 755 tests passed)

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.

Autodesk_Performance (Myoldmopar) - i386-Windows-7-VisualStudio-12: OK (1804 of 1805 tests passed)

Build Badge Test 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.

Autodesk_Performance (Myoldmopar) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (1281 of 1281 tests passed)

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.

Autodesk_Performance (Myoldmopar) - Win64-Windows-7-VisualStudio-12: OK (1804 of 1805 tests passed)

Build Badge Test Badge

Please sign in to comment.