Closed cxong closed 3 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).
Okay, issue is already known. #245
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.
We can start by running the tests under valgrind. Instructions available here: http://stackoverflow.com/a/9843594/2038264
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.