New unit testing skeleton

This commit is contained in:
o9000
2017-12-19 15:28:57 +01:00
parent c2f8c210f8
commit 58e030de5d
11 changed files with 407 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
#include "panel.h"
#include "server.h"
#include "signals.h"
#include "test.h"
#include "tooltip.h"
#include "tracing.h"
#include "uevent.h"
@@ -48,6 +49,9 @@ void handle_cli_arguments(int argc, char **argv)
} else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--version") == 0) {
fprintf(stdout, "tint2 version %s\n", VERSION_STRING);
exit(0);
} else if (strcmp(argv[i], "--test") == 0) {
run_all_tests();
exit(0);
} else if (strcmp(argv[i], "-c") == 0) {
if (i + 1 < argc) {
i++;