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

Copies some python test of modulestream into C #211

Merged
merged 1 commit into from
Mar 12, 2019

Conversation

athira-selvam
Copy link
Contributor

Most of the tests for ModuleStream objects are run under Python.
The valgrind tests for identifying memory leaks and errors can only
run against tests in the C code.
The tests for ModuleStream.depends_on_stream have been copied from
Python to C.
issue : #199

modulemd_module_stream_depends_on_stream (stream, "platform", "f30"));
g_clear_object (&stream);

stream = modulemd_module_stream_read_file (
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need to read the file again. You can perform this test with the same ModulemdModuleStream object you used for line 523.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please fix this for all of the tests below and in the v2 version. After that, this should be good to merge.

@athira-selvam
Copy link
Contributor Author

I have made the mentioned changes.

Copy link
Collaborator

@sgallagher sgallagher left a comment

Choose a reason for hiding this comment

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

@athira-selvam Before submitting your code, please make sure to run ninja test on it locally. Among other things, this will put it through the code formatter. The CI tests check to see if the code matches the format convention and throws an error.

Once you resubmit with the formatting fixed, I think this is ready to merge.

Most of the tests for ModuleStream objects are run under Python.
The valgrind tests for identifying memory leaks and errors can only
run against tests in the C.
The tests for ModuleStream.depends_on_stream have been copied from
Python to C.
issue : fedora-modularity#199
@athira-selvam
Copy link
Contributor Author

I ran the ninja testa and have pushed the corrected code.

@athira-selvam athira-selvam deleted the my-work3 branch March 9, 2019 09:06
@athira-selvam athira-selvam restored the my-work3 branch March 9, 2019 09:07
@athira-selvam athira-selvam reopened this Mar 9, 2019
@sgallagher sgallagher merged commit 0d77106 into fedora-modularity:master Mar 12, 2019
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.

2 participants