Пример #1
0
    def test_times(self):
        self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))

        self.assertEqual(self.ts[0].response_time,  1)
        self.assertEqual(self.ts[1].response_time,  1)
        self.assertEqual(self.ts[2].response_time,  3)
        self.assertEqual(self.ts[3].response_time, 14)
Пример #2
0
    def test_times(self):
        self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))

        self.assertEqual(self.ts[0].response_time,  1)
        self.assertEqual(self.ts[1].response_time,  1)
        self.assertEqual(self.ts[2].response_time,  3)
        self.assertEqual(self.ts[3].response_time, 14)
Пример #3
0
 def test_bound_is_integral(self):
     self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))
     self.assertTrue(is_integral(self.ts[0].response_time))
     self.assertTrue(is_integral(self.ts[1].response_time))
     self.assertTrue(is_integral(self.ts[2].response_time))
     self.assertTrue(is_integral(self.ts[3].response_time))
Пример #4
0
 def test_procs(self):
     self.assertFalse(ber.is_schedulable(1, self.ts, dont_use_slack=True))
     self.assertFalse(ber.is_schedulable(2, self.ts, dont_use_slack=True))
     self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))
Пример #5
0
 def test_procs(self):
     self.assertFalse(ber.is_schedulable(1, self.ts, dont_use_slack=True))
     self.assertFalse(ber.is_schedulable(2, self.ts, dont_use_slack=True))
     self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))
Пример #6
0
 def test_bound_is_integral(self):
     self.assertTrue(ber.is_schedulable(3, self.ts, dont_use_slack=True))
     self.assertTrue(is_integral(self.ts[0].response_time))
     self.assertTrue(is_integral(self.ts[1].response_time))
     self.assertTrue(is_integral(self.ts[2].response_time))
     self.assertTrue(is_integral(self.ts[3].response_time))