diff options
Diffstat (limited to 'src/integration-tests')
-rw-r--r-- | src/integration-tests/Makefile.am | 11 | ||||
-rw-r--r-- | src/integration-tests/test_buildslave_hangup.py | 7 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/integration-tests/Makefile.am b/src/integration-tests/Makefile.am index e42fb0c33..51885ead4 100644 --- a/src/integration-tests/Makefile.am +++ b/src/integration-tests/Makefile.am | |||
@@ -33,10 +33,19 @@ check_SCRIPTS = \ | |||
33 | endif | 33 | endif |
34 | # test_integration_disconnect.py | 34 | # test_integration_disconnect.py |
35 | 35 | ||
36 | 36 | # This temporary test does one thing: hangs up for 1300 seconds | |
37 | # to test buildslave hangup process killing functionality | ||
38 | # It's in integration tests because integration-tests is one of the few | ||
39 | # tests that are configured to run under more-than-1200-seconds watchdog | ||
40 | if MINGW | ||
41 | hangup_SCRIPTS = test_buildslave_hangup.py | ||
42 | else | ||
43 | hangup_SCRIPTS = | ||
44 | endif | ||
37 | if HAVE_MHD | 45 | if HAVE_MHD |
38 | if ENABLE_TEST_RUN | 46 | if ENABLE_TEST_RUN |
39 | TESTS = \ | 47 | TESTS = \ |
48 | $(hangup_SCRIPTS) \ | ||
40 | $(check_SCRIPTS) | 49 | $(check_SCRIPTS) |
41 | endif | 50 | endif |
42 | endif | 51 | endif |
diff --git a/src/integration-tests/test_buildslave_hangup.py b/src/integration-tests/test_buildslave_hangup.py new file mode 100644 index 000000000..b7f1b6e3f --- /dev/null +++ b/src/integration-tests/test_buildslave_hangup.py | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/python | ||
2 | import sys | ||
3 | import time | ||
4 | |||
5 | print ("This test hangs up for 1300 seconds to see how buildslave will go about killing it") | ||
6 | time.sleep (1300) | ||
7 | sys.exit (0) | ||