-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Cucumber integration tests (#221)
* Add cucumber submodule * Add integration_test/test * .github/workflows/ci.yml: Checkout submodules * Update amp-embedded-infra-lib * Update amp-embedded-infra-lib: fix: infra/util/Endian: fix comparison against C++ version * Update amp-cucumber-cpp-runner-poc * .github/workflows/ci.yml: Remove Visual Studio 2019 and gcc 7 from tested compilers since they can't handle C++20 * Do some work on integration tests * Various fixes * Fix compilation * Run clang-format * Update .github/workflows/ci.yml Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update devcontainer * Exclude gherkin libraries from all target * feat!: update MessageCommunication to Sesame * integration_test/test/FixtureEcho: Adapt for Sesame * CMakeLists: Don't set EXCLUDE_FROM_ALL on gherkin targets because otherwise they fail to install * integration_test/logic/Gpio: Differentiate between GpioTester and GpioTested's GpioChanged * integration_test/tested,tester/Main: Add tracing infrastructure * chore: add integration test board pcb (cherry picked from commit f20dc01) * integration_test/logic/Gpio: Fix order of RequestSend and setting sending * integration_test: Use UartStmDuplexDma * CMakeLists: Update amp-embedded-infralib * integration_test/{tester,tested}/Main: Add missing include * integration_test/{tester,tested}: Add tracing on ECHO calls * integration_test/test: Update and fix * Update amp-cucumber-cpp-runner-poc * Update amp-cucumber-cpp-runner * Change amp-cucumber-cpp-runner-poc to amp-cucumber-cpp-runner * Update amp-cucumber-cpp-runner * CMakeLists: Rename amp-cucumber-cpp-runner-poc to amp-cucumber-cpp-runner * launch.json: Set gdbPath to gdb-multiarch * Apply clang-format * Update amp-embedded-infralib, reset colour in GlobalTracer * integration_test: Reset tested before starting a scenario * Update amp-cucumber-cpp-runner * integration_test/test: Run tests and EventDispatcher from single thread * Remove integration_test/test/FixtureSystemChanges * Move EventDispatcherThreadAware to amp-embedded-infra-lib * integration_test: Add UART test * integration_test/test/Hooks: Get serial port to use from command line arguments * integration_test/test/FixtureEcho: Support Unix serial ports * Extract FixtureEchoSerial from FixtureEcho * integration_test/test/FixtureEcho: Refactor FixtureEchoSerial * integration_test/test/FixtureEcho: Add EchoClientWebSocket * Add integration_test/test/features/uart_duplex_dma.feature * Update amp-cucumber-cpp-runner * Rename integration_test.test to integration_test.runner * integration_test/tested: Add main for stm32wb55 * integration_test/runner/FixtureEcho: Add EchoClientTcp * integration_test: Adjust for DMA refactoring (cherry picked from commit 14689d2) * .github/workflows/ci.yml: fix merge mistake * CMakeLists: Only build integration_test when building amp-hal-st standalone * Update amp-embedded-infra-lib * Remove amp-cucumber-cpp-runner as submodule, use FetchContent instead * Use different version of amp-cucumber-cpp-runner * integration_test/tested/CMakeLists: Disable stm32wb55 for now * chore: resolve some PR comments * Add EXPECT_TRUE to WaitFor and WaitUntil invocations * Update amp-devcontainer-cpp and amp-cucumber-cpp-runner --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ron <[email protected]> Co-authored-by: Arun Magi <[email protected]> Co-authored-by: Rob Ekelmans <[email protected]>
- Loading branch information
1 parent
a830ed6
commit 75ece18
Showing
44 changed files
with
4,604 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_subdirectory(logic) | ||
add_subdirectory(tested) | ||
add_subdirectory(tester) | ||
add_subdirectory(runner) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,9 @@ namespace application | |
return false; | ||
}); | ||
} | ||
|
||
void Peripherals::Reset() | ||
{ | ||
currentPeripheral = nullptr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.