]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
unit-tests: Forward variable argument list in TEST_SUITE_DEPEND
authorMartin Willi <martin@revosec.ch>
Mon, 27 Apr 2015 11:09:25 +0000 (13:09 +0200)
committerMartin Willi <martin@revosec.ch>
Sun, 12 Jul 2015 11:25:50 +0000 (13:25 +0200)
For some plugin features, such as crypters or AEADs, we have some additional
feature arguments, such as the key size.

src/charon-tkm/tests/tests.c
src/libcharon/tests/libcharon_tests.c
src/libhydra/tests/hydra_tests.c
src/libstrongswan/tests/tests.c
src/libtls/tests/tls_tests.c

index 669f4d500a30f7c0e59d5491edba3b1cf8add734..ac152b6907e0c57cb4d1e2f212a0572cf3357dfb 100644 (file)
@@ -36,8 +36,8 @@
 static test_configuration_t tests[] = {
 #define TEST_SUITE(x) \
        { .suite = x, },
-#define TEST_SUITE_DEPEND(x, type, args) \
-       { .suite = x, .feature = PLUGIN_DEPENDS(type, args) },
+#define TEST_SUITE_DEPEND(x, type, ...) \
+       { .suite = x, .feature = PLUGIN_DEPENDS(type, __VA_ARGS__) },
 #include "tests.h"
        { .suite = NULL, }
 };
index a22b15129c87999da8b0ade32c29dee16bb5691d..ec96de7118389163f4dcde3d63bd5e8d1e99d546 100644 (file)
@@ -27,8 +27,8 @@
 static test_configuration_t tests[] = {
 #define TEST_SUITE(x) \
        { .suite = x, },
-#define TEST_SUITE_DEPEND(x, type, args) \
-       { .suite = x, .feature = PLUGIN_DEPENDS(type, args) },
+#define TEST_SUITE_DEPEND(x, type, ...) \
+       { .suite = x, .feature = PLUGIN_DEPENDS(type, __VA_ARGS__) },
 #include "libcharon_tests.h"
        { .suite = NULL, }
 };
index 90abd83692c00b0e4eb299de2372d45ee9256bc7..0d6387be7fad7c068e6f6707a342df425eacc8bf 100644 (file)
@@ -26,8 +26,8 @@
 static test_configuration_t tests[] = {
 #define TEST_SUITE(x) \
        { .suite = x, },
-#define TEST_SUITE_DEPEND(x, type, args) \
-       { .suite = x, .feature = PLUGIN_DEPENDS(type, args) },
+#define TEST_SUITE_DEPEND(x, type, ...) \
+       { .suite = x, .feature = PLUGIN_DEPENDS(type, __VA_ARGS__) },
 #include "hydra_tests.h"
        { .suite = NULL, }
 };
index aed600fbc4eb662a94bc9f382a20ce85b55fe984..0fdfac52da854fd823ba1ce61b5ce5ec11ca211b 100644 (file)
@@ -25,8 +25,8 @@
 static test_configuration_t tests[] = {
 #define TEST_SUITE(x) \
        { .suite = x, },
-#define TEST_SUITE_DEPEND(x, type, args) \
-       { .suite = x, .feature = PLUGIN_DEPENDS(type, args) },
+#define TEST_SUITE_DEPEND(x, type, ...) \
+       { .suite = x, .feature = PLUGIN_DEPENDS(type, __VA_ARGS__) },
 #include "tests.h"
        { .suite = NULL, }
 };
index 2c2c5bacc4498ab696a6c0ecd6cf0fdd0c808d68..3f22f9c828a52683f936e233fa3ef71ab69c9676 100644 (file)
@@ -25,8 +25,8 @@
 static test_configuration_t tests[] = {
 #define TEST_SUITE(x) \
        { .suite = x, },
-#define TEST_SUITE_DEPEND(x, type, args) \
-       { .suite = x, .feature = PLUGIN_DEPENDS(type, args) },
+#define TEST_SUITE_DEPEND(x, type, ...) \
+       { .suite = x, .feature = PLUGIN_DEPENDS(type, __VA_ARGS__) },
 #include "tls_tests.h"
        { .suite = NULL, }
 };