blob: f2de29b91f562e285c7a1e9469086f7ee4a474be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* See LICENSE file for copyright and license details. */
#include "test-common.h"
#define LIMIT_BYTES 4098
#define LIMIT_SECONDS 10
int
main(int argc, char *argv[])
{
struct libgeome_context ctx;
struct libgeome_data data;
if (argc < 2) {
fprintf(stderr, "usage: %s command [argument] ...", argv[0]);
return 1;
}
test_common_init(&ctx, &data, argv[0]);
if (libgeome_get_from_command(&ctx, &data, LIMIT_BYTES, LIMIT_SECONDS, argv[1], (const void *)&argv[1]))
return 1;
test_common_print(&data);
return 0;
}
|