polserver/testsuite/pol/scripts/tests.src
turleypol dee75b0a12
Scripttest inside pol (#210)
* python script to generate cpp file with BareDistro content
poltool cmd to generate the files

* updated baredistro, fixed compilation

* fix warning, ignore autogenerated file in stylechecker

* test for pol?
uoconvert got a new argument outdir for the cfg file output
single thread decay has now a upper limit of sleeptime
fixed that the exit_code can only get worse

basic files for core testing in testsuite
added a not really nice way to set it up via ctest
integrated in CI with upload of log output

* testenv

* update poltool filegeneration to c++17

* first real tests

* first npc test

* equip a backpack and test a bit aos props

* fixed early returns
2020-08-12 23:15:40 +02:00

32 lines
689 B
Text

use uo;
use os;
include "maptests";
include "chartests";
include "npctests";
program tests()
syslog(
"\n##########################\n"
+ "# starting testscripts #\n"
+ "##########################\n");
var exitcode:=0;
if (!mapinfo_test()) exitcode:=1; endif
if (!statics_test()) exitcode:=1; endif
if (!account_test()) exitcode:=1; endif
if (!char_test()) exitcode:=1; endif
if (!npc_test()) exitcode:=1; endif
var result:="success";
if (exitcode)
result:="failed ";
endif
syslog(
"\n###########################\n"
+ "# finished tests: {} #\n".format(result)
+ "###########################\n");
shutdown(exitcode);
endprogram