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
!132
Resolve
L2SDP-879
"B"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Resolve
L2SDP-879
"B"
L2SDP-879b
into
master
Overview
1
Commits
11
Pipelines
3
Changes
10
1 unresolved thread
Hide all comments
Merged
Eric Kooistra
requested to merge
L2SDP-879b
into
master
2 years ago
Overview
1
Commits
11
Pipelines
3
Changes
10
1 unresolved thread
Hide all comments
Expand
Closes
L2SDP-879
0
0
Merge request reports
Compare
master
version 2
ee02473c
2 years ago
version 1
596a6e5b
2 years ago
master (base)
and
latest version
latest version
54ee9744
11 commits,
2 years ago
version 2
ee02473c
8 commits,
2 years ago
version 1
596a6e5b
7 commits,
2 years ago
10 files
+
181
−
106
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
gitlab-ci/hardware_test.py
+
8
−
9
Options
@@ -2,32 +2,31 @@ import unittest
import
os
RBF
=
'
/home/schuur/git/hdl/applications/lofar2/images/lofar2_unb2b_sdp_station_full-r8026db491.rbf
'
#RBF = '/home/schuur/git/hdl/applications/lofar2/images/lofar2_unb2b_sdp_station_bf-rc125dfd6d.rbf'
#
RBF = '/home/schuur/git/hdl/applications/lofar2/images/lofar2_unb2b_sdp_station_bf-rc125dfd6d.rbf'
# The design name that should be read out
IMAGE
=
'
lofar2_unb2b_sdp_station_full-r1684353841
'
IMAGE
=
'
lofar2_unb2b_sdp_station_full-r895903289
'
IMAGE
=
'
lofar2_unb2b_sdp_station_full-r1684353841
'
IMAGE
=
'
lofar2_unb2b_sdp_station_full-r895903289
'
class
HardwareTest
(
unittest
.
TestCase
):
def
setUp
(
self
):
"""
Program the FPGA. Below code will be replaced by calls to the OPC-UA
python client. For now we are using UPE GEAR in a shell script to
Program the FPGA. Below code will be replaced by calls to the OPC-UA
python client. For now we are using UPE GEAR in a shell script to
progam.
"""
os
.
system
(
f
'
./program_fpga.sh
{
RBF
}
'
)
def
test_design_name
(
self
):
"""
Read out the firmware design name and check if the name matches the
programming file. This will be replaced by code that uses the OPC-UA
Read out the firmware design name and check if the name matches the
programming file. This will be replaced by code that uses the OPC-UA
python client.
"""
self
.
assertEqual
(
os
.
system
(
f
'
./read_design_name.sh
{
IMAGE
}
'
),
0
)
if
__name__
==
'
__main__
'
:
unittest
.
main
()
Loading