-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
tests: migrate unit tests to Rust #9
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pothos
reviewed
Jul 11, 2023
pothos
reviewed
Jul 11, 2023
08ba464
to
7c3266f
Compare
pothos
requested changes
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
pothos
reviewed
Jul 17, 2023
7c3266f
to
36c373e
Compare
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 20, 2023
pothos
reviewed
Jul 21, 2023
pothos
reviewed
Jul 21, 2023
pothos
reviewed
Jul 21, 2023
pothos
reviewed
Jul 21, 2023
pothos
reviewed
Jul 21, 2023
a79e9c5
to
65d5ab1
Compare
65d5ab1
to
08b76b8
Compare
Replaced tempdir with tempfile, as the tempdir crate was deprecated. |
08b76b8
to
f22d3f4
Compare
Replaced users with uzers, as the users crate was deprecated. |
f22d3f4
to
496c006
Compare
pothos
reviewed
Nov 13, 2023
pothos
reviewed
Nov 13, 2023
pothos
reviewed
Nov 13, 2023
791eb82
to
469b0fb
Compare
pothos
reviewed
Nov 15, 2023
pothos
reviewed
Nov 15, 2023
pothos
reviewed
Nov 15, 2023
pothos
reviewed
Nov 15, 2023
pothos
reviewed
Nov 15, 2023
Update URLs to CI status, badge, update programming language of test programs.
Travis CI is not used any more. Delete.
To avoid issues like python2 not available on distros, we should simply migrate unit tests to Rust. That would make more sense, as the main code is already written in Rust. Adding edition in Cargo.toml. Without edition = 2021, build fails due to a missing "extern crate ...". Specifying an edition, Build passes without having to add it. As Rust does not support global variables by default, it is necessary to make use of lazy_static, so the variables could be accessed in multiple tests.
469b0fb
to
fe5500d
Compare
pothos
approved these changes
Nov 21, 2023
Thanks. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To avoid issues like python2 not available on distros, we should simply migrate unit tests to Rust. That would make more sense, as the main code is already written in Rust.
Add edition in Cargo.toml to fix builds.
Without edition = 2021, build fails due to a missing "extern crate ...".
Specifying an edition, Build passes without having to add it.
As Rust does not support global variables by default, it is necessary to make use of lazy_static, so the variables could be accessed in multiple tests.
Fixes: flatcar/Flatcar#1081