-
Notifications
You must be signed in to change notification settings - Fork 240
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
Unittest basics #10
Unittest basics #10
Conversation
tallytalwar
commented
Sep 23, 2014
- Updated Makefile.
- Added Catch unit testing framework support.
- Added some basic unit tests for dataSource.
- Other small changes
… jsoncpp file and enabled curl linking
…pulation func to header.
return std::move(url); | ||
} | ||
|
||
//TODO: Use regex to do this better. |
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 this is begging for regex haha
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.
Ya TODO :(... Will do all this in one go, after I am done reading on c++11 regex functionalities.
Cool, using Catch looks really easy! I don't see any outstanding issues |
@@ -34,10 +55,13 @@ OSX_FRAMEWORKS= \ | |||
-framework CoreVideo | |||
OSX_INCLUDES= \ | |||
-Icore \ | |||
-Icore/include | |||
-Icore/include \ | |||
-lcurl |
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.
System libraries aren't strictly includes, might deserve another variable even though it's just one item right now
… not have spaces). Added dependencies to osx-test and added mkdir for build directories
@@ -51,6 +77,20 @@ ios: | |||
xcodebuild -workspace ios/TangramiOS.xcworkspace -scheme TangramiOS -destination 'platform=iOS Simulator,name=iPhone Retina (3.5-inch)' | |||
|
|||
osx/bin/TangramOSX: $(OSX_SRC_FILES) | |||
clang++ -o osx/bin/TangramOSX $(CORE_SRC_FILES) $(OSX_SRC_FILES) $(OSX_INCLUDES) $(OSX_FRAMEWORKS) -DPLATFORM_OSX -lglfw3 -std=c++11 -g | |||
mkdir -p osx/bin | |||
clang++ -o osx/bin/TangramOSX $(CORE_SRC_FILES) $(OSX_SRC_FILES) $(LIB_DEPENDENCY) $(OSX_INCLUDES) $(OSX_EXTERNAL_LIB) $(OSX_FRAMEWORKS) -DPLATFORM_OSX -lglfw3 -std=c++11 |
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.
One last tiny thing: Can you put -lglfw3 in OSX_EXTERNAL_LIB with -lcurl ? It's in each of the clang commands