kopia lustrzana https://github.com/rpp0/gr-lora
40 wiersze
901 B
Python
Executable File
40 wiersze
901 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright 2021 gr-lora rpp0.
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
|
|
from gnuradio import gr, gr_unittest
|
|
# from gnuradio import blocks
|
|
try:
|
|
from lora import controller
|
|
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 controller
|
|
|
|
class qa_controller(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 = controller()
|
|
|
|
def test_001_descriptive_test_name(self):
|
|
# set up fg
|
|
self.tb.run()
|
|
# check data
|
|
|
|
|
|
if __name__ == '__main__':
|
|
gr_unittest.run(qa_controller)
|