Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Adding container based ACA unit test with build for cross platform development #146

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

liangbin-pub
Copy link
Contributor

  • To build in container: build.sh
  • To build and run unit test: build.sh test

Note: No need to have OVS support in host, tested on Mac OsX and Linux host

Test Result:
[----------] Global test environment tear-down
[==========] 30 tests from 5 test suites ran. (17572 ms total)
[ PASSED ] 30 tests.

YOU HAVE 5 DISABLED TESTS

g_total_network_configuration_time = 45712663156 nanoseconds or 45712 milliseconds
g_total_update_GS_time = 4743972082 nanoseconds or 4743 milliseconds
Program exiting, cleaning up...
ACA_OVS_L2_Programmer::execute_openflow_command ---> Entering
Executing command: ovs-ofctl del-flows br-int "udp,udp_src=68,udp_dst=67"
Command succeeded!
Elapsed time for system command took: 93502520 nanoseconds or 93 milliseconds.
Elapsed time for openflow client call took: 93765360 nanoseconds or 93 milliseconds. rc: 0
ACA_OVS_L2_Programmer::execute_openflow_command <--- Exiting, rc = 0
(NOT USED) Serialized protobuf string: "$27330ae4-b718-11ea-b3de-111111111111:$99d9d709-8478-4b46-9f3f-000000000000B$99d9d709-8478-4b46-9f3f-000000000000R
10.0.0.0/24X{b 10.10.0.1"fa:16:3e:d7:f2:11�2$99d9d709-8478-4b46-9f3f-000000000000:$1b08a5bc-b718-11ea-b3de-111122223333B portname1Jfa:16:3e:d7:f2:6cR
111.0.0.11Z1$27330ae4-b718-11ea-b3de-111111111111 11.0.0.11
(USING THIS) Serialized protobuf binary array: "$27330ae4-b718-11ea-b3de-111111111111:$99d9d709-8478-4b46-9f3f-000000000000B$99d9d709-8478-4b46-9f3f-000000000000R
10.0.0.0/24X{b 10.10.0.1"fa:16:3e:d7:f2:11
�2$99d9d709-8478-4b46-9f3f-000000000000:$1b08a5bc-b718-11ea-b3de-111122223333B portname1Jfa:16:3e:d7:f2:6cR
111.0.0.11Z1$27330ae4-b718-11ea-b3de-111111111111 11.0.0.11
Deserialize succeeded, comparing the content now...
All content matched!

@er1cthe0ne er1cthe0ne self-requested a review October 19, 2020 17:20
@er1cthe0ne er1cthe0ne added the enhancement New feature or request label Oct 19, 2020
@er1cthe0ne er1cthe0ne linked an issue Oct 19, 2020 that may be closed by this pull request
Copy link
Contributor

@er1cthe0ne er1cthe0ne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let me know when you are ready to merge and I will merge it.

@liangbin-pub
Copy link
Contributor Author

good to merge

@er1cthe0ne er1cthe0ne merged commit fd4d204 into futurewei-cloud:master Oct 19, 2020
@liangbin-pub liangbin-pub deleted the issue145 branch October 19, 2020 21:30
zhangml pushed a commit to zhangml/alcor-control-agent that referenced this pull request Dec 7, 2020
…indows (futurewei-cloud#146)

* Update build.ps1 to support microservices

* Update build.sh to support microservices
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding support to run ACA unit test inside build container
2 participants