Ejemplo n.º 1
0
    def test_parallelism1_01(self):
        frame_size = 30
        rep = 3
        enc = map((lambda a: fec.repetition_encoder_make(frame_size*8, rep)), range(0,1))
        dec = map((lambda a: fec.repetition_decoder.make(frame_size*8, rep)), range(0,1))
        threading = 'ordinary'
        self.test = _qa_helper(10*frame_size, enc, dec, threading)
        self.tb.connect(self.test)
        self.tb.run()

        data_in = self.test.snk_input.data()
        data_out =self.test.snk_output.data()

        self.assertEqual(data_in, data_out)
Ejemplo n.º 2
0
    def test_parallelism0_02(self):
        frame_size = 30
        rep = 3
        enc = fec.repetition_encoder_make(frame_size * 8, rep)
        dec = fec.repetition_decoder.make(frame_size * 8, rep)
        threading = 'capillary'
        self.test = _qa_helper(10 * frame_size, enc, dec, threading)
        self.tb.connect(self.test)
        self.tb.run()

        data_in = self.test.snk_input.data()
        data_out = self.test.snk_output.data()

        self.assertEqual(data_in, data_out)
Ejemplo n.º 3
0
    def test_parallelism0_02(self):
        frame_size = 30
        rep = 3
        enc = fec.repetition_encoder_make(frame_size*8, rep)
        dec = fec.repetition_decoder.make(frame_size*8, rep)
        threading = 'capillary'
        self.test = _qa_helper(10*frame_size, enc, dec, threading)
        self.tb.connect(self.test)
        self.tb.run()

        data_in = self.test.snk_input.data()
        data_out =self.test.snk_output.data()

        self.assertEqual(data_in, data_out)
Ejemplo n.º 4
0
    def test_parallelism1_01(self):
        frame_size = 30
        rep = 3
        enc = map((lambda a: fec.repetition_encoder_make(frame_size * 8, rep)),
                  range(0, 1))
        dec = map((lambda a: fec.repetition_decoder.make(frame_size * 8, rep)),
                  range(0, 1))
        threading = 'ordinary'
        self.test = _qa_helper(10 * frame_size, enc, dec, threading)
        self.tb.connect(self.test)
        self.tb.run()

        data_in = self.test.snk_input.data()
        data_out = self.test.snk_output.data()

        self.assertEqual(data_in, data_out)