Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
d6f570da
Commit
d6f570da
authored
6 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "CI: Add --test-timeout option to runTestsuite.sh"
parents
aa10d6d5
950d0b65
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/CI/gateTestGroups.json
+9
-0
9 additions, 0 deletions
tests/CI/gateTestGroups.json
tests/CI/periodic-dailyTestGroups.json
+7
-1
7 additions, 1 deletion
tests/CI/periodic-dailyTestGroups.json
tests/CI/runTestsuite.sh
+2
-1
2 additions, 1 deletion
tests/CI/runTestsuite.sh
with
18 additions
and
2 deletions
tests/CI/gateTestGroups.json
+
9
−
0
View file @
d6f570da
...
...
@@ -2,46 +2,55 @@
{
"name"
:
"ari1"
,
"dir"
:
"tests/CI/output/ari1"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"--test-regex=tests/rest_api/[Ca-d]"
},
{
"name"
:
"ari2"
,
"dir"
:
"tests/CI/output/ari2"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"--test-regex=tests/rest_api/[e-z]"
},
{
"name"
:
"pjs1"
,
"dir"
:
"tests/CI/output/pjsip1"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"--test-regex=tests/channels/pjsip/[a-f]"
},
{
"name"
:
"pjs2"
,
"dir"
:
"tests/CI/output/pjsip2"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"--test-regex=tests/channels/pjsip/[g-r]"
},
{
"name"
:
"pjs3"
,
"dir"
:
"tests/CI/output/pjsip3"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"--test-regex=tests/channels/pjsip/[s-z]"
},
{
"name"
:
"sip1"
,
"dir"
:
"tests/CI/output/sip1"
,
"runTestsuiteOptions"
:
"--test-timeout=240"
,
"testcmd"
:
"--test-regex=tests/channels/SIP/[Sa-r]"
},
{
"name"
:
"sip2"
,
"dir"
:
"tests/CI/output/sip2"
,
"runTestsuiteOptions"
:
"--test-timeout=240"
,
"testcmd"
:
"--test-regex=tests/channels/SIP/[s-z]"
},
{
"name"
:
"iax "
,
"dir"
:
"tests/CI/output/iax2_local"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
" -t tests/channels/iax2 -t tests/channels/local"
},
{
"name"
:
"mwi "
,
"dir"
:
"tests/CI/output/extmwi"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"--test-regex=tests/channels/pjsip/.*mwi"
}
]
This diff is collapsed.
Click to expand it.
tests/CI/periodic-dailyTestGroups.json
+
7
−
1
View file @
d6f570da
...
...
@@ -2,37 +2,43 @@
{
"name"
:
"ari "
,
"dir"
:
"tests/CI/output/ari"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"-t tests/rest_api/"
},
{
"name"
:
"pjs "
,
"dir"
:
"tests/CI/output/pjsip"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
"-t tests/channels/pjsip"
},
{
"name"
:
"sip "
,
"dir"
:
"tests/CI/output/sip"
,
"runTestsuiteOptions"
:
"--test-timeout=240"
,
"testcmd"
:
"-t tests/channels/SIP"
},
{
"name"
:
"iax "
,
"dir"
:
"tests/CI/output/iax2_local"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
" -t tests/channels/iax2 -t tests/channels/local"
},
{
"name"
:
"apps"
,
"dir"
:
"tests/CI/output/agi-apps"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
" -t tests/agi -t tests/apps -t blind-transfer-parkingtimeout"
},
{
"name"
:
"othr"
,
"dir"
:
"tests/CI/output/other"
,
"runTestsuiteOptions"
:
"--test-timeout=180"
,
"testcmd"
:
" -T tests/(apps|agi|blind-transfer-parkingtimeout|rest_api|channels|realtime|example|skeleton_test|remote-test)"
},
{
"name"
:
"real"
,
"dir"
:
"tests/CI/output/realtime"
,
"runTestsuiteOptions"
:
"--realtime --initialize-db --cleanup-db"
,
"runTestsuiteOptions"
:
"
--test-timeout=180
--realtime --initialize-db --cleanup-db"
,
"testcmd"
:
" -t tests/channels/pjsip -G realtime-incompatible"
}
]
This diff is collapsed.
Click to expand it.
tests/CI/runTestsuite.sh
+
2
−
1
View file @
d6f570da
#!/usr/bin/env bash
CIDIR
=
$(
dirname
$(
readlink
-fn
$0
))
REALTIME
=
0
TEST_TIMEOUT
=
600
source
$CIDIR
/ci.functions
ASTETCDIR
=
$DESTDIR
/etc/asterisk
...
...
@@ -14,7 +15,7 @@ fi
export
PYTHONPATH
=
./lib/python/
echo
"Running tests
${
TESTSUITE_COMMAND
}
"
./runtests.py
--cleanup
${
TESTSUITE_COMMAND
}
| contrib/scripts/pretty_print
--no-color
--no-timer
--term-width
=
120
--show-errors
||
:
./runtests.py
--cleanup
--timeout
=
${
TEST_TIMEOUT
}
${
TESTSUITE_COMMAND
}
| contrib/scripts/pretty_print
--no-color
--no-timer
--term-width
=
120
--show-errors
||
:
if
[
$REALTIME
-eq
1
]
;
then
$CIDIR
/teardownRealtime.sh
--cleanup-db
=
${
CLEANUP_DB
:?0
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment