Add munit for unit testing.

Main method extracted to separate file to make it easier to test the _rest_ of the code.
munit is added as a submodule by running `cd src; git submodule add https://github.com/nemequ/munit.git` .

Unit testing has so far only been tested on ubuntu.
This commit is contained in:
welcor
2024-05-18 21:21:17 +02:00
parent 455e3a06ea
commit eb8e200a31
11 changed files with 280 additions and 1 deletions

9
.gitignore vendored
View File

@@ -71,3 +71,12 @@ lib/plrobjs/index
/lib/etc/last
# or mail
lib/etc/plrmail
# test object files, etc
src/test/depend
src/test/*.o
src/test/testfile
# ide etc.
.vscode