cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
887 stars 114 forks source link

Travis CI valgrind tests #253

Closed cxong closed 3 years ago

cxong commented 10 years ago

Travis CI integration was recently implemented; it's very neat as it is able to catch compile errors and run a few unit tests.

Most of C-Dogs SDL isn't covered by unit tests unfortunately, and it would be great to have Travis run it under valgrind to prevent memory leaks etc. from creeping in.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

carstene1ns commented 10 years ago

export SDL_AUDIODRIVER=dummy will disable all audio output, same goes for SDL_VIDEODRIVER.

But some kind of time bomb is needed, because cdogs does not close then (needs SIGKILL).

carstene1ns commented 10 years ago

Okay, issue is already known. #245

carstene1ns commented 10 years ago

Another possibility would be to introduce a demo mode, that loads a random map and lets some AI deathmatch start (like on arcade machines). This mode can be triggered with --demo and run endlessly or with a timer. The timer mode can be abused for travis-ci then.

cxong commented 7 years ago

We can start by running the tests under valgrind. Instructions available here: http://stackoverflow.com/a/9843594/2038264