Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Tests in EGOA #18

Merged

Commits on Dec 7, 2023

  1. Enable TestBound in the CMakeFile

    Changes to be committed:
    	modified:   tests/CMakeLists.txt
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    ac05ee6 View commit details
    Browse the repository at this point in the history
  2. Add TestBound testcases

    Changes to be committed:
    	new file:   tests/DataStructures/TestBound.cpp
    	new file:   tests/DataStructures/TestBound.hpp
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    836b566 View commit details
    Browse the repository at this point in the history
  3. Remove Gurobi Library from TestBound

    Changes to be committed:
    	modified:   tests/CMakeLists.txt
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    76a6592 View commit details
    Browse the repository at this point in the history
  4. Check whether Windows and MacOS find the include with that file

    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    acf6509 View commit details
    Browse the repository at this point in the history
  5. Replace find_package with own find CMake for Google Testframework

    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    43a3819 View commit details
    Browse the repository at this point in the history
  6. Downloads need an initial build then the data is on the disk

    Why:
    * add subdirectory in CMake requires the CMakeFile that is not downloaded yet
    
    Changes to be committed:
    	modified:   .github/workflows/cmake-multi-platform.yml
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    14bd667 View commit details
    Browse the repository at this point in the history
  7. Check sudo

    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    6fcfcb0 View commit details
    Browse the repository at this point in the history
  8. The error in the tests is due to wrong runtime library

    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    9b65021 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6d05538 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Does DLL works

    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    5a891e5 View commit details
    Browse the repository at this point in the history
  2. Check without debug

    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    06982c3 View commit details
    Browse the repository at this point in the history
  3. Resolve libcpmt.lib(StlLCMapStringW.obj) : error LNK2038: mismatch de…

    …tected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in TestBound.obj [D:\a\egoa\egoa\build\tests\TestBound.vcxproj]
    
    See note in:
    https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html#variable:CMAKE_MSVC_RUNTIME_LIBRARY
    
    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    b342777 View commit details
    Browse the repository at this point in the history
  4. Fix a label mistake

    Changes to be committed:
    	modified:   tests/DataStructures/TestBound.cpp
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    fc283cc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    89fff13 View commit details
    Browse the repository at this point in the history
  6. Check if differentiation is necessary between Debug and Release

    Changes to be committed:
    	modified:   CMakeLists.txt
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    4296225 View commit details
    Browse the repository at this point in the history
  7. Follow the error given in Windows debug death test "')' is unsupported"

    D:\a\egoa\egoa\external\GoogleTestFramework\googletest\src/gtest-port.cc(844): error: Failed
    1: Syntax error at index 42 in simple regular expression "(.*) assertion failed at (.*)Bound.hpp:(.*) inside Bound.
    1:  Condition: minimum_ <= maximum_": ')' is unsupported.
    1:
    1: Running main() from D:\a\egoa\egoa\external\GoogleTestFramework\googletest\src\gtest_main.cc
    1: D:\a\egoa\egoa\tests\DataStructures\TestBound.cpp(70): error: Death test: {egoa::Bound<> bound (3,1);}
    1:     Result: died but not with expected error.
    1:   Expected: contains regular expression "(.*) assertion failed at (.*)Bound.hpp:(.*) inside Bound.\n Condition: minimum_ <= maximum_"
    1: Actual msg:
    1: [  DEATH   ] USAGE assertion failed at D:\a\egoa\egoa\include\DataStructures/Bound.hpp:48 inside egoa::Bound<double>::Bound.
    1: [  DEATH   ]  Condition: minimum_ <= maximum_
    1:
    1: [  FAILED  ] TestBound.DeathTest (146 ms)
    
    Changes to be committed:
    	modified:   tests/Helper/TestHelper.hpp
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    eb0379f View commit details
    Browse the repository at this point in the history
  8. The output differs in "inside Bound.\n Condition" from "inside egoa::…

    …Bound<double>::Bound.\n Condition".
    
     D:\a\egoa\egoa\tests\DataStructures\TestBound.cpp(70): error: Death test: {egoa::Bound<> bound (3,1);}
    1:     Result: died but not with expected error.
    1:   Expected: contains regular expression ".* assertion failed at .*Bound.hpp:.* inside Bound.\n Condition: minimum_ <= maximum_"
    1: Actual msg:
    1: [  DEATH   ] USAGE assertion failed at D:\a\egoa\egoa\include\DataStructures/Bound.hpp:48 inside egoa::Bound<double>::Bound.
    1: [  DEATH   ]  Condition: minimum_ <= maximum_
    
    Changes to be committed:
    	modified:   tests/Helper/TestHelper.hpp
    franziska-wegner committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    9c05540 View commit details
    Browse the repository at this point in the history