@@ -289,23 +289,35 @@ sample-compose-up: sample-compose-down
289289sample-compose-down :
290290 docker-compose -f test_scenarios/${SPLUNK_COMPOSE} down --volumes --remove-orphans || true
291291
292- test : clean ansible test_setup all run_tests_centos7 run_tests_redhat8 run_tests_debian9
292+ test : clean ansible test_setup all run_small_tests run_large_tests
293293
294- test_centos7 : clean ansible splunk-centos-7 uf-centos-7 test_setup run_tests_centos7
294+ run_small_tests : run_small_tests_centos7 run_small_tests_redhat8 run_small_tests_debian9 run_small_tests_debian10
295295
296- test_redhat8 : clean ansible splunk-redhat-8 uf-redhat-8 test_setup run_tests_redhat8
296+ run_large_tests : run_large_tests_centos7 run_large_tests_redhat8 run_large_tests_debian9 run_large_tests_debian10
297297
298- test_debian9 : clean ansible splunk-debian-9 uf-debian-9 test_setup run_tests_debian9
298+ test_centos7 : clean ansible splunk-centos-7 uf-centos-7 test_setup run_small_tests_centos7 run_large_tests_centos7
299299
300- test_debian10 : clean ansible splunk-debian-10 uf-debian-10 test_setup run_tests_debian10
300+ test_redhat8 : clean ansible splunk-redhat-8 uf-redhat-8 test_setup run_small_tests_redhat8 run_large_tests_redhat8
301301
302- run_tests_centos7 :
303- @echo ' Running the super awesome tests; CentOS 7'
304- pytest -sv tests/test_docker_splunk.py --platform centos-7 --junitxml test-results/centos7-result/testresults_centos7.xml
302+ test_debian9 : clean ansible splunk-debian-9 uf-debian-9 test_setup run_small_tests_debian9 run_large_tests_debian9
305303
306- run_tests_redhat8 :
307- @echo ' Running the super awesome tests; RedHat 8'
308- pytest -sv tests/test_docker_splunk.py --platform redhat-8 --junitxml test-results/redhat8-result/testresults_redhat8.xml
304+ test_debian10 : clean ansible splunk-debian-10 uf-debian-10 test_setup run_small_tests_debian10 run_large_tests_debian10
305+
306+ run_small_tests_centos7 :
307+ @echo ' Running the super awesome small tests; CentOS 7'
308+ pytest -n 3 --reruns 1 -sv tests/test_single_splunk_image.py --platform centos-7 --junitxml test-results/centos7-result/testresults_small_centos7.xml
309+
310+ run_large_tests_centos7 :
311+ @echo ' Running the super awesome large tests; CentOS 7'
312+ pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform centos-7 --junitxml test-results/centos7-result/testresults_large_centos7.xml
313+
314+ run_small_tests_redhat8 :
315+ @echo ' Running the super awesome small tests; RedHat 8'
316+ pytest -n 3 --reruns 1 -sv tests/test_single_splunk_image.py --platform redhat-8 --junitxml test-results/redhat8-result/testresults_small_redhat8.xml
317+
318+ run_large_tests_redhat8 :
319+ @echo ' Running the super awesome large tests; RedHat 8'
320+ pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform redhat-8 --junitxml test-results/redhat8-result/testresults_large_redhat8.xml
309321
310322test_setup :
311323 @echo ' Install test requirements'
@@ -316,13 +328,21 @@ test_setup:
316328 mkdir test-results/debian10-result || true
317329 mkdir test-results/redhat8-result || true
318330
319- run_tests_debian9 :
320- @echo ' Running the super awesome tests; Debian 9'
321- pytest -sv tests/test_docker_splunk.py --platform debian-9 --junitxml test-results/debian9-result/testresults_debian9.xml
331+ run_small_tests_debian9 :
332+ @echo ' Running the super awesome small tests; Debian 9'
333+ pytest -n 3 --reruns 1 -sv tests/test_single_splunk_image.py --platform debian-9 --junitxml test-results/debian9-result/testresults_small_debian9.xml
334+
335+ run_large_tests_debian9 :
336+ @echo ' Running the super awesome large tests; Debian 9'
337+ pytest -n 2 --reruns 1 -sv tests/test_distributed_splunk_image.py --platform debian-9 --junitxml test-results/debian9-result/testresults_large_debian9.xml
338+
339+ run_small_tests_debian10 :
340+ @echo ' Running the super awesome small tests; Debian 10'
341+ pytest -n 3 --reruns 1 -sv tests/test_single_splunk_image.py --platform debian-10 --junitxml test-results/debian10-result/testresults_small_debian10.xml
322342
323- run_tests_debian10 :
324- @echo ' Running the super awesome tests; Debian 10'
325- pytest -sv tests/test_docker_splunk .py --platform debian-10 --junitxml test-results/debian10-result/testresults_debian10 .xml
343+ run_large_tests_debian10 :
344+ @echo ' Running the super awesome large tests; Debian 10'
345+ pytest -n 2 --reruns 1 - sv tests/test_distributed_splunk_image .py --platform debian-10 --junitxml test-results/debian10-result/testresults_large_debian10 .xml
326346
327347save_containers :
328348 @echo ' Saving the following containers:${CONTAINERS_TO_SAVE}'
0 commit comments