libsuperderpy/test/tests.c
2023-11-02 07:39:10 +01:00

46 lines
1.3 KiB
C

/*
* Copyright (c) Sebastian Krzyszkowiak <dos@dosowisko.net>
*
* This file is part of libsuperderpy.
*
* libsuperderpy is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* libsuperderpy is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libsuperderpy. If not, see <http://www.gnu.org/licenses/>.
*
* Also, ponies.
*/
#include "tests.h"
static struct Game* game = NULL;
int engine_setup(void** state) {
*state = game;
return 0;
}
int engine_teardown(void** state) {
return 0;
}
int main(int argc, char** argv) {
al_set_app_name("libsuperderpy");
char* args[2] = {"", "--debug"};
game = libsuperderpy_init(2, args, "test", (struct Params){});
if (!game) {
return 1;
}
libsuperderpy_start(game);
int ret = test_timeline() || test_character();
libsuperderpy_destroy(game);
return ret;
}