Commit f2b9f69a authored by Evangelia Gousiou's avatar Evangelia Gousiou

cleanup

parent 4f518266
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 Binaries are available in this repo, as it is a
since 2011 or even less one-time download Test Suite and not meant for continuous development.
Sources compiled with Ubuntu 12.04.5 LTS
License: GPL v2 or later
License: GPL v2 or later
\ No newline at end of file
#!/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
#!/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
#!/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
#!/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
******************************************************************************* *******************************************************************************
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> - test00: checks GENNUM EEPROM
Author: Samuel Iglesias Gonsalvez <siglesia@cern.ch>
Licence: GPL v2 or later.
Website: http://www.ohwr.org
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. - test02: checks low speed pins of LPC 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.
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.
...@@ -109,7 +109,7 @@ def main (default_directory='.'): ...@@ -109,7 +109,7 @@ def main (default_directory='.'):
print "Time elapsed: " + str(finish - start) + " seconds" print "Time elapsed: " + str(finish - start) + " seconds"
time.sleep(25) time.sleep(150)
ask = ""; ask = "";
tmp_stdout = sys.stdout; tmp_stdout = sys.stdout;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment