Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sdptr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
LOFAR2.0
sdptr
Merge requests
!146
Resolve
L2SDP-971
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Resolve
L2SDP-971
L2SDP-971
into
master
Overview
9
Commits
8
Pipelines
3
Changes
7
All threads resolved!
Show all comments
Merged
Pieter Donker
requested to merge
L2SDP-971
into
master
1 year ago
Overview
9
Commits
8
Pipelines
3
Changes
7
All threads resolved!
Show all comments
Expand
Closes
L2SDP-971
0
0
Merge request reports
Compare
master
version 2
fb5c4988
1 year ago
version 1
8a247b64
1 year ago
master (base)
and
latest version
latest version
37835f1f
8 commits,
1 year ago
version 2
fb5c4988
7 commits,
1 year ago
version 1
8a247b64
6 commits,
1 year ago
7 files
+
195
−
113
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
regressiontest/fw_regressiontest.sh
+
37
−
7
Options
@@ -255,32 +255,61 @@ restart_sdptr() {
}
look_for_success
()
{
success
=
"true"
# ignore case
local
orig_nocasematch
=
$(
shopt
-p
nocasematch
;
true
)
shopt
-s
nocasematch
success
=
while
read
-r
line
;
do
if
[[
-n
"
${
line
}
"
]]
;
then
[[
"
${
line
}
"
=
*
"FAILED"
*
]]
&&
success
=
[[
"
${
line
}
"
=
*
"PASSED"
*
]]
&&
success
=
"true"
[[
"
${
line
}
"
=
*
"SUCCESS"
*
]]
&&
success
=
"true"
fi
done
< test.log
done
<
${
logfile_nr
}
# set back original nocasematch
$orig_nocasematch
echo
"
${
success
}
"
}
look_for_failure
()
{
# ignore case
local
orig_nocasematch
=
$(
shopt
-p
nocasematch
;
true
)
shopt
-s
nocasematch
failure
=
while
read
-r
line
;
do
if
[[
-n
"
${
line
}
"
]]
;
then
[[
"
${
line
}
"
=
*
"FAILED"
*
]]
&&
failure
=
"true"
[[
"
${
line
}
"
=
*
"ERROR"
*
]]
&&
failure
=
"true"
fi
done
<
${
logfile_nr
}
# set back original nocasematch
$orig_nocasematch
echo
"
${
failure
}
"
}
run_test
()
{
echo
"Run all tests from fw_tests.txt"
echo
"-"
>>
${
MAILFILE
}
echo
"Run all tests from fw_tests.txt"
>>
${
MAILFILE
}
test_sucess
=
"true"
test_nr
=
0
# substitude env variables
envsubst <
${
TESTFILE
}
>
${
EXPTESTFILE
}
# skip lines starting with #
grep
-v
'^#'
<
${
EXPTESTFILE
}
>
${
EXPTESTFILE_CLEAN
}
while
read
-r
line
;
do
if
[[
-n
"
${
line
}
"
]]
;
then
let
"test_nr = test_nr + 1"
logfile_nr
=
"test
${
test_nr
}
.log"
echo
"Run test:
${
line
}
"
echo
"Run test:
${
line
}
"
>>
${
MAILFILE
}
${
line
}
>
test.log
if
[[
-n
$(
look_for_success
)
]]
;
then
${
line
}
&
>
${
logfile_nr
}
if
[[
-n
$(
look_for_success
)
]]
&&
[[
-z
$(
look_for_failure
)
]]
;
then
echo
"- SUCCESS"
echo
"- SUCCESS"
>>
${
MAILFILE
}
else
@@ -313,7 +342,8 @@ else
test_sucess
=
# run selected options
[[
-n
"
${
flash
}
"
]]
&&
flash_fw
&&
reload_fw
# [[ -n "${flash}" ]] && flash_fw && reload_fw
[[
-n
"
${
flash
}
"
]]
&&
reload_fw
[[
-n
"
${
sdptr
}
"
]]
&&
restart_sdptr
[[
-n
"
${
test
}
"
]]
&&
sleep
20
&&
run_test
Loading