This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy pathtestdata.h
42 lines (34 loc) · 2.42 KB
/
testdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @file
*
* @brief Tests for specload plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef ELEKTRA_GOPTS_TESTDATA_H
#define ELEKTRA_GOPTS_TESTDATA_H
#define TEST_EMPTY "empty"
#define TEST_KS_EMPTY ksNew (1, keyNew ("spec:/tests/gopts/key", KEY_META, "default", "5", KEY_END), KS_END)
#define TEST_SINGLEOPT "singleopt"
#define TEST_KS_SINGLEOPT \
ksNew (1, keyNew ("spec:/tests/gopts/key", KEY_META, "opt", "c", KEY_META, "opt/long", "longopt", KEY_END), KS_END)
#define TEST_TWOOPT "twoopt"
#define TEST_KS_TWOOPT \
ksNew (2, keyNew ("spec:/tests/gopts/key", KEY_META, "opt", "c", KEY_META, "opt/long", "longopt", KEY_END), \
keyNew ("spec:/tests/gopts/key2", KEY_META, "opt", "b", KEY_META, "opt/long", "longopt2", KEY_END), KS_END)
#define TEST_SINGLEENV "singleenv"
#define TEST_KS_SINGLEENV ksNew (1, keyNew ("spec:/tests/gopts/key", KEY_META, "env", "ENV_VAR", KEY_END), KS_END)
#define TEST_TWOENV "twoenv"
#define TEST_KS_TWOENV \
ksNew (2, keyNew ("spec:/tests/gopts/key", KEY_META, "env", "ENV_VAR", KEY_END), \
keyNew ("spec:/tests/gopts/key2", KEY_META, "env", "OTHER_ENV_VAR", KEY_END), KS_END)
#define TEST_MIXED "mixed"
#define TEST_KS_MIXED \
ksNew (2, \
keyNew ("spec:/tests/gopts/key", KEY_META, "opt", "c", KEY_META, "opt/long", "longopt", KEY_META, "env", "ENV_VAR", \
KEY_END), \
keyNew ("spec:/tests/gopts/key2", KEY_META, "opt", "b", KEY_META, "opt/long", "longopt2", KEY_META, "env", "OTHER_ENV_VAR", \
KEY_END), \
KS_END)
#endif // ELEKTRA_GOPTS_TESTDATA_H