Commit Graph

46 Commits

Author SHA1 Message Date
Piotr Krysik 6e1473426d tests: Add test for Ubuntu 20.04
Change-Id: I38bbde4fad7bdc72ad99a1957678539ea813013e
2021-05-03 12:05:56 +02:00
Piotr Krysik 92e4032d6d tests: Remove test that don't work
Change-Id: I9f37131c565e6d87ae94f583d36a2de3d9500b38
2021-05-03 12:05:49 +02:00
Vasil Velichkov e05ada3a78 travis: Test in Ubuntu 18.04 container
- Install gnuradio from the new official PPA repository
  https://launchpad.net/~gnuradio/+archive/ubuntu/gnuradio-releases

Change-Id: Iaa8813ab0ae91b667285ab3ef42ffaa279e3a885
2021-05-03 07:14:00 +02:00
Vasil Velichkov cc8d86320e tests: export VOLK_GENERIC=1 to workaround VOLK's bug 278
Change-Id: Ib9ad4384388e480b8fa2f91e02359c85c749e802
2021-05-03 07:14:00 +02:00
Vasil Velichkov 71fb85cc79 tests: Get more information about CPU and user limits
Change-Id: I0bd3c206f422e11a59070a1c9aace38201ff7c85
2021-05-03 07:14:00 +02:00
Vasil Velichkov fc046c48cd tests: fix some shellcheck errors.
Execute "gnuradio-config-info --version" instead of
"gnuradio-companion --version"

Change-Id: Ia399324ae7a39e120e338c86d449d7c4d54bd866
2021-05-03 07:14:00 +02:00
Vasil Velichkov f90804500f travis: Install gr-osmosdr from the apt repository
Also install liborc-dev as gnuradio depends on it

Change-Id: I0bbc33a39ef1e4edc1636c338e429639e0b15066
2021-05-03 07:14:00 +02:00
Vasil Velichkov 30eb567619 travis: Add /usr/local/lib/python3/dist-packages/ to PYTHONPATH
and run ldconfig after installing gr-iqbal and gr-osmosdr.

Due to debian-python-install patch [1] the OOT packages are installed in
/usr/local/lib/python3/dist-packages but this path is not in the python3
default search paths (sys.path) and because of this importing OOT
modules fails.

[1] https://salsa.debian.org/bottoms/pkg-gnuradio/blob/25e1de07/debian/patches/debian-python-install

Change-Id: I260c82d1a53dab85f7aac86f23e61309d8841255
2021-05-03 07:14:00 +02:00
Vasil Velichkov 65f95f5ae0 travis: Install liborc-0.4-dev needed for gr-iqbal
on Debian Testing and Kali with gnuradio (3.8.0.0-5)

Change-Id: I4512bb734691f553d63cac59fd2c7ba3ccf3f881
2021-05-03 07:14:00 +02:00
Vasil Velichkov 5e0ea65121 travis: gnuradio-companion 3.8 does not have --version parameter
And currently grgsm, gr-osmosdr and gr-iqbal are installed in
/usr/local/lib/python3/dist-packages/ which is not in the default python
search path.

Change-Id: I7e00c84a4b72e9fa1dcf5ac453882f1733724ac0
2021-05-03 07:14:00 +02:00
Vasil Velichkov c00008fa7b travis: Manually install gr-iqbal and gr-osmosdr
Currently these two packages still depends on gnuradio 3.8 in debian
testing and kali rolling.

Change-Id: I4f956577293c48d803b8b45d06ba508792501274
2021-05-03 07:14:00 +02:00
Vasil Velichkov fc99ad4258 travis: Install only python3 packages
Change-Id: I3548fa7340afc63557cc65a7a396ecf96c607806
2021-05-03 07:14:00 +02:00
Vasil Velichkov 333027f406 travis: Test only on distributions with gnuradio 3.8
Change-Id: I05706496687bff2dc4e9a111d8ecd4f878b53c12
2021-05-03 07:14:00 +02:00
Piotr Krysik 332e2be78f tests: Fix Debian and Kali dockerfiles
Change-Id: I61d37cb6882a8ca7bbfc97412c52e745a2e5ec7c
2018-07-28 13:25:00 +02:00
Vasil Velichkov e153e729cd Run tests with CTEST_OUTPUT_ON_FAILURE=1 2018-06-19 09:00:12 +02:00
Vasil Velichkov 8c4eefb205 Add DEBIAN_FRONTEND=noninteractive 2018-06-18 15:11:17 +02:00
Vasil Velichkov 487bf4764e Fix the parallel build with cmake 3.11
Copy UseSWIG.cmake from the gnuradio repository from commit
4433a7703fe3f5713c2200a0f7c11b13510f34cc

This macro is distributed in the Debian's gnuradio-dev package but it's
not available in Fedora/Centos gnuradio-devel package. The gnuradio's
version contains a fix for the parallel build 99a09af05fda6d0bab0cf3724a1c6bf453c71bc7
and some other improvements as well.
2018-06-18 15:11:17 +02:00
Vasil Velichkov 8f4b5ba372 Add CentOS7 docker container 2018-06-18 15:11:17 +02:00
Vasil Velichkov 8b9b88d788 Disable the parallel build on Fedora 26
There is a problem with cmake 3.11.0 and the parallel build fails with
See https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379583050

