summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-08-15 11:49:05 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-08-15 11:49:05 +0200
commitd38c3a191c44806d87584b7bd6052072820bcea3 (patch)
tree2f280d7612212a6d9b8d76f36956255aeff75d69 /test
parent45952580a0acd645d032509908d0a82f72bd9c74 (diff)
Fix generate-dfa-benchmark leaving out benchmark parts when splitting runs
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_timingharness.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_timingharness.py b/test/test_timingharness.py
index ac19a29..6479f0a 100755
--- a/test/test_timingharness.py
+++ b/test/test_timingharness.py
@@ -5,7 +5,7 @@ import unittest
class TestModels(unittest.TestCase):
def test_model_singlefile_rf24(self):
- raw_data = TimingData(['test-data/20190726_150423_nRF24_no-rx.json'])
+ raw_data = TimingData(['test-data/20190815_111745_nRF24_no-rx.json'])
preprocessed_data = raw_data.get_preprocessed_data(verbose = False)
by_name, parameters, arg_count = pta_trace_to_aggregate(preprocessed_data)
model = AnalyticModel(by_name, parameters, arg_count, verbose = False)
@@ -14,7 +14,7 @@ class TestModels(unittest.TestCase):
self.assertAlmostEqual(static_model('setPALevel', 'duration'), 146, places=0)
self.assertAlmostEqual(static_model('setRetries', 'duration'), 73, places=0)
self.assertAlmostEqual(static_model('setup', 'duration'), 6533, places=0)
- self.assertAlmostEqual(static_model('write', 'duration'), 12400, places=0)
+ self.assertAlmostEqual(static_model('write', 'duration'), 12634, places=0)
for transition in 'setPALevel setRetries setup write'.split(' '):
self.assertAlmostEqual(model.stats.param_dependence_ratio(transition, 'duration', 'channel'), 0, places=2)
@@ -25,7 +25,7 @@ class TestModels(unittest.TestCase):
self.assertEqual(param_info('setup', 'duration'), None)
self.assertEqual(param_info('write', 'duration')['function']._model_str, '0 + regression_arg(0) + regression_arg(1) * parameter(max_retry_count) + regression_arg(2) * parameter(retry_delay) + regression_arg(3) * parameter(max_retry_count) * parameter(retry_delay)')
- self.assertAlmostEqual(param_info('write', 'duration')['function']._regression_args[0], 1016, places=0)
+ self.assertAlmostEqual(param_info('write', 'duration')['function']._regression_args[0], 1163, places=0)
self.assertAlmostEqual(param_info('write', 'duration')['function']._regression_args[1], 464, places=0)
self.assertAlmostEqual(param_info('write', 'duration')['function']._regression_args[2], 1, places=0)
self.assertAlmostEqual(param_info('write', 'duration')['function']._regression_args[3], 1, places=0)