Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite
Commits
cc5b653b
Commit
cc5b653b
authored
Jun 01, 2011
by
Samuel Iglesias Gonsalvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tps/test: added one-line comment to indicate what checks each test
parent
efe5bdd5
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
7 deletions
+32
-7
README
test/spec/README
+5
-5
test00.py
test/spec/python/test00.py
+4
-0
test01.py
test/spec/python/test01.py
+4
-0
test02.py
test/spec/python/test02.py
+4
-0
test03.py
test/spec/python/test03.py
+5
-1
test05.py
test/spec/python/test05.py
+3
-1
test06.py
test/spec/python/test06.py
+4
-0
test07.py
test/spec/python/test07.py
+3
-0
No files found.
test/spec/README
View file @
cc5b653b
...
...
@@ -16,11 +16,11 @@ This batch of test makes a connectivity test of the SPEC's components.
- test01: checks the low speed pins of FMC connector (low count connector).
- test02: checks the EEPROM of the GENNUM chip.
- test03: loads a firmware file to Flash memory and boots from it. The FW just blink the leds.
- test04: not present
now
. It should be SFP connectivity test.
- test05: check SATA ports and high speed pins on FMC connector (low count connector).
- test06: check Silabs SI570 oscillator.
- test07: check data and address lines of DDR memory.
- test08: check PLL and rest of oscillators on SPEC board.
- test04: not present
yet
. It should be SFP connectivity test.
- test05: check
s
SATA ports and high speed pins on FMC connector (low count connector).
- test06: check
s
Silabs SI570 oscillator.
- test07: check
s
data and address lines of DDR memory.
- test08: check
s
PLL and rest of oscillators on SPEC board.
This tests are made to work stand-alone too. So, it is possible to call each one using 'python test0x.py'
...
...
test/spec/python/test00.py
View file @
cc5b653b
...
...
@@ -6,6 +6,10 @@ import time
import
os
from
tpsexcept
import
*
"""
test00: checks voltage of the power pins in FMC connector.
"""
BASE_GPIO
=
0x40000
BASE_MINIC
=
0xc0000
GPIO_CODR
=
0x0
...
...
test/spec/python/test01.py
View file @
cc5b653b
...
...
@@ -8,6 +8,10 @@ import errno
from
tpsexcept
import
*
# jdgc
"""
test01: checks the low speed pins of FMC connector (low count connector).
"""
tests_path
=
'.'
default_log_path
=
'.'
...
...
test/spec/python/test02.py
View file @
cc5b653b
...
...
@@ -6,6 +6,10 @@ import rr
import
time
import
os
"""
test02: checks the EEPROM of the GENNUM chip.
"""
class
EEPROM_GENNUM
:
LB_CTL
=
0x804
;
...
...
test/spec/python/test03.py
View file @
cc5b653b
...
...
@@ -9,6 +9,10 @@ import os.path
from
ctypes
import
*
from
tpsexcept
import
*
"""
test03: loads a firmware file to Flash memory and boots from it. The FW just blinks the leds.
"""
class
CGennumFlash
:
GENNUM_FLASH
=
1
;
GENNUM_FPGA
=
2
;
...
...
@@ -59,7 +63,7 @@ def main (default_directory='.'):
sys
.
stdout
=
tmp_stdout
;
sys
.
stdin
=
tmp_stdin
;
if
(
ask
==
"N"
)
:
raise
TpsError
(
"Error loading FW through the Flash memory"
);
raise
TpsError
(
"Error loading FW through the Flash memory
or there is a problem with the LEDs
"
);
if
__name__
==
'__main__'
:
main
();
test/spec/python/test05.py
View file @
cc5b653b
...
...
@@ -10,7 +10,9 @@ import time
import
os
from
tpsexcept
import
*
"""
test05: check SATA ports and high speed pins on FMC connector (low count connector).
"""
TX_SIZE
=
32
;
# Number of Bytes to TX
RX_SIZE
=
TX_SIZE
;
# Number of Bytes to RX
...
...
test/spec/python/test06.py
View file @
cc5b653b
...
...
@@ -7,6 +7,10 @@ import time
import
os
from
tpsexcept
import
*
"""
test06: checks Silabs SI570 oscillator.
"""
BASE_GPIO
=
0x40000
BASE_MINIC
=
0xc0000
GPIO_CODR
=
0x0
...
...
test/spec/python/test07.py
View file @
cc5b653b
...
...
@@ -10,6 +10,9 @@ import i2c
import
gn4124
import
os
"""
test07: checks data and address lines of DDR memory.
"""
GN4124_CSR
=
0x0
...
...
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