-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
unit tests #4259
unit tests #4259
Conversation
@@ -13,11 +13,18 @@ echo "PLATFORM_CFLAGS += $CUSTOMFLAGS" >> libs/openFrameworksCompiled/project/li | |||
cd libs/openFrameworksCompiled/project | |||
make Debug | |||
|
|||
echo "Building emptyExample" |
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.
@arturoc why did you delete this part? I don't think a CI build is really sensible if we can't even build the emptyexample. Even if we don't want to build that temporarily, why delete this and not simply comment it out and adding some explanation?
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.
building empty example makes the build crash and my suspicion is that this is happening because empty example is including ofMain.h which is huge. i've changed it to build the tests which are much lighter because they only include the headers that are needed and it seems to work better.
the tests are also normal applications so if those are building emptyExample should build too.
empty example is also building in osx so we will catch most possible errors affecting emptyExample but not the tests there
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.
building empty example makes the build crash
unit tests also make the build crash, so you just replaced one build-crashing application with another...
@arturoc how nice of you to just merge these changes to the CI setup without waiting for any review or input. You must have been aware that I'm currently trying to improve that setup. |
cd $test | ||
cp ../../../scripts/osx/template/Makefile . | ||
cp ../../../scripts/osx/template/config.make . | ||
make Debug |
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.
@arturoc wouldn't it be better to also use xcodebuild for this (or make for the main compilation) to have homogenity in the build system per platform?
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.
btw, this compiles OF library twice, once with xcode, and once with make, see https://travis-ci.org/openframeworks/openFrameworks/jobs/75829657#L984
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.
i know, i'll change it when i have time but if i use xcodebuild i need to compile the PG, generate the project for the tests and then compile them so it's not trivial. i'll probably move the PG generation here if i finally do it like that
the tests are using the same flags you've been adding, i've only removed i'm doing a ton crap of work to get the release out and it helps a lot On 16.08.2015 20:55, Christoph Buchner wrote:
|
some tests i've been using mainly for the changes in ofFileSystem + an OF addon for unit tests.
right now is pretty simple and could be integrated in the future with some already existing unit tests framework.
run()
method in that classThis is ready to be merged but mostly uploading it to test: #4285 which is working fine for me