diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_artifactory.c | 2 | ||||
-rw-r--r-- | tests/test_conda.c | 2 | ||||
-rw-r--r-- | tests/test_docker.c | 2 | ||||
-rw-r--r-- | tests/test_download.c | 1 | ||||
-rw-r--r-- | tests/test_junitxml.c | 1 | ||||
-rw-r--r-- | tests/test_multiprocessing.c | 12 | ||||
-rw-r--r-- | tests/test_recipe.c | 2 | ||||
-rw-r--r-- | tests/test_wheel.c | 1 |
8 files changed, 19 insertions, 4 deletions
diff --git a/tests/test_artifactory.c b/tests/test_artifactory.c index 1a21f0e..2c732fa 100644 --- a/tests/test_artifactory.c +++ b/tests/test_artifactory.c @@ -1,4 +1,6 @@ #include "testing.h" +#include "artifactory.h" +#include "delivery.h" // Import private functions from core extern int delivery_init_platform(struct Delivery *ctx); diff --git a/tests/test_conda.c b/tests/test_conda.c index fc762e9..2ed869a 100644 --- a/tests/test_conda.c +++ b/tests/test_conda.c @@ -1,4 +1,6 @@ #include "testing.h" +#include "conda.h" +#include "delivery.h" char cwd_start[PATH_MAX]; char cwd_workspace[PATH_MAX]; diff --git a/tests/test_docker.c b/tests/test_docker.c index 04a73aa..6eec53c 100644 --- a/tests/test_docker.c +++ b/tests/test_docker.c @@ -1,4 +1,6 @@ #include "testing.h" +#include "docker.h" + struct DockerCapabilities cap_suite; void test_docker_capable() { diff --git a/tests/test_download.c b/tests/test_download.c index cee7683..ad8724e 100644 --- a/tests/test_download.c +++ b/tests/test_download.c @@ -1,4 +1,5 @@ #include "testing.h" +#include "download.h" void test_download() { struct testcase { diff --git a/tests/test_junitxml.c b/tests/test_junitxml.c index 9b2181e..7111249 100644 --- a/tests/test_junitxml.c +++ b/tests/test_junitxml.c @@ -1,4 +1,5 @@ #include "testing.h" +#include "junitxml.h" void test_junitxml_testsuite_read() { struct JUNIT_Testsuite *testsuite; diff --git a/tests/test_multiprocessing.c b/tests/test_multiprocessing.c index cd037d0..b9cd309 100644 --- a/tests/test_multiprocessing.c +++ b/tests/test_multiprocessing.c @@ -1,10 +1,14 @@ #include "testing.h" +#include "multiprocessing.h" static struct MultiProcessingPool *pool; char *commands[] = { - "true", - "uname -a", - "/bin/echo hello world", + "sleep 1; true", + "sleep 2; uname -a", + "sleep 3; /bin/echo hello world", + "sleep 4; true", + "sleep 5; uname -a", + "sleep 6; /bin/echo hello world", }; void test_mp_pool_init() { @@ -120,4 +124,4 @@ int main(int argc, char *argv[]) { }; STASIS_TEST_RUN(tests); STASIS_TEST_END_MAIN(); -}
\ No newline at end of file +} diff --git a/tests/test_recipe.c b/tests/test_recipe.c index 8e2c470..7c55cd5 100644 --- a/tests/test_recipe.c +++ b/tests/test_recipe.c @@ -1,4 +1,6 @@ #include "testing.h" +#include "relocation.h" +#include "recipe.h" static void make_local_recipe(const char *localdir) { char path[PATH_MAX] = {0}; diff --git a/tests/test_wheel.c b/tests/test_wheel.c index 16f60a3..6818b22 100644 --- a/tests/test_wheel.c +++ b/tests/test_wheel.c @@ -1,4 +1,5 @@ #include "testing.h" +#include "wheel.h" void test_get_wheel_file() { struct testcase { |