Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
855fb119
Commit
855fb119
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#9621: Update jenkins script to launch functional tests
parent
318349bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hudson-sflphone-script.sh
+61
-9
61 additions, 9 deletions
hudson-sflphone-script.sh
with
61 additions
and
9 deletions
hudson-sflphone-script.sh
+
61
−
9
View file @
855fb119
...
...
@@ -10,6 +10,9 @@ BUILD=
CODE_ANALYSIS
=
0
DOXYGEN
=
0
CONFIGDIR
=
~/.config
SFLCONFDIR
=
${
CONFIGDIR
}
/sflphone
function
run_code_analysis
{
# Check if cppcheck is installed on the system
if
[
`
which cppcheck &>/dev/null
;
echo
$?
`
-ne
1
]
;
then
...
...
@@ -19,6 +22,7 @@ function run_code_analysis {
fi
}
function
gen_doxygen
{
# Check if doxygen is installed on the system
if
[
`
which doxygen &>/dev/null
;
echo
$?
`
-ne
1
]
;
then
...
...
@@ -28,6 +32,58 @@ function gen_doxygen {
fi
}
function
launch_unit_test_daemon
{
# Run the unit tests for the daemon
pushd
daemon/test
# Remove the previous XML test file
rm
-rf
$XML_RESULTS
./run_tests.sh
||
exit
1
popd
}
function
launch_functional_test_daemon
{
# Run the python functional tests for the daemon
# make sure no other instance are currently running
killall sflphoned
killall sipp
# make sure the configuration directory created
CONFDIR
=
~/.config
SFLCONFDIR
=
${
CONFDIR
}
/sflphone
eval
`
dbus-launch
--auto-syntax
`
if
[
!
-d
${
CONFDIR
}
]
;
then
mkdir
${
CONFDIR
}
fi
if
[
!
-d
${
SFLCONFDIR
}
]
;
then
mkdir
${
SFLCONFDIR
}
fi
# make sure the most recent version of the configuration
# is installed
pushd
tools/pysflphone
cp
-f
sflphoned.functest.yml
${
SFLCONFDIR
}
popd
# launch sflphone daemon, wait some time for
# dbus registration to complete
pushd
daemon
./src/sflphoned &
sleep
3
popd
# launch the test script
pushd
tools/pysflphone
nosetests
--with-xunit
test_sflphone_dbus_interface.py
popd
}
function
build_daemon
{
# Compile the daemon
pushd
daemon
...
...
@@ -55,15 +111,6 @@ function build_daemon {
# Compile unit tests
make check
popd
if
[
$TEST
==
1
]
;
then
# Run the unit tests for the daemon
pushd
daemon/test
# Remove the previous XML test file
rm
-rf
$XML_RESULTS
./run_tests.sh
||
exit
1
popd
fi
}
function
build_gnome
{
...
...
@@ -128,5 +175,10 @@ done
# Call appropriate build function, with parameters if needed
build_
$BUILD
if
[
$TEST
==
1
]
;
then
# launch_unit_test_daemon
launch_functional_test_daemon
fi
# SUCCESS
exit
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