-#include "kds_s2000w_config.h"
\ No newline at end of file
+#include "kds_s2000w_config.h"
+
+void loadConfig(program_config* config)
+{
+ return;
+}
\ No newline at end of file
#ifndef KDS_S2000W_CONFIG_H
#define KDS_S2000W_CONFIG_H
+typedef struct {
+ const char* scanner_url;
+} program_config;
+
+void loadConfig(program_config* config);
#endif
\ No newline at end of file
--- /dev/null
+#include <check.h>
+#include "../src/kds_s2000w_config.h"
+
+START_TEST(kds_s2000w_config_read_parameter)
+{
+ ck_assert_int_eq(1, 2);
+}
+END_TEST
\ No newline at end of file
#undef sleep
#include "kds_s2000w_net_read_tests.c"
#include "kds_s2000w_net_get_params_tests.c"
+#include "kds_s2000w_read_config_tests.c"
Suite* net_read()
{
return get_params;
}
+Suite* config_read()
+{
+ Suite* read_config = suite_create("kds_s2000w_net_read_config");
+
+ TCase* net_config_read = tcase_create("read config");
+ tcase_add_test(net_config_read, kds_s2000w_config_read_parameter);
+ suite_add_tcase(read_config, net_config_read);
+
+ return read_config;
+}
+
int main()
{
int failed = 0;
SRunner* runner = srunner_create(kds_s2000w_net);
srunner_add_suite(runner, net_read());
srunner_add_suite(runner, get_params());
+ srunner_add_suite(runner, config_read());
srunner_run_all(runner, CK_NORMAL);
failed = srunner_ntests_failed(runner);
#include <stdio.h>
+#include <stdlib.h>
+#include "../src/kds_s2000w_config.h"
int main()
{
- printf("Hello read config\n");
+ program_config* config = malloc(sizeof(program_config));
return 0;
}
\ No newline at end of file