2021-11-29 16:41:47 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2021-12-03 18:42:25 +00:00
|
|
|
# Copyright 2021 gr-lora rpp0.
|
2021-11-29 16:41:47 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#
|
|
|
|
|
|
|
|
from gnuradio import gr, gr_unittest
|
|
|
|
# from gnuradio import blocks
|
|
|
|
try:
|
|
|
|
from lora import message_socket_sink
|
|
|
|
except ImportError:
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
dirname, filename = os.path.split(os.path.abspath(__file__))
|
|
|
|
sys.path.append(os.path.join(dirname, "bindings"))
|
|
|
|
from lora import message_socket_sink
|
|
|
|
|
|
|
|
class qa_message_socket_sink(gr_unittest.TestCase):
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
self.tb = gr.top_block()
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.tb = None
|
|
|
|
|
|
|
|
def test_instance(self):
|
|
|
|
# FIXME: Test will fail until you pass sensible arguments to the constructor
|
|
|
|
instance = message_socket_sink()
|
|
|
|
|
|
|
|
def test_001_descriptive_test_name(self):
|
|
|
|
# set up fg
|
|
|
|
self.tb.run()
|
|
|
|
# check data
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
gr_unittest.run(qa_message_socket_sink)
|