Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
3d8b459a
Commit
3d8b459a
authored
17 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Bug 335: further development of TBBDriver
parent
0ffa0825
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MAC/APL/PIC/TBBDriver/test/TBBTest.cc
+6
-6
6 additions, 6 deletions
MAC/APL/PIC/TBBDriver/test/TBBTest.cc
MAC/APL/PIC/TBBDriver/test/TPStub.cc
+2
-2
2 additions, 2 deletions
MAC/APL/PIC/TBBDriver/test/TPStub.cc
with
8 additions
and
8 deletions
MAC/APL/PIC/TBBDriver/test/TBBTest.cc
+
6
−
6
View file @
3d8b459a
...
@@ -45,7 +45,7 @@ using namespace TBB_Test;
...
@@ -45,7 +45,7 @@ using namespace TBB_Test;
TBBTest
::
TBBTest
(
string
name
)
TBBTest
::
TBBTest
(
string
name
)
:
GCFTask
((
State
)
&
TBBTest
::
initial
,
name
),
Test
(
name
)
:
GCFTask
((
State
)
&
TBBTest
::
initial
,
name
),
Test
(
name
)
{
{
registerProtocol
(
TBB_PROTOCOL
,
TBB_PROTOCOL_
signalnames
);
GCF
::
TM
::
registerProtocol
(
TBB_PROTOCOL
,
TBB_PROTOCOL_
STRINGS
);
itsClient
.
init
(
*
this
,
MAC_SVCMASK_TBBDRIVER
,
GCFPortInterface
::
SAP
,
TBB_PROTOCOL
);
itsClient
.
init
(
*
this
,
MAC_SVCMASK_TBBDRIVER
,
GCFPortInterface
::
SAP
,
TBB_PROTOCOL
);
...
@@ -386,7 +386,7 @@ GCFEvent::TResult TBBTest::test006(GCFEvent& e, GCFPortInterface& port)
...
@@ -386,7 +386,7 @@ GCFEvent::TResult TBBTest::test006(GCFEvent& e, GCFPortInterface& port)
/* start of the test sequence */
/* start of the test sequence */
TBBReadEvent
sw
;
TBBReadEvent
sw
;
sw
.
channel
=
1
;
sw
.
rcu
=
1
;
TESTC_ABORT
(
itsClient
.
send
(
sw
),
TBBTest
::
final
);
TESTC_ABORT
(
itsClient
.
send
(
sw
),
TBBTest
::
final
);
}
}
...
@@ -437,8 +437,6 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port)
...
@@ -437,8 +437,6 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port)
/* start of the test sequence */
/* start of the test sequence */
TBBModeEvent
sw
;
TBBModeEvent
sw
;
sw
.
board
=
itsboardmask
;
// boards tot test
TESTC_ABORT
(
itsClient
.
send
(
sw
),
TBBTest
::
final
);
TESTC_ABORT
(
itsClient
.
send
(
sw
),
TBBTest
::
final
);
}
}
break
;
break
;
...
@@ -447,7 +445,9 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port)
...
@@ -447,7 +445,9 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port)
{
{
TBBModeAckEvent
ack
(
e
);
TBBModeAckEvent
ack
(
e
);
TESTC_ABORT
(
ack
.
status_mask
==
TBB_SUCCESS
,
TBBTest
::
final
);
for
(
int
boardnr
=
0
;
boardnr
<
MAX_N_TBBBOARDS
;
boardnr
++
)
{
TESTC_ABORT
(
ack
.
status_mask
[
boardnr
]
==
TBB_SUCCESS
,
TBBTest
::
final
);
}
LOG_INFO_STR
(
"Udp test OK"
);
LOG_INFO_STR
(
"Udp test OK"
);
TRAN
(
TBBTest
::
test008
);
TRAN
(
TBBTest
::
test008
);
...
@@ -510,7 +510,7 @@ GCFEvent::TResult TBBTest::test008(GCFEvent& e, GCFPortInterface& port)
...
@@ -510,7 +510,7 @@ GCFEvent::TResult TBBTest::test008(GCFEvent& e, GCFPortInterface& port)
LOG_INFO_STR
(
formatString
(
"mp2version = 0X%08X"
,
ack
.
mp2version
[
cnt
]));
LOG_INFO_STR
(
formatString
(
"mp2version = 0X%08X"
,
ack
.
mp2version
[
cnt
]));
LOG_INFO_STR
(
formatString
(
"mp3version = 0X%08X"
,
ack
.
mp3version
[
cnt
]));
LOG_INFO_STR
(
formatString
(
"mp3version = 0X%08X"
,
ack
.
mp3version
[
cnt
]));
}
}
LOG_INFO_STR
(
formatString
(
"Ack status = 0X%08X"
,
ack
.
status_mask
));
//
LOG_INFO_STR(formatString ("Ack status = 0X%08X", ack.status_mask));
for
(
int
boardnr
=
0
;
boardnr
<
MAX_N_TBBBOARDS
;
boardnr
++
)
{
for
(
int
boardnr
=
0
;
boardnr
<
MAX_N_TBBBOARDS
;
boardnr
++
)
{
TESTC_ABORT
(
ack
.
status_mask
[
boardnr
]
==
TBB_SUCCESS
,
TBBTest
::
final
);
TESTC_ABORT
(
ack
.
status_mask
[
boardnr
]
==
TBB_SUCCESS
,
TBBTest
::
final
);
}
}
...
...
This diff is collapsed.
Click to expand it.
MAC/APL/PIC/TBBDriver/test/TPStub.cc
+
2
−
2
View file @
3d8b459a
...
@@ -48,8 +48,8 @@ using namespace TBB_Test;
...
@@ -48,8 +48,8 @@ using namespace TBB_Test;
TPStub
::
TPStub
(
string
name
)
TPStub
::
TPStub
(
string
name
)
:
GCFTask
((
State
)
&
TPStub
::
initial
,
name
),
Test
(
name
)
:
GCFTask
((
State
)
&
TPStub
::
initial
,
name
),
Test
(
name
)
{
{
registerProtocol
(
TP_PROTOCOL
,
TP_PROTOCOL_
signalnames
);
GCF
::
TM
::
registerProtocol
(
TP_PROTOCOL
,
TP_PROTOCOL_
STRINGS
);
char
addrstr
[
64
];
char
addrstr
[
64
];
snprintf
(
addrstr
,
64
,
"TPStub.MAC_ADDR_TBBDRIVER"
);
snprintf
(
addrstr
,
64
,
"TPStub.MAC_ADDR_TBBDRIVER"
);
...
...
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