utra-robosoccer / soccer-embedded

Collection of embedded programs for an autonomous humanoid soccer robot
http://utrahumanoid.ca
32 stars 8 forks source link

Gdharan travis #203

Closed gokuldharan closed 5 years ago

gokuldharan commented 5 years ago

Adds Unit Testing to Travis builds. This is done by clonign the googletest git repo and building the shared libraries required for our unit tests. The main makefile now distinguishes between Travis and local builds and chooses the appropriate library paths. Also, I'm removing the added linking of gmock/src/Test.o. @rfairley @tygamvrelis do either of you know why that was ever needed? I seem to be able to compile and run tests fine without it. All I lose is "abcTestCase".

gokuldharan commented 5 years ago

By the way, recompiling googletest ourselves is very quick, the entire process takes about 30 seconds in my experience.

rfairley commented 5 years ago

I think Test.o was added along with other binaries when first adding gtest (https://github.com/utra-robosoccer/soccer-embedded/commit/09bb4fad187d69f844e37ced7b1808b65e781a6d#diff-e4f49947f05fd8fc9ee8b8429a6708f6), it might have just been an example with the abcTestCase in it. I think there's no need to keep it - :+1: for removing it. Also 👍 to building gtest!