libccd: execute test code in addition to building and linking