diff options
Diffstat (limited to 'include/test/lib')
-rw-r--r-- | include/test/lib/color.h | 17 | ||||
-rw-r--r-- | include/test/lib/dir.h | 18 | ||||
-rw-r--r-- | include/test/lib/time.h | 16 |
3 files changed, 51 insertions, 0 deletions
diff --git a/include/test/lib/color.h b/include/test/lib/color.h new file mode 100644 index 0000000..be0d62f --- /dev/null +++ b/include/test/lib/color.h @@ -0,0 +1,17 @@ +#ifndef INC_TEST_LIB_COLOR_H +#define INC_TEST_LIB_COLOR_H + +#include <test/__meta__.h> +#ifndef TEST_RESULT +#define TEST_RESULT(subtest,result,n,n_success) _TEST_RESULT("LIB/COLOR",subtest,result,n,n_success) +#endif + +#include <lib/color.h> + +bool_t test_color_zero(const uint8_t* color1, size_t channels, bool_t result); +bool_t test_color_equal(const uint8_t* color1, const uint8_t* color2, size_t channels, bool_t result); + +// Meta test function +bool_t TEST_lib_color(); + +#endif diff --git a/include/test/lib/dir.h b/include/test/lib/dir.h new file mode 100644 index 0000000..64482df --- /dev/null +++ b/include/test/lib/dir.h @@ -0,0 +1,18 @@ +#ifndef INC_TEST_LIB_DIR_H +#define INC_TEST_LIB_DIR_H + +#include <test/__meta__.h> +#ifndef TEST_RESULT +#define TEST_RESULT(subtest,result,n,n_success) _TEST_RESULT("LIB/DIR",subtest,result,n,n_success) +#endif + +#include <lib/dir.h> + +bool_t test_is_directory(char* dirname, bool_t result); +bool_t test_full_path(char* dirname, char* file, char* result); +bool_t test_is_tif_ext(char* file_name, bool_t result); + +// Meta test function +bool_t TEST_lib_dir(); + +#endif diff --git a/include/test/lib/time.h b/include/test/lib/time.h new file mode 100644 index 0000000..cdf464e --- /dev/null +++ b/include/test/lib/time.h @@ -0,0 +1,16 @@ +#ifndef INC_TEST_LIB_TIME_H +#define INC_TEST_LIB_TIME_H + +#include <test/__meta__.h> +#ifndef TEST_RESULT +#define TEST_RESULT(subtest,result,n,n_success) _TEST_RESULT("LIB/TIME",subtest,result,n,n_success) +#endif + +#include <lib/time.h> + +bool_t test_diff_time(const struct timespec *time1, const struct timespec *time0, double result); + +// Meta test function +bool_t TEST_lib_time(); + +#endif |