-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add makefile for testing #71
Conversation
289b3d4
to
0e21146
Compare
Codecov Report
@@ Coverage Diff @@
## master #71 +/- ##
===========================================
+ Coverage 26.15% 62.04% +35.88%
===========================================
Files 11 1 -10
Lines 2015 137 -1878
===========================================
- Hits 527 85 -442
+ Misses 1390 37 -1353
+ Partials 98 15 -83
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Running tests with CRIU requires root privileges, however, building go binaries does not. This patch separates the build steps from the steps used to run tests. This allows to build applications such as crit using `make` without root privileges. Signed-off-by: Radostin Stoyanov <[email protected]>
Signed-off-by: Radostin Stoyanov <[email protected]>
The current default target in test/Makefile is `test-bin` [1] as this is the first target in the makefile. This was unintentional change introduced in [2]. The default target should be `all`. However, `test-bin` does not appear to be used anywhere and thus, we can remove it. [1] https://www.gnu.org/software/make/manual/html_node/Rules.html [2] checkpoint-restore#71 Signed-off-by: Radostin Stoyanov <[email protected]>
Running tests with CRIU requires root privileges, however, building go binaries does not. This patch separates the build steps from the steps used to run tests. This allows to build applications such as crit using
make
without root privileges.