forked from M-Labs/artiq
test: only test_rpc_timing actually requires ARTIQ_LOW_LATENCY
This commit is contained in:
parent
9ffb6867e2
commit
4cc9bd33ce
|
@ -6,9 +6,6 @@ from artiq.experiment import *
|
||||||
from artiq.test.hardware_testbench import ExperimentCase
|
from artiq.test.hardware_testbench import ExperimentCase
|
||||||
|
|
||||||
|
|
||||||
artiq_low_latency = os.getenv("ARTIQ_LOW_LATENCY")
|
|
||||||
|
|
||||||
|
|
||||||
class _Transfer(EnvExperiment):
|
class _Transfer(EnvExperiment):
|
||||||
def build(self):
|
def build(self):
|
||||||
self.setattr_device("core")
|
self.setattr_device("core")
|
||||||
|
@ -52,24 +49,18 @@ class _Transfer(EnvExperiment):
|
||||||
|
|
||||||
|
|
||||||
class TransferTest(ExperimentCase):
|
class TransferTest(ExperimentCase):
|
||||||
@unittest.skipUnless(artiq_low_latency,
|
|
||||||
"timings are dependent on CPU load and network conditions")
|
|
||||||
def test_host_to_device(self):
|
def test_host_to_device(self):
|
||||||
exp = self.create(_Transfer)
|
exp = self.create(_Transfer)
|
||||||
host_to_device_rate = exp.host_to_device()
|
host_to_device_rate = exp.host_to_device()
|
||||||
print(host_to_device_rate, "B/s")
|
print(host_to_device_rate, "B/s")
|
||||||
self.assertGreater(host_to_device_rate, 2.0e6)
|
self.assertGreater(host_to_device_rate, 2.0e6)
|
||||||
|
|
||||||
@unittest.skipUnless(artiq_low_latency,
|
|
||||||
"timings are dependent on CPU load and network conditions")
|
|
||||||
def test_device_to_host(self):
|
def test_device_to_host(self):
|
||||||
exp = self.create(_Transfer)
|
exp = self.create(_Transfer)
|
||||||
device_to_host_rate = exp.device_to_host()
|
device_to_host_rate = exp.device_to_host()
|
||||||
print(device_to_host_rate, "B/s")
|
print(device_to_host_rate, "B/s")
|
||||||
self.assertGreater(device_to_host_rate, 2.3e6)
|
self.assertGreater(device_to_host_rate, 2.3e6)
|
||||||
|
|
||||||
@unittest.skipUnless(artiq_low_latency,
|
|
||||||
"timings are dependent on CPU load and network conditions")
|
|
||||||
def test_device_to_host_array(self):
|
def test_device_to_host_array(self):
|
||||||
exp = self.create(_Transfer)
|
exp = self.create(_Transfer)
|
||||||
rate = exp.device_to_host_array()
|
rate = exp.device_to_host_array()
|
||||||
|
@ -95,8 +86,6 @@ class _KernelOverhead(EnvExperiment):
|
||||||
|
|
||||||
|
|
||||||
class KernelOverheadTest(ExperimentCase):
|
class KernelOverheadTest(ExperimentCase):
|
||||||
@unittest.skipUnless(artiq_low_latency,
|
|
||||||
"timings are dependent on CPU load and network conditions")
|
|
||||||
def test_kernel_overhead(self):
|
def test_kernel_overhead(self):
|
||||||
exp = self.create(_KernelOverhead)
|
exp = self.create(_KernelOverhead)
|
||||||
kernel_overhead = exp.kernel_overhead()
|
kernel_overhead = exp.kernel_overhead()
|
||||||
|
|
|
@ -527,8 +527,6 @@ class CoredeviceTest(ExperimentCase):
|
||||||
with self.assertRaises(exceptions.WatchdogExpired):
|
with self.assertRaises(exceptions.WatchdogExpired):
|
||||||
self.execute(Watchdog)
|
self.execute(Watchdog)
|
||||||
|
|
||||||
@unittest.skipUnless(artiq_low_latency,
|
|
||||||
"timings are dependent on CPU load and network conditions")
|
|
||||||
def test_time_keeps_running(self):
|
def test_time_keeps_running(self):
|
||||||
self.execute(TimeKeepsRunning)
|
self.execute(TimeKeepsRunning)
|
||||||
t1 = self.dataset_mgr.get("time_at_start")
|
t1 = self.dataset_mgr.get("time_at_start")
|
||||||
|
|
|
@ -6,9 +6,6 @@ from artiq.experiment import *
|
||||||
from artiq.test.hardware_testbench import ExperimentCase
|
from artiq.test.hardware_testbench import ExperimentCase
|
||||||
|
|
||||||
|
|
||||||
artiq_low_latency = os.getenv("ARTIQ_LOW_LATENCY")
|
|
||||||
|
|
||||||
|
|
||||||
class _Stress(EnvExperiment):
|
class _Stress(EnvExperiment):
|
||||||
def build(self):
|
def build(self):
|
||||||
self.setattr_device("core")
|
self.setattr_device("core")
|
||||||
|
|
Loading…
Reference in New Issue