Commit d313bf3d authored by Matthieu Cattin's avatar Matthieu Cattin

struct: Update paths, works in standalone, fails when launch from pts.

parent e6c22156
......@@ -47,7 +47,7 @@ do
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 23 25
sudo ./pts/pts.py -b FmcAdc100M14b4cha -s $serial -e $extra_serial -t ./tests -l $LOGDIR 00 01 02 03 04 05 06 07 08 09 22 19 23 25
if [ "$nb_test" != "$nb_test_limit" ]
then
......
......@@ -5,4 +5,4 @@ echo "**************************************************************************
echo "* FmcAdc100M14b4cha Test program *"
echo "********************************************************************************"
echo " "
cd ~/pts && sudo ./fmcadc100m14b4cha.sh
cd ~/fmc-adc-tst && sudo ./fmcadc100m14b4cha.sh
......@@ -13,8 +13,13 @@ import time
import random
import math
# Add common modules and libraries location to path
sys.path.append('../pts/')
sys.path.append('../pts/gnurabbit/python/')
sys.path.append('../pts/common/')
sys.path.append('../pts/common/fmceeprom/')
# Import specific modules
#import rr
from sdb import *
from csr import *
from onewire import *
......
......@@ -12,19 +12,13 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import specific modules
from fmc_adc_spec import *
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
"""
test00: Load gateware, verify gateware type and test mezzanine presence line.
"""
......
......@@ -12,19 +12,13 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
import rr
"""
test01: Test 1-wire thermometer and read the unique ID.
......
......@@ -12,19 +12,14 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
"""
test02: Test EEPROM access
......
......@@ -12,19 +12,13 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
import rr
"""
test03: Test mezzanine front-panel LEDs
......
......@@ -11,19 +11,14 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
"""
test04: Test Si570 programmable oscillator
......
......@@ -11,19 +11,14 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
"""
test05: Test LTC2174 ADC
......
......@@ -11,19 +11,13 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
import rr
from PAGE.Agilent33250A import *
......
......@@ -11,20 +11,15 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
from numpy import *
# Import common modules
from ptsexcept import *
import rr
"""
test07: Test offset DACs
......
......@@ -12,15 +12,6 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
......@@ -30,6 +21,10 @@ import find_usb_tty
from PAGE.Agilent33250A import *
from PAGE.SineWaveform import *
# Import common modules
from ptsexcept import *
import rr
"""
test08: Test analogue front-end switches
......
......@@ -12,15 +12,6 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
......@@ -31,6 +22,10 @@ import find_usb_tty
from PAGE.Agilent33250A import *
from PAGE.SineWaveform import *
# Import common modules
from ptsexcept import *
import rr
"""
test09: Test analogue front-end frequency response,
......
......@@ -12,15 +12,6 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from numpy import *
from pylab import *
......@@ -33,6 +24,10 @@ import find_usb_tty
from PAGE.Agilent33250A import *
from PAGE.SineWaveform import *
# Import common modules
from ptsexcept import *
import rr
"""
test19: Calibration
......
......@@ -12,15 +12,6 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
# Import common modules
from ptsexcept import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
......@@ -31,6 +22,10 @@ import find_usb_tty
from PAGE.Agilent33250A import *
from PAGE.SineWaveform import *
# Import common modules
from ptsexcept import *
import rr
"""
test22: Test FMC temperature stability
......
......@@ -13,21 +13,15 @@ import time
import datetime
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
sys.path.append('../../fmceeprom/python/')
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
# Import common modules
from ptsexcept import *
from fmc_eeprom import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
"""
test23: Write IPMI information and calibration data to FMC EEPROM.
......@@ -47,7 +41,7 @@ def main (default_directory='.'):
MANUFACTURER = "CERN"
PRODUCT_NAME = "FmcAdc100m14b4cha"
PART_NUMBER = "EDA-02063-V5-0"
SERIAL_FILENAME = "../../../serial.txt"
SERIAL_FILENAME = "../serial.txt"
SERIAL_FILENAME = os.path.join(default_directory, SERIAL_FILENAME)
CALIBR_FILENAME = "calibration_data.txt"
CALIBR_FILENAME = os.path.join(default_directory, CALIBR_FILENAME)
......
......@@ -12,17 +12,6 @@ import sys
import time
import os
# Add common modules and libraries location to path
sys.path.append('../../../')
sys.path.append('../../../gnurabbit/python/')
sys.path.append('../../../common/')
sys.path.append('../../fmceeprom/python/')
# Import common modules
from ptsexcept import *
from fmc_eeprom import *
import rr
# Import specific modules
from fmc_adc_spec import *
from fmc_adc import *
......@@ -35,6 +24,10 @@ from PAGE.Agilent33250A import *
from PAGE.SineWaveform import *
from ctypes import *
# Import common modules
from ptsexcept import *
from fmc_eeprom import *
import rr
"""
......
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