Commit graph

283 commits

Author SHA1 Message Date
Ryan Thompson
45e2d8f128 test: bump python requirements.txt versions 2025-04-09 23:17:40 -07:00
Ryan Thompson
16c184b6dc test: added fx3_gpif_iq_packed_tb to regression test 2025-04-09 23:17:40 -07:00
Ryan Thompson
04c1215e02 libbladeRF: test: added packet test 2025-04-09 23:17:40 -07:00
Ryan Thompson
a0937cc50c doc: updated buf size limit in examples and tests 2025-04-09 23:17:40 -07:00
Ryan Thompson
465ea0a49e libbladeRF: test: added streaming test
The streaming test allows for cross testing between MIMO, SISO, TX, RX, meta,
and non-meta configurations.

Example: TX a CW at 50MSPS and at a frequency of (915MHz+50MHz/16) with meta enabled
./output/libbladeRF_test_streaming -te -s 50M

Example: TX and RX at 25MSPS and at a frequency of (915MHz+25MHz/16) without meta enabled
./output/libbladeRF_test_streaming -tr -s 25M
2025-04-09 23:17:40 -07:00
Ryan Thompson
26e91a550e libbladeRF: test: fix gain compare dev init 2024-08-10 18:20:33 -07:00
Ryan Thompson
5e041d0ada libbladeRF: gain_calibration: added serial number to gain cal table
The gain calibration table will compare the serial number in the CSV
with the serial number of the opened device. A warning will be issued
if the serial numbers do not match.
2024-08-07 15:35:55 -05:00
Ryan Thompson
a83272d452 libbladeRF: gain_calibration: added gain cal auto loading support
If the the file location is not specified, using a NULL file location,
then try loading the expected default file name from one of the
find_file locations.

The test renames the files to the default serial based file names and
stores them alongside the binary (one of the find_file locations).
2024-08-07 15:19:06 -05:00
Ryan Thompson
361646af41 libbladeRF: test: added gain calibration test to regression test 2024-08-07 15:19:06 -05:00
Ryan Thompson
dbf50d88d0 libbladeRF: gain_calibration: added RX test sweep 2024-08-07 15:19:06 -05:00
Ryan Thompson
ce634ef649 libbladeRF: gain_calibration: CSV additional parameters supported
The CSV import supports the added parameters and cross test for gain
and channel combinations.
2024-08-07 15:19:06 -05:00
Ryan Thompson
00346bba68 libbladeRF: gain_calibration: new example gain calibration CSVs 2024-08-07 15:19:06 -05:00
Ryan Thompson
cb9dc300b1 libbladeRF: gain_calibration: gain corr set by bladerf_set_gain() 2024-08-07 15:19:06 -05:00
Ryan Thompson
e94f3c7378 libbladeRF: gain_calibration: gain correction implementation
Initially administered through frequency assignment.
2024-08-07 15:19:06 -05:00
Ryan Thompson
228de95650 libbladeRF: gain_calibration: print function added 2024-08-07 15:19:06 -05:00
Ryan Thompson
cdaaa3d915 libbladeRF: gain_calibration: set gain target on load, set_gain, and en 2024-08-07 15:19:06 -05:00
Ryan Thompson
b51057d774 libbladeRF: gain_calibration: load gain implementation
+ Automatic csv to bin file conversion
+ Gain tables for each channel
2024-08-06 18:47:45 -05:00
Ryan Thompson
838c177eba libbladeRF: gain_calibration: load function initialized 2024-08-06 18:47:45 -05:00
Ryan Thompson
f41966dcf8 libbladeRF: gain_calibration: example sweeps added 2024-08-06 18:47:45 -05:00
Ryan Thompson
3583aaca8e libbladeRF: gain_calibration: init
Adds the gain calibration tables along with the prototype for
bladerf_load_gain_calibration(). Also copies the stored calibration
references to the output directory.
2024-08-06 18:47:45 -05:00
Ryan Thompson
afc636073e libbladeRF: test: gain_compare: C test added
This isolates the gain differentiation on init from the CLI or Gnuradio.
Refer to the instructions below.

Instructions:

cd bladeRF/host/libraries/libbladeRF_test/test_gain_compare/
python -m venv env
source ./env/bin/activate
pip3 install -r requirements.txt

cd bladeRF/host/build
make -j`nproc` && sudo make install
./output/libbladeRF_test_gain_compare

cd ../libraries/libbladeRF_test/test_gain_compare/
mv ~/code/bladeRF/host/build/dual_test.bin .

python3 view_binary.py -n 2
2024-08-06 17:31:31 -05:00
Ryan Thompson
09fcacc9bc libbladeRF: test: gain_compare: comparing RX power with MIMO and SISO configs
This provides a way to test MIMO and SISO power measurements through
the CLI. The power for both channels under SISO and MIMO should be
about the same.

Instructions
---------------
python -m venv env
source ./env/bin/activate
pip install -r requirements.txt

Ch1 & Ch2:
bladeRF-cli -s bladerf_script_ch12.sh
python view_binary.py -n 2

Ch1:
bladeRF-cli -s bladerf_script_ch1.sh
python view_binary.py -n 1

Ch2:
bladeRF-cli -s bladerf_script_ch2.sh
python view_binary.py -n 1
2024-08-06 17:31:31 -05:00
Ryan Thompson
a87ad2208b libbladeRF: test: null and status checks in test_common.h 2024-08-06 17:31:31 -05:00
Ryan Thompson
f28c665024 libbladeRF: test: fixed "unrecognized option '--gtest_list_tests'" on make 2024-08-06 17:31:31 -05:00
Ryan Thompson
87337ccec0 libbladeRF: test: test_hwloop target added
Builds the python virtual environment for python based bladeRF tests.
2024-08-06 17:31:31 -05:00
Ryan Thompson
a34f6aaf1b test: added clock select test 2024-08-06 17:30:40 -05:00
Ryan Thompson
044fb54d61 test: libbladeRF: added bladerf_get_gain_modes to gain test
The bladeRF 1.0 should pass at this commit. The bladeRF 2.0 should pass
on the subsequent commit.
2024-08-02 15:25:59 -05:00
Robert Ghilduta
2fbae2c38b libbladeRF_test: bump dependency versions 2024-04-15 00:21:31 -07:00
Ryan Thompson
1034fe0d41 test: added FPGA load test 2024-04-04 08:20:54 -05:00
Ben Morse
e50f28fba3 libbladeRF: fix compliation of regression tests with an older g++ 2024-03-04 14:16:08 -08:00
Ryan Thompson
38ab0517bc test: regression: added cmake version guard for FetchContent 2024-03-01 14:19:44 -06:00
Robert Ghilduta
94f2159c87 windows: add a few missing depencies 2023-11-30 05:11:23 -08:00
Robert Ghilduta
82eabb2f0e libbladeRF_test: bump dependency 2023-11-29 13:16:00 -08:00
Ryan Thompson
1a2d9e3e02 test: txrx_hwloop: fix getopt_long warning by changing 'c' to int
Resolved the compiler warning caused by comparing
getopt_long's return value with a char. Changed 'c'
from char to int to correctly handle -1 return values.

Fixes #952
2023-11-28 23:32:11 +00:00
Ryan Thompson
d0fbe05690 test: device test label turned into libbladeRF label
Not really a need to separate tests as libbladeRF is intended to
interface with the device.
2023-10-31 11:01:04 -05:00
Ryan Thompson
2b655e9423 test: python virtual environment setup added to build output
The setup_env.sh and requirements.txt files are copied to build/output.

Ex:
$ ./output/setup_env.sh
$ source nuand/bin/activate
$ python ./output/libbladeRF_test_txrx_hwloop.py
2023-10-31 11:01:04 -05:00
Ryan Thompson
75fbcb7cd6 test: test_regression conditionally added with cmake option
This prevents the long build time grabbing googletest and abseil libs.
2023-10-31 11:00:34 -05:00
Ryan Thompson
b33a4a711a test: list available test targets with "make test" 2023-10-31 10:29:54 -05:00
Ryan Thompson
237d6240d4 test: test_general renamed to test_regression 2023-10-31 10:28:21 -05:00
Ryan Thompson
32f1378eec test: regression test synthesizes all FPGA images
Defaults
+---------------+------------+----------------+
|     Board     |  Revision  | Supported Size |
+---------------+------------+----------------+
| bladeRF       | hosted     | 40             |
| bladeRF       | hosted     | 115            |
| bladeRF-micro | hosted     | A4             |
| bladeRF-micro | hosted     | A9             |
| bladeRF-micro | wlan       | A9             |
+---------------+------------+----------------+

All (--gtest_also_run_disabled_tests)
+---------------+------------+----------------+
|     Board     |  Revision  | Supported Size |
+---------------+------------+----------------+
| bladeRF       | hosted     | 40             |
| bladeRF       | hosted     | 115            |
| bladeRF       | adsb       | 40             |
| bladeRF       | adsb       | 115            |
| bladeRF       | atsc_tx    | 40             |
| bladeRF       | atsc_tx    | 115            |
| bladeRF       | fsk_bridge | 40             |
| bladeRF       | fsk_bridge | 115            |
| bladeRF       | headless   | 40             |
| bladeRF       | headless   | 115            |
| bladeRF       | qpsk_tx    | 40             |
| bladeRF       | qpsk_tx    | 115            |
| bladeRF-micro | hosted     | A4             |
| bladeRF-micro | hosted     | A9             |
| bladeRF-micro | adsb       | A4             |
| bladeRF-micro | adsb       | A9             |
| bladeRF-micro | foxhunt    | A4             |
| bladeRF-micro | foxhunt    | A9             |
| bladeRF-micro | wlan       | A9             |
+---------------+------------+----------------+
2023-10-31 10:28:21 -05:00
Ryan Thompson
f046180604 host: CMake minimum version bump to 3.5
Accommodates the following warning issued by CMake v3.27.1.

CMake Deprecation Warning:
  Compatibility with CMake < 3.5 will be removed from a 
  future version of CMake.
2023-10-31 10:28:21 -05:00
Ryan Thompson
10ee1f24d8 test: rx_timestamp_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
5dccc5cd97 test: rx_counter_8bit_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
47f1879dad test: loopback_tb added to regression test
No assertions found, therefore the test is empirical at commit. It 
instantiates a sample_stream_tb instance essentially serving as a
sample_stream_tb wrapper.
2023-10-31 10:28:21 -05:00
Ryan Thompson
429c78f1d8 test: fx3_gpif_meta_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
fe9917784e test: fx3_gpif_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
e5e94476e9 test: fx3_gpif_packet_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
e6a0919c3b test: fx3_gpif_meta_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
bf2f3c18c7 test: fx3_gpif_iq_tb added to regression test 2023-10-31 10:28:21 -05:00
Ryan Thompson
94988ca2fd test: fx3_gpif_8bit_tb test matrix generated by googletest 2023-10-31 10:28:21 -05:00