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

Cgreen based unit tests for gvmd #579

Merged
merged 13 commits into from
Jun 14, 2019

Commits on Jun 4, 2019

  1. Configuration menu
    Copy the full SHA
    f37ea6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88e5d07 View commit details
    Browse the repository at this point in the history
  3. Add a more complex test, for gmp_tickets.c

    This adds a test for create_ticket_run, which is complex because
    create_ticket_run calls into other parts of the gvmd code (copy_ticket,
    ticket_uuid, log_event, etc).
    
    The test creates 'mock' versions of those functions.
    
    A gcc attribute is used as an easy way to override the mocked functions.
    The alternative would be to link against less of the gvmd code and to
    fill the gaps with stub functions.  But our code is not very cleanly
    separated to this is a lot of work.  Should get easier as we clean
    things up, if the attribute is not suitable.
    mattmundell committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    cd1d131 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7399bbe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    73eb242 View commit details
    Browse the repository at this point in the history
  6. Use CMake to run tests

    mattmundell committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    42a9532 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2019

  1. Configuration menu
    Copy the full SHA
    580c0b1 View commit details
    Browse the repository at this point in the history
  2. Neaten formatting

    mattmundell committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    36f8fc0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    128e549 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1b02d7a View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2019

  1. Add test of current_offset

    This test requires a system function to be wrapped, and specifies the
    return of the system function in the test (which is more usefull than
    specifying it in the wrapper).
    mattmundell committed Jun 10, 2019
    Configuration menu
    Copy the full SHA
    5145cad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5bfeec View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2019

  1. Configuration menu
    Copy the full SHA
    02051bf View commit details
    Browse the repository at this point in the history