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
spbro
OpenXG-RAN
Commits
1336a410
Commit
1336a410
authored
Nov 05, 2022
by
laurent
Committed by
Roberto Louro Magueta
Nov 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add time measurement in phy sim CI test
parent
5ee6cf5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
cmake_targets/autotests/run_exec_autotests.bash
cmake_targets/autotests/run_exec_autotests.bash
+8
-6
No files found.
cmake_targets/autotests/run_exec_autotests.bash
View file @
1336a410
...
@@ -69,7 +69,7 @@ function test_run() {
...
@@ -69,7 +69,7 @@ function test_run() {
mkdir
-p
$log_dir
mkdir
-p
$log_dir
echo
""
>
$temp_exec_log
echo
""
>
$temp_exec_log
echo
"
"
>
$log_file
echo
"
start at
$(
date
)
"
>
"
$log_file
"
#echo "log_dir = $log_dir"
#echo "log_dir = $log_dir"
#echo "log_file = $log_file"
#echo "log_file = $log_file"
#echo "exec_file = $exec_file"
#echo "exec_file = $exec_file"
...
@@ -105,9 +105,9 @@ function test_run() {
...
@@ -105,9 +105,9 @@ function test_run() {
echo
"-----------------------------------------------------------------------------"
>
"
$temp_exec_log
"
echo
"-----------------------------------------------------------------------------"
>
"
$temp_exec_log
"
echo
"<EXECUTION LOG Test Case =
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
, Run =
$run_index
>"
>>
"
$temp_exec_log
"
echo
"<EXECUTION LOG Test Case =
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
, Run =
$run_index
>"
>>
"
$temp_exec_log
"
echo
"Executing
$main_exec
$main_exec_args_array_index
"
>>
"
$temp_exec_log
"
echo
"Executing
$main_exec
$main_exec_args_array_index
at
$(
date
)
"
>>
"
$temp_exec_log
"
uname
-a
>>
"
$temp_exec_log
"
uname
-a
>>
"
$temp_exec_log
"
"
$main_exec
"
$main_exec_args_array_index
>>
"
$temp_exec_log
"
2>&1 &
time
"
$main_exec
"
$main_exec_args_array_index
>>
"
$temp_exec_log
"
2>&1 &
done
done
wait
wait
...
@@ -115,7 +115,7 @@ function test_run() {
...
@@ -115,7 +115,7 @@ function test_run() {
for
((
run_index
=
1
;
run_index <
=
$nruns
;
run_index++
))
for
((
run_index
=
1
;
run_index <
=
$nruns
;
run_index++
))
do
do
echo
"</EXECUTION LOG Test Case =
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
, Run =
$run_index
>"
>>
$temp_exec_log
2>&1
echo
"</EXECUTION LOG Test Case =
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
, Run =
$run_index
>"
>>
$temp_exec_log
2>&1
cat
$temp_exec_log
>>
$log_file
2>&1
cat
"
$temp_exec_log
"
>>
"
$log_file
"
2>&1
result
=
PASS
result
=
PASS
for
search_expr
in
"
${
search_expr_array
[@]
}
"
for
search_expr
in
"
${
search_expr_array
[@]
}
"
...
@@ -134,10 +134,12 @@ function test_run() {
...
@@ -134,10 +134,12 @@ function test_run() {
result_string
=
$result_string
" Run_
$run_index
=
$result
"
result_string
=
$result_string
" Run_
$run_index
=
$result
"
if
[
$result
!=
PASS
]
;
then
if
[
$result
!=
PASS
]
;
then
global_result
=
FAIL
global_result
=
FAIL
fi
fi
done
#End of for loop (nindex)
done
#End of for loop (nindex)
echo
"END at
$(
date
)
"
>>
"
$log_file
"
if
[
"
$global_result
"
!=
PASS
]
;
then
if
[
"
$global_result
"
!=
PASS
]
;
then
echo_error
"execution
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
{
$PROPER_DESC
} Run_Result =
\"
$result_string
\"
Result = FAIL"
echo_error
"execution
$test_case_name
.
${
tags_array
[
$tags_array_index
]
}
{
$PROPER_DESC
} Run_Result =
\"
$result_string
\"
Result = FAIL"
...
...
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