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
f2b9f69a
Commit
f2b9f69a
authored
Dec 11, 2019
by
Evangelia Gousiou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
4f518266
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
257 deletions
+33
-257
README
README
+6
-5
fmcadc100m14b4cha.sh
fmcadc100m14b4cha.sh
+0
-72
fmcadc200k16b11cha.sh
fmcadc200k16b11cha.sh
+0
-40
fmcadc200k16b11cha_6ch.sh
fmcadc200k16b11cha_6ch.sh
+0
-40
fmcdio5chttla.sh
fmcdio5chttla.sh
+0
-77
README
test/spec/README
+26
-22
test03.py
test/spec/python/test03.py
+1
-1
No files found.
README
View file @
f2b9f69a
This is Production Test Suite project.
This is Production Test Suite project
for BE/CO/HT automated hardware testing since 2011.
Supporting automated hardware testing at BE/CO/HT
since 2011 or even less
License: GPL v2 or later
Binaries are available in this repo, as it is a
one-time download Test Suite and not meant for continuous development.
Sources compiled with Ubuntu 12.04.5 LTS
License: GPL v2 or later
\ No newline at end of file
fmcadc100m14b4cha.sh
deleted
100755 → 0
View file @
4f518266
#!/bin/sh
# Copyright CERN, 2011
# Author: Matthieu Cattin <matthieu.cattin@cern.ch>
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
LOGDIR
=
./log_fmcadc100m14b4cha
mkdir
-p
$LOGDIR
sudo rm
-fr
$LOGDIR
/pts
*
serial
=
$1
if
[
x
$1
=
x
""
]
;
then
echo
-n
"Please scan CERN serial number bar-code, then press [ENTER]: "
read
serial
fi
if
[
x
$serial
=
x
""
]
;
then
serial
=
0000
fi
if
[
-e
serial.txt
]
;
then
sudo rm
-f
serial.txt
fi
echo
$serial
>>
serial.txt
extra_serial
=
$2
if
[
x
$2
=
x
""
]
;
then
echo
-n
"If needed input extra serial number and press [ENTER] OR just press [ENTER]: "
read
extra_serial
fi
if
[
x
$extra_serial
=
x
""
]
;
then
extra_serial
=
0000
fi
echo
" "
nb_test_limit
=
2
nb_test
=
1
while
[
"
$nb_test
"
-le
"
$nb_test_limit
"
]
do
echo
"--------------------------------------------------------------"
echo
"Test series run
$nb_test
out of
$nb_test_limit
"
echo
" "
sudo
./pts.py
-b
FmcAdc100M14b4cha
-s
$serial
-e
$extra_serial
-t
./test/fmcadc100m14b4cha/python
-l
$LOGDIR
00 01 02 03 04 05 06 07 08 09 22 19 20
if
[
"
$nb_test
"
!=
"
$nb_test_limit
"
]
then
echo
" "
echo
-n
"Do you want to run the test series again [y,n]? "
read
reply
if
[
"
$reply
"
!=
"y"
]
then
break
fi
fi
nb_test
=
$((
$nb_test
+
1
))
done
echo
"--------------------------------------------------------------"
echo
" "
echo
-n
"End of the test, do you want to switch the computer OFF? [y,n]"
read
reply
if
[
"
$reply
"
=
"y"
]
then
sudo
halt
fi
\ No newline at end of file
fmcadc200k16b11cha.sh
deleted
100755 → 0
View file @
4f518266
#!/bin/sh
# Copyright CERN, 2011
# Author: Ross Millar <ross.millar@cern.ch>
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
LOGDIR
=
./log_fmcadc200k16b11cha
mkdir
-p
$LOGDIR
sudo rm
-fr
$LOGDIR
/pts
*
serial
=
$1
if
[
x
$1
=
x
""
]
;
then
echo
-n
"Please, input SERIAL number: "
read
serial
fi
if
[
x
$serial
=
x
""
]
;
then
serial
=
0000
fi
extra_serial
=
$2
if
[
x
$2
=
x
""
]
;
then
echo
-n
"Please, input extra SERIAL number: "
read
extra_serial
fi
if
[
x
$extra_serial
=
x
""
]
;
then
extra_serial
=
0000
fi
echo
-n
"--------------------------------------------------------------
\n
"
sudo
./pts.py
-b
FmcAdc200k16b11cha
-s
$serial
-e
$extra_serial
-t
./test/fmcadc200k16b11cha/python
-l
$LOGDIR
00 01 02 03 04 05 06
echo
-n
"Press enter to exit... "
read
tmp
fmcadc200k16b11cha_6ch.sh
deleted
100644 → 0
View file @
4f518266
#!/bin/sh
# Copyright CERN, 2011
# Author: Ross Millar <ross.millar@cern.ch>
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
LOGDIR
=
./log_fmcadc200k16b11cha
mkdir
-p
$LOGDIR
sudo rm
-fr
$LOGDIR
/pts
*
serial
=
$1
if
[
x
$1
=
x
""
]
;
then
echo
-n
"Please, input SERIAL number: "
read
serial
fi
if
[
x
$serial
=
x
""
]
;
then
serial
=
0000
fi
extra_serial
=
$2
if
[
x
$2
=
x
""
]
;
then
echo
-n
"Please, input extra SERIAL number: "
read
extra_serial
fi
if
[
x
$extra_serial
=
x
""
]
;
then
extra_serial
=
0000
fi
echo
-n
"--------------------------------------------------------------
\n
"
sudo
./pts.py
-b
FmcAdc200k16b11cha
-s
$serial
-e
$extra_serial
-t
./test/fmcadc200k16b11cha/python
-l
$LOGDIR
08 01 09 03 04 05 06
echo
-n
"Press enter to exit... "
read
tmp
fmcdio5chttla.sh
deleted
100755 → 0
View file @
4f518266
#!/bin/sh
# Copyright CERN, 2012 (Seven Solutions S.L.)
# Author: Richard Carrillo <rcarrillo(AT)sevensols.com>
# Licence: GPL v2 or later.
# Website: http://www.ohwr.org
# Website: http://www.sevensols.com
# Version: 1.0 (Last modifications: 29/4/2012)
LOGDIR
=
./log_fmcdio5chttla
mkdir
-p
$LOGDIR
sudo rm
-fr
$LOGDIR
/pts
*
serial
=
$1
if
[
x
$1
=
x
""
]
;
then
echo
-n
"Please scan CERN serial number bar-code, then press [ENTER]: "
read
serial
fi
if
[
x
$serial
=
x
""
]
;
then
serial
=
0000
fi
if
[
-e
serial.txt
]
;
then
sudo rm
-f
serial.txt
fi
echo
$serial
>>
serial.txt
extra_serial
=
$2
if
[
x
$2
=
x
""
]
;
then
echo
-n
"If needed, input extra serial number and press [ENTER], OR just press [ENTER]: "
read
extra_serial
fi
if
[
x
$extra_serial
=
x
""
]
;
then
extra_serial
=
0000
fi
echo
" "
nb_test_limit
=
2
nb_test
=
1
while
[
"
$nb_test
"
-le
"
$nb_test_limit
"
]
do
echo
"--------------------------------------------------------------"
echo
"Test series run
$nb_test
out of
$nb_test_limit
"
echo
" "
sudo
./pts.py
-b
FMC-DIO-5chTTLa
-s
$serial
-e
$extra_serial
-t
./test/fmcdio5chttla/python
-l
$LOGDIR
00 01 02 03 04 05 06 07 08
if
[
"
$nb_test
"
!=
"
$nb_test_limit
"
]
then
echo
" "
echo
-n
"Do you want to run the test series again [y,n]? "
read
reply
if
[
"
$reply
"
!=
"y"
]
then
break
fi
fi
nb_test
=
$((
$nb_test
+
1
))
done
echo
"--------------------------------------------------------------"
echo
" "
echo
-n
"End of the test, do you want to switch the computer OFF? [y,n]"
read
reply
if
[
"
$reply
"
=
"y"
]
then
sudo
halt
fi
test/spec/README
View file @
f2b9f69a
*******************************************************************************
SPEC's tests for TPS environment
PTS SPEC150
*******************************************************************************
CERN, BE/CO/HT. Created on 2011
Basic connectivity tests of the SPEC components.
Author: Carlos Gil Soriano <cgilsori@cern.ch>
Author: Samuel Iglesias Gonsalvez <siglesia@cern.ch>
Licence: GPL v2 or later.
Website: http://www.ohwr.org
- test00: checks GENNUM EEPROM
This batch of test makes a connectivity test of the SPEC's components.
- test01: checks voltage of the power pins of the LPC FMC connector
- test00: checks voltage of the power pins in FMC connector.
- 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 blinks the front-panel leds using the buttons.
- test04: checks the EEPROM present in the SFP connector. Reads the type.
- test05: checks SATA ports and high speed pins on FMC connector (low count connector).
- test06: checks Silabs SI570 oscillator.
- test07: checks data and address lines of DDR memory.
- test08: checks PLL and rest of oscillators on SPEC board.
- test09: reads Temperature sensor's unique ID.
- test10: checks USB UART connectivity.
- test11: not implemented. It can be used to add another test.
- test12: overwrites the GENNUM's EEPROM to setup VENDOR ID and DEVICE ID to the correct values.
- test02: checks low speed pins of LPC FMC connector
This tests are made to work stand-alone too. So, it is possible to call each one using 'python test0x.py'
- test03: loads a firmware file to Flash memory and boots from it;
the FW blinks the front-panel and the on-board leds through the on-board buttons
These tests are designed to use Python 2.7 or higher.
- test04: checks the SFP EEPROM
- test05: checks SATA ports and high speed pins of the LPC FMC connector
- test06: checks SI570 oscillator
- test07: checks data and address lines of DDR memory
- test08: checks PLL and rest of oscillators on SPEC board
- test09: reads Temperature sensor's unique ID
- test10: checks USB UART connectivity
- test11: not implemented; it can be used to add another test.
- test12: overwrites GENNUM EEPROM with VENDOR ID, DEVICE ID of SPEC Board
This tests are made to work stand-alone too; use the pts.py -h.
These tests are designed to use Python 2.7 or higher.
test/spec/python/test03.py
View file @
f2b9f69a
...
...
@@ -109,7 +109,7 @@ def main (default_directory='.'):
print
"Time elapsed: "
+
str
(
finish
-
start
)
+
" seconds"
time
.
sleep
(
25
)
time
.
sleep
(
150
)
ask
=
""
;
tmp_stdout
=
sys
.
stdout
;
...
...
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