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

Create Test Stubs for OMR Socket API #4401

Merged
merged 2 commits into from Nov 6, 2019
Merged

Conversation

caohaley
Copy link
Contributor

@caohaley caohaley commented Oct 3, 2019

Created test stubs in omrsockTest.cpp, in test set PortSockTest in Port Tests

-Created 2 helper function stubs, one for setting up a server socket, one
for setting up a client socket. These functions will be called multiple times,
in multiple tests.
-Created 4 test stubs in PortSockTest.
-Will need to add other tests during implementation.

Issue: #4102

Signed-off-by: Haley Cao haleycao88@hotmail.com

@caohaley caohaley force-pushed the socketTest branch 2 times, most recently from 7556427 to 7ec29fa Compare October 9, 2019 21:33
@caohaley caohaley changed the title Created Test Stubs for OMR Socket API WIP:Created Test Stubs for OMR Socket API Oct 21, 2019
Created test stubs in omrsockTest.cpp, in test set PortSockTest in Port Tests

-Created 2 helper function stubs, one for setting up  a server socket, one
 for setting up a client socket. These functions will be called multiple times,
 in multiple tests.
-Created 4 test stubs in PortSockTest.
-Will need to add other tests during implementation.

Issue: eclipse#4102

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
@caohaley caohaley changed the title WIP:Created Test Stubs for OMR Socket API Created Test Stubs for OMR Socket API Oct 30, 2019
@caohaley
Copy link
Contributor Author

Ready for Review.

@rwy7 rwy7 changed the title Created Test Stubs for OMR Socket API Create Test Stubs for OMR Socket API Oct 30, 2019
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
fvtest/porttest/omrsockTest.cpp Outdated Show resolved Hide resolved
@caohaley caohaley force-pushed the socketTest branch 4 times, most recently from d7b2fe9 to 8e4b134 Compare October 31, 2019 19:37
@caohaley
Copy link
Contributor Author

I have done the fixes and committed them in a new commit Apply suggestions from code review. I am currently trying to test the new changes on Jenkins. I will post on here once that is done, and ready for the second round of review.

@caohaley
Copy link
Contributor Author

caohaley commented Nov 1, 2019

@rwy0717 Could you please run the automated tests instead? I tried to run on Jenkins but it failed both times from a JIT compilation error, Sorry about that.
Error:

[2019-11-01T16:16:27.854Z] static_assert(sizeof(nvvmOpCodeNames) == (TR::NumIlOps*sizeof(char*)), "Number of elements in nvvmOpCodeNames does not match the value of TR::NumIlOps");
[2019-11-01T16:16:27.854Z] ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2019-11-01T16:16:27.854Z] 1 error generated.
[2019-11-01T16:16:27.854Z] make[6]: *** [/Users/jenkins/workspace/Build_JDK11_x86-64_mac_Personal/build/macosx-x86_64-normal-server-release/vm/compiler/../objs/compiler/codegen/CodeGenGPU.o] Error 1
[2019-11-01T16:16:27.854Z] make[6]: *** Waiting for unfinished jobs....
[2019-11-01T16:16:27.854Z] make[5]: *** [default] Error 2
[2019-11-01T16:16:27.854Z] make[4]: *** [j9jitlauncher] Error 2
[2019-11-01T16:16:27.854Z] make[3]: *** [build-j9] Error 2
[2019-11-01T16:16:27.854Z] make[2]: *** [j9vm-build] Error 2
[2019-11-01T16:16:27.854Z] 
[2019-11-01T16:16:27.854Z] ERROR: Build failed for target 'all' in configuration 'macosx-x86_64-normal-server-release' (exit code 2) 

@rwy7
Copy link
Member

rwy7 commented Nov 1, 2019

@genie-omr build all

Accept suggested and requested changes

- Deletion of the test entry and exit reports
- Grammar fixes
- Added more descriptive test names

Issue: eclipse#4102

Co-Authored-By: Babneet Singh <sbabneet@ca.ibm.com>

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
@rwy7
Copy link
Member

rwy7 commented Nov 1, 2019

@genie-omr build all

@rwy7 rwy7 self-assigned this Nov 1, 2019
@rwy7
Copy link
Member

rwy7 commented Nov 4, 2019

@genie-omr build aix

@rwy7
Copy link
Member

rwy7 commented Nov 6, 2019

Test failure not related to this PR.

@rwy7 rwy7 merged commit 2c18aa5 into eclipse:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants