Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-21463

Test the Middleware Code by Moog

    XMLWordPrintable

    Details

      Description

      I this task, I will test the TCP/IP message from middleware code in the googletest framework. The unit test of function will be implemented as well. I also need to make the Makefile can be switched between production and development modes.

        Attachments

          Activity

          Hide
          ttsai Te-Wei Tsai added a comment - - edited

          On the 9/27/2019, I reported the bug of test command passing argument, and Dave Mills fixed it on the commit: c397af0 in ticket/886 branch of ts_sal. Need to test this hot fix today.

          After the testing, the start command can send the start configuration and the middleware can receive it as the following:

          However, there is the problem of command loss. In the most condition, the issued command can be be subscribed by the listener.

           

          Show
          ttsai Te-Wei Tsai added a comment - - edited On the 9/27/2019, I reported the bug of test command passing argument, and Dave Mills fixed it on the commit: c397af0 in ticket/886 branch of ts_sal. Need to test this hot fix today. After the testing, the start command can send the start configuration and the middleware can receive it as the following: However, there is the problem of command loss. In the most condition, the issued command can be be subscribed by the listener.  
          Hide
          ttsai Te-Wei Tsai added a comment - - edited

          Try to use the tag: v3.10.0 in ts_sal instead (master branch, commit: 2ecfd2c). This version is stable and I can test the SAL command well.

          Dave can not reproduce the error I have. The SAL 4.0 works fine in his laptop. Need to check with him after he comes back.

          The middlware code is the TCP/IP server instead of the client.

          Use the code of tcpClient.py to check to get the TCP/IP message.

          Show
          ttsai Te-Wei Tsai added a comment - - edited Try to use the tag: v3.10.0 in ts_sal instead (master branch, commit: 2ecfd2c). This version is stable and I can test the SAL command well. Dave can not reproduce the error I have. The SAL 4.0 works fine in his laptop. Need to check with him after he comes back. The middlware code is the TCP/IP server instead of the client. Use the code of  tcpClient.py  to check to get the TCP/IP message.
          Hide
          ttsai Te-Wei Tsai added a comment - - edited

          Wrote the email to let Tony help for the middleware code test for rotator in SLAC.

          Tested the gcov tool for the code coverage. It did not work for my Makefile. Does not know the where is the problem.

          Added the test of settings.cpp and refactored the code.

          Show
          ttsai Te-Wei Tsai added a comment - - edited Wrote the email to let Tony help for the middleware code test for rotator in SLAC. Tested the gcov tool for the code coverage. It did not work for my Makefile. Does not know the where is the problem. Added the test of settings.cpp and refactored the code.
          Hide
          ttsai Te-Wei Tsai added a comment - - edited

          Wrote the email to Regina to ask for the SLAC account.

          Worked on the unit test of settings.cpp.

          Show
          ttsai Te-Wei Tsai added a comment - - edited Wrote the email to Regina to ask for the SLAC account. Worked on the unit test of settings.cpp.
          Hide
          ttsai Te-Wei Tsai added a comment - - edited

          Send the application form of SLAC account and emailed the IT there to help to modify the institution. Wrote the simulator to receive the command of TCP/IP from middleware.

          Show
          ttsai Te-Wei Tsai added a comment - - edited Send the application form of SLAC account and emailed the IT there to help to modify the institution. Wrote the simulator to receive the command of TCP/IP from middleware.
          Hide
          ttsai Te-Wei Tsai added a comment -

          Fix the minor bugs, add the unit tests, and add the simulator to listen to the command from middleware. The PR is at:

          https://github.com/lsst-ts/ts_mt_hexRot_middleware/pull/10

          The Jenkins test is at:

          https://tssw-ci.lsst.org/job/ts_mt_hexRot_middleware/job/PR-10/

          Show
          ttsai Te-Wei Tsai added a comment - Fix the minor bugs, add the unit tests, and add the simulator to listen to the command from middleware. The PR is at: https://github.com/lsst-ts/ts_mt_hexRot_middleware/pull/10 The Jenkins test is at: https://tssw-ci.lsst.org/job/ts_mt_hexRot_middleware/job/PR-10/
          Hide
          cwinslow Colin Winslow [X] (Inactive) added a comment -

          i helped with this one!

          Show
          cwinslow Colin Winslow [X] (Inactive) added a comment - i helped with this one!

            People

            Assignee:
            ttsai Te-Wei Tsai
            Reporter:
            ttsai Te-Wei Tsai
            Reviewers:
            Colin Winslow [X] (Inactive)
            Watchers:
            Colin Winslow [X] (Inactive), Te-Wei Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Start date:
              End date:

                Jenkins Builds

                No builds found.