Skip to content
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

Merged
merged 11 commits into from
Sep 25, 2014
Merged

Unittest basics #10

merged 11 commits into from
Sep 25, 2014

Conversation

tallytalwar
Copy link
Member

  • Updated Makefile.
  • Added Catch unit testing framework support.
  • Added some basic unit tests for dataSource.
  • Other small changes

return std::move(url);
}

//TODO: Use regex to do this better.
Copy link
Member

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

Copy link
Member Author

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.

@matteblair
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants