Commit graph

12 commits

Author SHA1 Message Date
Petr Vaněk
d847e2d857 libbladeRF_test: Include time.h for compatibility with musl libc 2017-07-05 08:58:17 -07:00
Jon Szymaniak
d6da0f75a8 libbladeRF_test: Fixed capitalization typo in header file name 2015-09-08 13:15:55 -04:00
Jon Szymaniak
bf9f8a62a4 host: Moved device config helpers to host/common
People may find these useful when developing their own tools or
contributions to the bladeRF codebase.
2015-06-21 23:07:40 -04:00
Jon Szymaniak
0789ae9772 libbladeRF_test: Moved wait_for_timestamps() to test_common.c
This will be needed by the scheduled retune test.
2015-06-18 18:34:29 -04:00
Jon Szymaniak
1580e2c322 libbladeRF_test: Pthreads deps needed in Windows for Posix time fns 2015-06-18 18:34:29 -04:00
Jon Szymaniak
8b7a8a3f64 libbladeRF_test: Moved random frequency routine to common test file 2015-06-18 18:34:28 -04:00
Jon Szymaniak
d50fd8dd42 libbladeRF_test: Moved average duration function to common test file 2015-06-18 18:34:28 -04:00
Jon Szymaniak
fd4c464fb1 libbladeRF-test: Fixed help text for gain settings 2015-04-18 13:11:54 -04:00
Jon Szymaniak
730acd80b0 libbladeRF-test: Gains are signed ints, so use str2int()
This is required for the txvga1 gain, which is [-35, -4].

str2int() is used for other gains as well, just for consistency
with their types.
2015-04-18 12:24:56 -04:00
Jon Szymaniak
560798f93d libbladeRF_test: Fixed erroneous/missing assignments in test_common.c 2014-11-18 18:22:46 -05:00
Jon Szymaniak
7218273716 libbladeRF_test: Added common cmdline arg handling and device config
Most of the libbladeRF_test items contain their own command line
argument handling, yielding repeated code and inconsistent invocations.

This commit introduces common command-line argument handling and device
configuration for the most used device parameters.

Future patches will migrate the tests over to using this functionality.
New tests should use this immediately.
2014-11-18 17:09:11 -05:00
Jon Szymaniak
69b327e65c libbladeRF: Moved tests out of libbladeRF/ directory
Because the libbladeRF tests were nested under the libbladeRF build,
they were being built with the include paths, library paths,
etc.  used when building libbladeRF.

This was masking build issues that libbladeRF users might experience,
such as MS Visual Studio 12 and earlier failing due to a lack of a
stdbool.h header. (We now include our stdbool.h, and have an option to
disable our C99 compat includes.)

Therefore, these tests have been moved in the build hierarchy to avoid
cross-pollination of the libbladeRF build environment and the tests'
build environment. This should better represent users building against
libbladeRF, and hopefully bring issues to light earlier.
2014-11-14 15:19:18 -05:00