1. 27 Jun, 2022 2 commits
  2. 20 Jun, 2022 2 commits
  3. 20 May, 2022 2 commits
    • SIMONIN Matthieu's avatar
      f5279b06
    • SIMONIN Matthieu's avatar
      parameterize num_buffers · 1462d26d
      SIMONIN Matthieu authored
      num_buffers controls the number of packets that are intercepted and
      stored by tansiv-client until the next deadline. A too small value will
      drop extraneous packets (silently unless you know how to activate the
      tansiv logs).
      
      This patch allow its parameterization at
      - qemu level (passed in the global vsg option)
      - boot.py level
      1462d26d
  4. 29 Mar, 2022 1 commit
  5. 28 Mar, 2022 2 commits
  6. 25 Mar, 2022 2 commits
  7. 23 Mar, 2022 1 commit
    • SIMONIN Matthieu's avatar
      Introduce socket.hpp/cpp · 8bf98472
      SIMONIN Matthieu authored
      This gathers the function to send/recv reliably messages on a socket.
      Also contains a helper function to receive a size prefixed flatbuffer
      message.
      
      The patch also remove the src/vsg directory as well as the need for
      building libvsg.a.
      8bf98472
  8. 20 Mar, 2022 1 commit
  9. 19 Mar, 2022 3 commits
  10. 18 Mar, 2022 4 commits
  11. 21 Feb, 2022 4 commits
  12. 17 Feb, 2022 2 commits
    • SIMONIN Matthieu's avatar
      Merge branch 'dev/test_wait_actor' into 'master' · 1c9fdc09
      SIMONIN Matthieu authored
      tests: Make possible to get child actor exit code
      
      Closes #28
      
      See merge request !23
      1c9fdc09
    • SIMONIN Matthieu's avatar
      tests: Make possible to get child actor exit code · 30303fd8
      SIMONIN Matthieu authored
      Fix #28
      
      To test client / actor protocol communication, actor execution is forked
      while client test code is executed in the parent process (the cargo test
      process).
      
      Until now, as soon as the client (parent process) finishes its execution
      the actor (child process) is dropped/killed. In some situation the actor
      don't have the chance to cover all of its test logic.
      Also actor test logic fails silently in the sense that only error log
      message are displayed when an asertion fails. No error is propagated to
      the parent process (parent process).
      
      This patch:
      - make possible to wait for the actor to finish before leaving the test.
        A `wait` method is added to the TestActor implementation to wait for
        the actor to terminate. This can be called by a test if deemed necessary.
        For instance it's added in `run_client_and_actor` helper method which
        covers most of the connector tests.
      
      - propagate an error to the parent process.
        User of `wait` can check the return code of the child process.
      
      - enable logging in connector's tests. They can be displayed in `cargo
        tests` using `TEST_FLAGS="--nocapture"`. This is the case in the
        Dockerfile.
      30303fd8
  13. 19 Jan, 2022 2 commits
  14. 12 Jan, 2022 1 commit
    • SIMONIN Matthieu's avatar
      VmsInterface: add a count of messages · ba096bcf
      SIMONIN Matthieu authored
      This can keep track of:
      - the total number of messages going through tansiv
      - message identification, each message is assigned an id (in the current
      implementation this is the value of the counter at the time of reception)
      ba096bcf
  15. 10 Jan, 2022 1 commit
    • SIMONIN Matthieu's avatar
      tansiv.py: align wrapper requirement · 562db5c0
      SIMONIN Matthieu authored
      when running a TS, tansiv injects the socket name as the first argument
      of the script that is fork/exec-ed.
      notansiv.py is the symetric to tansiv but for nts system but use the
      same wrapper script at the end (boot.py). So we make notansiv also
      inject a (dummy) socket name as the first parameter of the boot.py
      script.
      562db5c0
  16. 06 Jan, 2022 1 commit
  17. 13 Dec, 2021 1 commit
    • SIMONIN Matthieu's avatar
      Cmake update · b6253a21
      SIMONIN Matthieu authored
      - custom target to launch the tests
          - (tansiv/cpp) add a wrapper script
          - (client/rust) call the test target of the client's Makefile
      - clean TANPROC_LIBS use
      b6253a21
  18. 08 Dec, 2021 2 commits
  19. 07 Dec, 2021 3 commits
  20. 06 Dec, 2021 1 commit
  21. 03 Dec, 2021 2 commits