Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
707e6798
Commit
707e6798
authored
Dec 06, 2015
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixes to test framework
parent
d687b89d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
cmake_targets/autotests/run_exec_autotests.bash
cmake_targets/autotests/run_exec_autotests.bash
+3
-3
cmake_targets/tools/test_helper
cmake_targets/tools/test_helper
+2
-2
No files found.
cmake_targets/autotests/run_exec_autotests.bash
View file @
707e6798
...
...
@@ -153,8 +153,8 @@ function test_compile() {
echo_success
"
$test_case_name
.
${
tags
}
PASSED"
xUnit_success
"compilation"
"
$test_case_name
.
$tags
"
"PASS"
"
$result_string
"
"
$xmlfile_testcase
"
else
echo_
success
"
$test_case_name
.
${
tags
}
FAILED"
xUnit_
success
"compilation"
"
$test_case_name
.
$tags
"
"FAIL"
"
$result_string
"
"
$xmlfile_testcase
"
echo_
error
"
$test_case_name
.
${
tags
}
FAILED"
xUnit_
fail
"compilation"
"
$test_case_name
.
$tags
"
"FAIL"
"
$result_string
"
"
$xmlfile_testcase
"
fi
}
...
...
@@ -324,7 +324,7 @@ function test_compile_and_run() {
if
[
"
$result_string
"
==
""
]
;
then
echo_error
"execution
$test_case_name
.
$compile_prog
.
${
tags_array
[
$tags_array_index
]
}
Run_Result =
\"
$result_string
\"
Result = FAIL"
xUnit_
success
"execution"
"
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
"
"FAIL"
"
$result_string
"
"
$xmlfile_testcase
"
xUnit_
fail
"execution"
"
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
"
"FAIL"
"
$result_string
"
"
$xmlfile_testcase
"
else
if
[
"
$global_result
"
==
"0"
]
;
then
echo_error
"execution
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
Run_Result =
\"
$result_string
\"
Result = FAIL"
...
...
cmake_targets/tools/test_helper
View file @
707e6798
...
...
@@ -34,7 +34,7 @@ xUnit_fail() {
xmlfile_testcase=$5
currtime=$(date +%s.%N)
time=$(echo "$currtime - $XUNIT_START" | bc -l)
xml="<testcase classname='$class' name='$test_case' Run_result='$run_result' time='$time' RESULT='$result'></testcase>"
xml="<testcase classname='$class' name='$test_case' Run_result='$run_result' time='$time
s
' RESULT='$result'></testcase>"
echo -e $xml > $xmlfile_testcase
XUNIT_TESTCASES_XML="$XUNIT_TESTCASES_XML \n$xml"
XUNIT_FAILED=$((XUNIT_FAILED+1))
...
...
@@ -56,7 +56,7 @@ xUnit_success() {
xmlfile_testcase=$5
currtime=$(date +%s.%N)
time=$(echo "$currtime - $XUNIT_START" | bc -l)
xml="<testcase classname='$class' name='$test_case' Run_result='$run_result' time='$time' RESULT='$result'></testcase>"
xml="<testcase classname='$class' name='$test_case' Run_result='$run_result' time='$time
s
' RESULT='$result'></testcase>"
echo -e $xml > $xmlfile_testcase
XUNIT_TESTCASES_XML="$XUNIT_TESTCASES_XML \n$xml"
XUNIT_SUCCESS=$((XUNIT_SUCCESS+1))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment