2019-04-03 02:59:48 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) Sebastian Krzyszkowiak <dos@dosowisko.net>
|
|
|
|
*
|
2022-07-18 19:52:55 +02:00
|
|
|
* 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
|
2019-04-03 02:59:48 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2022-07-18 19:52:55 +02:00
|
|
|
* libsuperderpy is distributed in the hope that it will be useful,
|
2019-04-03 02:59:48 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2022-07-18 19:52:55 +02:00
|
|
|
* 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/>.
|
2019-04-03 02:59:48 +02:00
|
|
|
*
|
2022-07-18 19:52:55 +02:00
|
|
|
* Also, ponies.
|
2019-04-03 02:59:48 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tests.h"
|
|
|
|
|
2019-10-06 08:02:04 +02:00
|
|
|
static struct Game* game = NULL;
|
|
|
|
|
2019-04-03 02:59:48 +02:00
|
|
|
int engine_setup(void** state) {
|
2019-10-06 08:02:04 +02:00
|
|
|
*state = game;
|
2019-04-03 02:59:48 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int engine_teardown(void** state) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
2019-10-06 08:02:04 +02:00
|
|
|
al_set_app_name("libsuperderpy");
|
|
|
|
char* args[2] = {"", "--debug"};
|
|
|
|
game = libsuperderpy_init(2, args, "test", (struct Params){});
|
2023-11-02 07:39:10 +01:00
|
|
|
if (!game) {
|
|
|
|
return 1;
|
|
|
|
}
|
2019-10-06 08:02:04 +02:00
|
|
|
libsuperderpy_start(game);
|
|
|
|
int ret = test_timeline() || test_character();
|
|
|
|
libsuperderpy_destroy(game);
|
|
|
|
return ret;
|
2019-04-03 02:59:48 +02:00
|
|
|
}
|