Commit Graph

33 Commits

Author SHA1 Message Date
Piotr Krysik f0f7183cb7 tests: Fix Debian and Kali dockerfiles
Change-Id: I61d37cb6882a8ca7bbfc97412c52e745a2e5ec7c
2018-09-13 15:35:44 +02:00
Vasil Velichkov f9f7cbd56b Run tests with CTEST_OUTPUT_ON_FAILURE=1 2018-09-13 15:35:44 +02:00
Vasil Velichkov b4a0acf9f5 Add DEBIAN_FRONTEND=noninteractive 2018-09-13 15:35:44 +02:00
Vasil Velichkov e9aaeb14cc 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-09-13 15:35:44 +02:00
Vasil Velichkov c91b128c1d Add CentOS7 docker container 2018-09-13 15:35:44 +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