aboutsummaryrefslogtreecommitdiff
path: root/test/src/io/test_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/io/test_cli.c')
-rw-r--r--test/src/io/test_cli.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/src/io/test_cli.c b/test/src/io/test_cli.c
index e5077ef..448fd0c 100644
--- a/test/src/io/test_cli.c
+++ b/test/src/io/test_cli.c
@@ -52,4 +52,14 @@ Test(cli, test_auto_threads) {
int ret = argp_parse(&test_argp, argc, argv, 0, 0, &cfg);
cr_assert_eq(ret, 0, );
cr_assert_eq(cfg.threads, sysconf(_SC_NPROCESSORS_ONLN), );
+}
+
+Test(cli, test_timeout) {
+ int argc = 4;
+ char *argv[] = {"ecgen", "--timeout=10m", "--fp", "1"};
+ config_t cfg;
+ memset(&cfg, 0, sizeof(cfg));
+ int ret = argp_parse(&test_argp, argc, argv, 0, 0, &cfg);
+ cr_assert_eq(ret, 0, );
+ cr_assert_eq(cfg.timeout, 600, );
} \ No newline at end of file