Implementation of build mode selection in accoloite-test.