make[2]: *** No rule to make target 'swig/grgsm_swig.py', needed by 'swig/grgsm_swig.pyc'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:601: swig/CMakeFiles/pygen_swig_43235.dir/all] Error 2
2018-04-16 21:08:50 +02:00
Vasil Velichkov 084b14ea17 Workaround for the grcc failure
See https://github.com/ptrkrysik/gr-gsm/pull/378#issuecomment-379587145

Traceback (most recent call last):
  File "/usr/bin/grcc", line 29, in <module>
    from gnuradio import gr
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/__init__.py", line 41, in <module>
    from runtime_swig import *
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 17, in <module>
    _runtime_swig = swig_import_helper()
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 16, in swig_import_helper
    return importlib.import_module('_runtime_swig')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named _runtime_swig
2018-04-16 21:08:50 +02:00
Vasil Velichkov bc2a23e0e7 Check the gsm0503_xcch_decode return value
- Discard the message when gsm0503_xcch_decode returns -1
- Add automated decrypt test

See https://groups.google.com/d/msg/gr-gsm/9nOkIdrGOck/qTZh47McCQAJ
2018-03-30 22:34:52 +02:00
Piotr Krysik c62f21e44c Fixing Ubuntu 16.04 no libosmocore test 2018-03-22 08:46:25 +01:00
Vasil Velichkov 753afeb5c8 Fix Fedora 26 test failure
On Fedora 26 when gr-gsm is installed in /usr/local/lib in order to work
some paths have to be added to PYTHONPATH and LD_LIBRARY_PATH enviroment
variables

This fixes the following errors
    ImportError: No module named grgsm
    ImportError: No module named _grgsm_swig
    ImportError: libgrgsm-0.41.3.so.0.0.0: cannot open shared object file: No such file or directory
2018-03-22 06:07:24 +01:00
Vasil Velichkov a59de98f24 Add Fedora 26 docker file 2018-03-22 06:07:24 +01:00
Vasil Velichkov 0feb4ab51f Fix the parallel build.
- Override the GR_UNIQUE_TARGET function to not append a hash to the
  target name.
- Add explicit dependency between pygen_apps and _grgsm_swig
  The _grgs_swig needs to be built first because grcc evaluates and
  verify all imports
- Test the parallel build in the docker containers as well
2018-03-22 06:07:24 +01:00
Vasil Velichkov 3f6ab15a7a Install pkg-config in Debian/Ubuntu containers
It is needed to proper detect the grcc full path
2018-03-22 06:07:24 +01:00
Piotr Krysik 6a66fa83b1 Fixed line ending in 'apt install' command in dockerfile 2018-03-04 23:34:32 +01:00
Piotr Krysik 3e7841211c Additional test for gr-gsm building without libosmocore installed 2018-03-04 19:37:28 +01:00
Piotr Krysik 398fd8b934 Added 'make test' as part of docker files and removed it from travis.yml 2018-02-20 13:00:31 +01:00
Piotr Krysik de9db85e34 Added dockerfile for installation from package on Debian testing 2018-02-20 12:59:08 +01:00
Piotr Krysik 5ccedad788 Added docker file for Kali linux 2018-02-20 12:58:45 +01:00
Piotr Krysik d24a494269 tests: Changing the maintainer to myself 2018-02-20 12:58:08 +01:00
Piotr Krysik 48aa9cb88e tests: Removing old and unused docker files 2018-02-20 12:57:11 +01:00
Petter Reinholdtsen cf5718cdac Install package to have rst2man available when testing. 2017-09-20 21:52:31 +02:00
Piotr Krysik 6ed59d0fb7 Dummy commit to trigger travis-ci 2016-07-17 11:18:41 +02:00
Piotr Krysik 259080b08f Corrected decode test 2016-07-17 11:05:36 +02:00
Piotr Krysik 89f3624b74 Updated test to make it more reliable 2016-07-15 14:58:09 +02:00
Piotr Krysik 2a39bb1aea Updated test fixture 2016-07-15 14:26:30 +02:00
Piotr Krysik 815d198dbd Test deb installation - corrections 2016-07-13 17:10:08 +02:00
Piotr Krysik 5bae8940db Test deb installation 2016-07-13 17:00:17 +02:00
Piotr Krysik 50a0e950f2 Removed calls to 'cd' bash command and replaced it with WORKDIR
which should work better according to docker's manual
2016-04-29 15:47:45 +02:00
Your Name bc50ad50f2 Added docker image for building the package (if it prove to be usefull it probably will land into another directory) 2016-04-14 11:14:55 +02:00
Piotr Krysik 7267b708f9 Corrected and shortened the Ubuntu 16.04 dockerfile 2016-04-13 13:01:11 +02:00
Piotr Krysik 1d42544736 Changes in dockerfiles:
-removed (prorbably) unnecessary packages
-added docker file for debian testing
2016-04-13 12:26:41 +02:00
Piotr Krysik d189ad1735 Added Ubuntu 16.04 docker file. Commented out other files from the travis.yml 2016-04-11 22:21:20 +02:00
Piotr Krysik 533f58ad83 Changed arrangment of directories and names of files for testing 2016-04-11 22:20:35 +02:00