Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E eddie
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Oniro Core
  • eddie
  • Merge requests
  • !28

Draft: tests: Add fixture to have eddie-server running in background

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Stefan Schmidt requested to merge stefanschmidt/eddie:ctest-fixtures into main Jul 20, 2022
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 3

Some integration tests or even units test with communication part we might need to spin up a server for some particular test case and tear it down again afterwards.

This commits shows an example how to implement this test fixtures in ctest by using the FIXUP_SETUP/_CLEANUP properties on tests. The fixture execution and teardown is handed over to scripts for tracking PID.

Signed-off-by: Stefan Schmidt stefan.schmidt@huawei.com

NOTE This will need another look at the scripts as something is racy right now. On first execution the tests do not finish and killing make test will result in eddie-server staying around. On the second execution tests finish and I assume they use the already running eddie-server to do so. Not debugged yet, but I wanted to get this out as draft and reference how FIXTURES could be used in our eddie test suite.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ctest-fixtures

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent