test: create dummy tests
This commit is contained in:
parent
ea14b8394a
commit
20e3ae3a3d
15 changed files with 102 additions and 1 deletions
17
sources.mk
17
sources.mk
|
|
@ -17,4 +17,19 @@ SRCS = $(SRC_DIR)/main.c \
|
||||||
$(SRC_DIR)/cli/utils/parse_float.c
|
$(SRC_DIR)/cli/utils/parse_float.c
|
||||||
|
|
||||||
TESTS_DIR = tests
|
TESTS_DIR = tests
|
||||||
TESTS= $(TESTS_DIR)/test_main.c
|
TESTS = $(TESTS_DIR)/test_main.c \
|
||||||
|
$(TESTS_DIR)/cli/test_parse.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_count.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_flood.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_help.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_interval.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_quiet.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handler_map.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_size.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_timeout.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_ttl.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_version.c \
|
||||||
|
$(TESTS_DIR)/cli/handlers/test_handle_verbose.c \
|
||||||
|
$(TESTS_DIR)/cli/utils/test_parse_int.c \
|
||||||
|
$(TESTS_DIR)/cli/utils/test_parse_float.c
|
||||||
|
|
||||||
|
|
|
||||||
7
tests/cli/handlers/test_handle_count.c
Normal file
7
tests/cli/handlers/test_handle_count.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_count, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
|
||||||
|
}
|
||||||
7
tests/cli/handlers/test_handle_flood.c
Normal file
7
tests/cli/handlers/test_handle_flood.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_flood, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_help.c
Normal file
6
tests/cli/handlers/test_handle_help.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_help, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_interval.c
Normal file
6
tests/cli/handlers/test_handle_interval.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_interval, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_quiet.c
Normal file
6
tests/cli/handlers/test_handle_quiet.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_quiet, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_size.c
Normal file
6
tests/cli/handlers/test_handle_size.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_size, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_timeout.c
Normal file
6
tests/cli/handlers/test_handle_timeout.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_timeout, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_ttl.c
Normal file
6
tests/cli/handlers/test_handle_ttl.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_ttl, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_verbose.c
Normal file
6
tests/cli/handlers/test_handle_verbose.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_verbose, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handle_version.c
Normal file
6
tests/cli/handlers/test_handle_version.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handle_version, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/handlers/test_handler_map.c
Normal file
6
tests/cli/handlers/test_handler_map.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_handler_map, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/test_parse.c
Normal file
6
tests/cli/test_parse.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_parse, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/utils/test_parse_float.c
Normal file
6
tests/cli/utils/test_parse_float.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_parse_float, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
6
tests/cli/utils/test_parse_int.c
Normal file
6
tests/cli/utils/test_parse_int.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <criterion/criterion.h>
|
||||||
|
|
||||||
|
Test(dummy_test_parse_int, always_pass)
|
||||||
|
{
|
||||||
|
cr_assert(1, "");
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue