fix tests build

This commit is contained in:
Jeff Harris 2021-09-10 13:44:52 +12:00
parent 6a31e4f6a9
commit d3874216c0
2 changed files with 5 additions and 0 deletions

View File

@ -18,5 +18,8 @@ sudo apt-get install -qq -y libsdl2-dev > /dev/null
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON -B build
cmake --build build -- -j 4
# test
CTEST_OUTPUT_ON_FAILURE=1 make test
# package artifact
tar -czvf linux-amd64.tar.gz build/dethrace

View File

@ -12,6 +12,8 @@
#include "common/loading.h"
#include "common/utility.h"
extern int _unittest_controls_lastGetPowerup;
void test_controls_CheckKevKeys() {
int i;
char* input = "spamfritters";