示例#1
0
文件: fp.py 项目: RSpliet/schedcat
    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
文件: fp.py 项目: RSpliet/schedcat
 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
文件: fp.py 项目: RSpliet/schedcat
 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))