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
Ryan Thompson
f90181373c
test: Abseil CMake build
2023-10-31 10:28:21 -05:00
Ryan Thompson
d072e2140c
test: verify hdl macro and FX3 IQ 8bit test matrix added
...
General_test catches vsim failure assertions and runs the
fx3_gpif_iq_8bit_tb test matrix.
Test Matrix
+------+---------+---------+
| Mode | EN_CH0 | EN_CH1 |
+------+---------+---------+
| 8b | 0 | 1 |
| 8b | 1 | 0 |
| 8b | 1 | 1 |
| 16b | 0 | 1 |
| 16b | 1 | 0 |
| 16b | 1 | 1 |
+------+---------+---------+
2023-09-27 16:38:58 -05:00
Ryan Thompson
4ca4f0b306
test: Quartus version check in regression test
...
Throws an error if the expected nois2_shell_command.sh has been found,
but in a different version of Quartus. Change NIOS2SHELL directive to
the appropriate nios2_shell_command.sh location.
2023-09-27 16:38:58 -05:00
Ryan Thompson
da67a6e27a
test: add the rest of the bladeRF micro .do files
2023-09-27 16:38:58 -05:00
Ryan Thompson
9f4b55e626
test: test.do wrapper quits ModelSim if passed .do file has fails
...
test.do wraps existing .do files. This will exit vsim with a pass (0)
or fail (1) exit code accessible through the nios_command_shell.
Parameters will be passed to the child file.do.
Usage:
do test.do <file.do> [params]
Example:
~/intelFPGA_lite/20.1/nios2eds/nios2_command_shell.sh
cd ~/bladeRF/hdl/fpga/platforms/bladerf-micro/modelsim
vsim .
do test.do compile.do
2023-09-27 16:38:58 -05:00
Ryan Thompson
67059fa6d5
test: test_sync added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
64bbfd3bbc
test: rx_scheduled added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
e0cda03288
test: fast test implemented in timestamp rx_scheduled
2023-09-27 16:38:57 -05:00
Ryan Thompson
15ca326537
test: rx_gaps added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
de5263d13c
test: fast test implemented in timestamp rx_gaps
2023-09-27 16:38:57 -05:00
Ryan Thompson
7fae389cbf
test: print timestamps added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
447a516a38
test: fast parameter added to test_timestamps
...
Used to limit print, rx_gaps, and rx_scheduled test iterations.
2023-09-27 16:38:57 -05:00
Ryan Thompson
5df19937bd
test: scheduled_retune added to regression test
...
Failing at time of commit.
2023-09-27 16:38:57 -05:00
Ryan Thompson
f784d5000d
test: generate hop set if none provided in scheduled retune
...
Generating a hop set allows us to integrate the test elsewhere.
2023-09-27 16:38:57 -05:00
Ryan Thompson
7df024b240
test: samplerate and threads test added
...
These two tests are failing at time of commit. Disabling threads test by
default in regression test. Refer to issue #705 .
2023-09-27 16:38:57 -05:00
Ryan Thompson
587e9cb253
test: gtest populated check added
2023-09-27 16:38:57 -05:00
Ryan Thompson
b1e7b0d789
test: test target added to CMake
...
"make test" executes the general test after installing libbladeRF.
"make all test" will install and run the test as well.
2023-09-27 16:38:57 -05:00
Ryan Thompson
4f66f0e588
test: test_ctrl sample rate test prints rate hist on fail
...
Keeps track of the last few sample rate assignments and prints them on
a sample rate assignment failure.
2023-09-27 16:38:57 -05:00
Ryan Thompson
e1cd8a9816
test: fast sample rate test implemented in fast_ctrl
2023-09-27 16:38:57 -05:00
Ryan Thompson
8451e160b9
test: frequency and bandwidth tests added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
5fa474348b
test: fast frequency test implemented in fast_ctrl
2023-09-27 16:38:57 -05:00
Ryan Thompson
791598c259
test: fast bandwidth test implemented in fast_ctrl
2023-09-27 16:38:57 -05:00
Ryan Thompson
5ad06c3e2c
test: fast option added to test_ctrl
2023-09-27 16:38:57 -05:00
Ryan Thompson
b09acf0d28
test: rx_meta test added to regression test
...
Performs cross validation across sample formats and SISO/MIMO configs.
2023-09-27 16:38:57 -05:00
Ryan Thompson
3cf456d8dc
test: rx_meta example replicated as a test
2023-09-27 16:38:57 -05:00
Ryan Thompson
9b5ef28f49
test: async test added to regression test
...
Cross validates RX and TX streams.
2023-09-27 16:38:57 -05:00
Ryan Thompson
ad995b06cc
test: test_async exit when TX sample count reached
...
Previously, the TX test relied on SIG_INT exit. Now it relies on the
the [# samples] argument or the pre-defined samples_left.
2023-09-27 16:38:57 -05:00
Ryan Thompson
a53250ff4f
test: digital_loopback added to regression test
...
Performs a cross validation across supported sample formats and
loopback modes.
2023-09-27 16:38:57 -05:00
Ryan Thompson
7611d0619b
test: tx_onoff_nowsched test added to regression test
2023-09-27 16:38:57 -05:00
Ryan Thompson
68e981613c
test: XB-200 test added to regression test
...
This test has been left disabled. It can be enabled by passing
--gtest_also_run_disabled_tests.
2023-09-27 16:38:57 -05:00
Ryan Thompson
f2ceb6768d
test: loopback, rx_mux, and gain tests added to regression test
2023-09-27 16:38:57 -05:00