Loading Common/Servers/PyDewarPositioner/test/Makefile +1 −1 Original line number Diff line number Diff line PY_PACKAGES = DewarPositionerMockers DerotatorSimulator PY_PACKAGES = DewarPositionerMockers # CPP UNIT TESTING SETUP #-------------- Loading SRT/CDB/MACI/Components/RECEIVERS/SRTKBandDerotator/SRTKBandDerotator.xml +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="SRTKBandDerotator" Code="DerotatorSimulator.DerotatorSimulatorImpl" Code="SRTDerotatorSimImpl.SRTDerotatorSimImpl" Type="IDL:alma/Receivers/SRTKBandDerotator:1.0" ImplLang="py" Container="DerotatorContainer" Loading Common/Servers/PyDewarPositioner/test/DerotatorSimulator/__init__.py→SRT/Servers/SRTLPBandReceiver/test/PyLPBandTest/__init__.py +0 −0 File moved. SRT/Servers/SRTLPBandReceiver/test/PyLPBandTest/simunittest.py 0 → 100644 +24 −0 Original line number Diff line number Diff line import os import sys import time import unittest2 import subprocess def run(test_case): # Use the simulators and the testing CDB server_name = 'receiverboard-sim' if test_case.telescope == 'SRT' else '' if not server_name: sys.exit(0) FNULL = open(os.devnull, 'w') try: subprocess.Popen(['%s start' %server_name], stdout=FNULL, stderr=FNULL) time.sleep(1) # Give the server the time to start suite = unittest2.TestSuite() tests = unittest2.TestLoader().loadTestsFromTestCase(test_case) suite.addTests(tests) print 'Running the tests using the antenna simulators...' unittest2.TextTestRunner(verbosity=2).run(suite) finally: subprocess.Popen(['%s stop' %server_name], stdout=FNULL, stderr=FNULL) time.sleep(2) # Give the server the time to stop SRT/Simulators/Components/SRTDerotatorSim/src/Makefile 0 → 100644 +35 −0 Original line number Diff line number Diff line #***************************************** #----------------------------------------- # Marco Buttu <mbuttu@oa-cagliari.inaf.it> #----------------------------------------- #***************************************** PY_PACKAGES = SRTDerotatorSimImpl PY_SCRIPTS = # ----------------- # Include Standards # ----------------- MAKEDIRTMP := $(shell searchFile include/acsMakefile) ifneq ($(MAKEDIRTMP),\#error\#) MAKEDIR := $(MAKEDIRTMP)/include include $(MAKEDIR)/acsMakefile endif # TARGETS all: do_all @echo " . . . 'all' done" clean : clean_all $(RM) *.pyc SRTDerotatorSimImpl/*.pyc $(RM) ../lib ../bin ../config ../doc ../idl ../include \ ../object ../rtai ../test $(RM) $(INTROOT)/lib/python/site-packages/SRTDerotatorSimImpl* @echo " . . . clean done" install : install_all @echo " . . . installation done" #___oOo___ Loading
Common/Servers/PyDewarPositioner/test/Makefile +1 −1 Original line number Diff line number Diff line PY_PACKAGES = DewarPositionerMockers DerotatorSimulator PY_PACKAGES = DewarPositionerMockers # CPP UNIT TESTING SETUP #-------------- Loading
SRT/CDB/MACI/Components/RECEIVERS/SRTKBandDerotator/SRTKBandDerotator.xml +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="SRTKBandDerotator" Code="DerotatorSimulator.DerotatorSimulatorImpl" Code="SRTDerotatorSimImpl.SRTDerotatorSimImpl" Type="IDL:alma/Receivers/SRTKBandDerotator:1.0" ImplLang="py" Container="DerotatorContainer" Loading
Common/Servers/PyDewarPositioner/test/DerotatorSimulator/__init__.py→SRT/Servers/SRTLPBandReceiver/test/PyLPBandTest/__init__.py +0 −0 File moved.
SRT/Servers/SRTLPBandReceiver/test/PyLPBandTest/simunittest.py 0 → 100644 +24 −0 Original line number Diff line number Diff line import os import sys import time import unittest2 import subprocess def run(test_case): # Use the simulators and the testing CDB server_name = 'receiverboard-sim' if test_case.telescope == 'SRT' else '' if not server_name: sys.exit(0) FNULL = open(os.devnull, 'w') try: subprocess.Popen(['%s start' %server_name], stdout=FNULL, stderr=FNULL) time.sleep(1) # Give the server the time to start suite = unittest2.TestSuite() tests = unittest2.TestLoader().loadTestsFromTestCase(test_case) suite.addTests(tests) print 'Running the tests using the antenna simulators...' unittest2.TextTestRunner(verbosity=2).run(suite) finally: subprocess.Popen(['%s stop' %server_name], stdout=FNULL, stderr=FNULL) time.sleep(2) # Give the server the time to stop
SRT/Simulators/Components/SRTDerotatorSim/src/Makefile 0 → 100644 +35 −0 Original line number Diff line number Diff line #***************************************** #----------------------------------------- # Marco Buttu <mbuttu@oa-cagliari.inaf.it> #----------------------------------------- #***************************************** PY_PACKAGES = SRTDerotatorSimImpl PY_SCRIPTS = # ----------------- # Include Standards # ----------------- MAKEDIRTMP := $(shell searchFile include/acsMakefile) ifneq ($(MAKEDIRTMP),\#error\#) MAKEDIR := $(MAKEDIRTMP)/include include $(MAKEDIR)/acsMakefile endif # TARGETS all: do_all @echo " . . . 'all' done" clean : clean_all $(RM) *.pyc SRTDerotatorSimImpl/*.pyc $(RM) ../lib ../bin ../config ../doc ../idl ../include \ ../object ../rtai ../test $(RM) $(INTROOT)/lib/python/site-packages/SRTDerotatorSimImpl* @echo " . . . clean done" install : install_all @echo " . . . installation done" #___oOo___