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

create mock component test #20

Open
atticusrussell opened this issue Jun 19, 2023 · 2 comments
Open

create mock component test #20

atticusrussell opened this issue Jun 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@atticusrussell
Copy link
Owner

atticusrussell commented Jun 19, 2023

create a test that works with mock hardware to test the hardware interface

@atticusrussell atticusrussell added the enhancement New feature or request label Jun 19, 2023
@atticusrussell
Copy link
Owner Author

Running main() from gmock_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestRPiPWMHardwareInterface
[ RUN      ] TestRPiPWMHardwareInterface.load_rpi_pwm_hardware_interface_2dof
[INFO 1687229054.464556096] [resource_manager]: Loading hardware 'RPiPWMHardwareInterface2dof'  (load_hardware() at ./src/resource_manager.cpp:88)
Exception caught: According to the loaded plugin descriptions the class rpi_pwm_hardware_interface/RPiPWMHardwareInterface with base class type hardware_interface::SystemInterface does not exist. Declared types are  fake_components/GenericSystem mock_components/GenericSystem test_hardware_components/TestSystemCommandModes test_hardware_components/TestTwoJointSystem test_system
[       OK ] TestRPiPWMHardwareInterface.load_rpi_pwm_hardware_interface_2dof (44246 ms)
[----------] 1 test from TestRPiPWMHardwareInterface (44246 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (44246 ms total)
[  PASSED  ] 1 test.
[1] + Done                       "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-bshyxq4z.qik" 1>"/tmp/Microsoft-MIEngine-Out-veg4plhj.so0"

@atticusrussell
Copy link
Owner Author

possibly create looking at the base RTW hardware interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant