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

Fix unit tests & setup.py file #94

Merged
merged 3 commits into from
Jul 30, 2021
Merged

Conversation

JafarAbdi
Copy link

Fix: #92
Fix: #93

@JafarAbdi
Copy link
Author

@ooeygui Could you please test/review this PR .?

@codecov
Copy link

codecov bot commented Jun 21, 2021

Codecov Report

Merging #94 (1c2bde9) into ros2 (c6ea3aa) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             ros2      #94   +/-   ##
=======================================
  Coverage   68.21%   68.21%           
=======================================
  Files           3        3           
  Lines         607      607           
=======================================
  Hits          414      414           
  Misses        193      193           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6ea3aa...1c2bde9. Read the comment docs.

@ooeygui
Copy link

ooeygui commented Jun 21, 2021

Thank you for the quick turnaround - testing now

@ooeygui
Copy link

ooeygui commented Jun 21, 2021

Confirmed working on ubuntu.

@ooeygui
Copy link

ooeygui commented Jun 21, 2021

Looks like the Windows release hasn't caught up with the pytest issues, so I had to manually revert pip install pytest==6.0.2 - ms-iot/ROSOnWindows#330.

Looks like we're missing some exports for Windows when building. Taking a look.

test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_C.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_nl_NL.UTF-8.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]

@JafarAbdi
Copy link
Author

Looks like the Windows release hasn't caught up with the pytest issues, so I had to manually revert pip install pytest==6.0.2 - ms-iot/ROSOnWindows#330.

Looks like we're missing some exports for Windows when building. Taking a look.

test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_C.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_C.vcxproj]
test_parser.obj : error LNK2019: unresolved external symbol "private: static class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const srdf::Model::empty_vector_" (?empty_vector_@Model@srdf@@0V?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@B) referenced in function "public: class std::vector<struct srdf::Model::JointProperty,class std::allocator<struct srdf::Model::JointProperty> > const & __cdecl srdf::Model::getJointProperties(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?getJointProperties@Model@srdf@@QEBAAEBV?$vector@UJointProperty@Model@srdf@@V?$allocator@UJointProperty@Model@srdf@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]
C:\ws\moveit2_ws\build\srdfdom\Release\test_cpp_nl_NL.UTF-8.exe : fatal error LNK1120: 1 unresolved externals [C:\ws\moveit2_ws\build\srdfdom\test_cpp_nl_NL.UTF-8.vcxproj]

Look like these errors should be fixed in #91, have you tried rebasing on it.?

@ooeygui
Copy link

ooeygui commented Jun 22, 2021

@JafarAbdi Ack! I thought I cherry-picked your change into a fixed branch - checking now.

@ooeygui
Copy link

ooeygui commented Jun 22, 2021

I can confirm that this change works for Windows and Linux! Thank you for fixing this @JafarAbdi

Copy link

@vatanaksoytezer vatanaksoytezer left a comment

Choose a reason for hiding this comment

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

Looks good to me

@henningkayser henningkayser self-assigned this Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants