-
Notifications
You must be signed in to change notification settings - Fork 173
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 make check
target
#4002
Add make check
target
#4002
Conversation
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.
need to fix db access for the unittest
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.
just so it will remove my approval as Travis complain
This adds a "make check" target to perform basic unittests and does some minor refactoring of the makefile The target "make checkstatic" and "make unittests" are also added to make it easier to quickly run a smoke test.
I don't see any way the failures in aces#4002 could possibly be related to just moving around where things are called.
The unittests fail when invoking the exact same command and needs investigation
@PapillonMcGill Can you re-review? |
@@ -51,7 +51,7 @@ class UserPermissions | |||
function select($username) | |||
{ | |||
// create DB object | |||
$DB =& Database::singleton(); | |||
$DB = \Database::singleton(); |
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.
Not relevant to this PR but also.... this is nice.
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.
Yeah, it was throwing a database exception on that line and I thought that might be the cause..
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.
@johnsaigle comment would be nice but won't block.
This adds a "make check" target to perform basic unittests and
does some minor refactoring of the makefile
The target "make checkstatic" and "make unittests" are also
added to make it easier to quickly run a smoke test.