BatchDrake / sigutils

Small signal processing utility library
https://batchdrake.github.io/sigutils
GNU General Public License v3.0
76 stars 29 forks source link

5 tests fail #32

Open yurivict opened 1 year ago

yurivict commented 1 year ago
===>  Testing for sigutils-0.1.0.156
cd /usr/ports/comms/sigutils/work/.build && ./sutest
[i] su_test_run:409: Sigutils library unit test starting: Sat Jan  7 00:45:27 2023
[i] su_test_run:410:   Configured buffer size: 131072 elements
[i] su_test_run:411:   Dumping buffers: no
[i] su_test_run:412:   Size of SUFLOAT: 32 bits
[t:  0] su_test_ncqo: start
[t:  0] su_test_ncqo: assertion failed
[t:  0] su_test_ncqo: !((fabsf(su_test_buffer_mean(buffer, (32 * 4096)) - 0) <= 1e-15f))
[t:  0] su_test_ncqo: end (3.936 ms)
[t:  0] TEST FAILED
[t:  1] su_test_butterworth_lpf: start
[t:  1] su_test_butterworth_lpf: end (20.092 ms)
[t:  2] su_test_agc_transient: start
[t:  2] su_test_agc_transient: end (5.516 ms)
[t:  3] su_test_agc_steady_rising: start
[t:  3] su_test_agc_steady_rising: end (10.613 ms)
[t:  4] su_test_agc_steady_falling: start
[t:  4] su_test_agc_steady_falling: assertion failed
[t:  4] su_test_agc_steady_falling: !(peak <= peak_high)
[t:  4] su_test_agc_steady_falling: assertion failed
[t:  4] su_test_agc_steady_falling: !(su_test_check_peak( ctx, input, ctx->params->buffer_size, 2 * (1. / 0.025), 0.7 * 0.9, 0.7 * 1.1))
[t:  4] su_test_agc_steady_falling: end (9.127 ms)
[t:  4] TEST FAILED
[t:  5] su_test_pll: start
[t:  5] su_test_pll: end (9.075 ms)
[t:  6] su_test_costas_lock: start
[i] su_test_costas_lock:72: Transmitting a noisy 0.01 hcps signal...
[i] su_test_costas_lock:73:   AWGN amplitude: -6.0206 dBFS
[i] su_test_costas_lock:101:   Original frequency: 0.01
[i] su_test_costas_lock:102:   Discovered frequency: 0.00981537
[i] su_test_costas_lock:103:   Relative frequency error: -0.0184626
[t:  6] su_test_costas_lock: end (14.942 ms)
[t:  7] su_test_costas_bpsk: start
[i] su_test_costas_bpsk:194: Modulating 0x414c4f48 in BPSK...
[i] su_test_costas_bpsk:195:   SNR: 20 dBFS
[i] su_test_costas_bpsk:245: RX: 0x414c4f48 = ~0xbeb3b0b7 in 131072 samples
[t:  7] su_test_costas_bpsk: end (219.635 ms)
[t:  8] su_test_costas_qpsk: start
[i] __su_test_costas_qpsk:419: Initial frequency error: 4.88283e-05
[i] __su_test_costas_qpsk:430: Modulating 0x414c4f48 in QPSK...
[i] __su_test_costas_qpsk:431:   SNR: 70 dBFS
[i] __su_test_costas_qpsk:482: RX: 0xebe6e5e2 in 131072 samples
[i] __su_test_costas_qpsk:484: RX: message decoded after 7 permutations
[t:  8] su_test_costas_qpsk: end (218.857 ms)
[t:  9] su_test_costas_qpsk_noisy: start
[i] __su_test_costas_qpsk:419: Initial frequency error: 0
[i] __su_test_costas_qpsk:430: Modulating 0x414c4f48 in QPSK...
[i] __su_test_costas_qpsk:431:   SNR: 56 dBFS
[i] __su_test_costas_qpsk:482: RX: 0xebe6e5e3 in 131072 samples
[t:  9] su_test_costas_qpsk_noisy: assertion failed
[t:  9] su_test_costas_qpsk_noisy: !(permutations != -1)
[t:  9] su_test_costas_qpsk_noisy: end (218.758 ms)
[t:  9] TEST FAILED
[t: 10] su_test_clock_recovery: start
[i] __su_test_clock_recovery:116: Initial frequency error: 4.88283e-05
[i] __su_test_clock_recovery:127: Modulating 0x414c4f48 in QPSK...
[i] __su_test_clock_recovery:128:   SNR: 70 dBFS
[i] __su_test_clock_recovery:159: Symbol period hint: 426.667
[i] __su_test_clock_recovery:185: Final frequency error: -6.81728e-07
[i] __su_test_clock_recovery:186: Corrected symbol period: 512.018
[t: 10] su_test_clock_recovery: end (221.526 ms)
[t: 11] su_test_clock_recovery_noisy: start
[i] __su_test_clock_recovery:116: Initial frequency error: 0
[i] __su_test_clock_recovery:127: Modulating 0x414c4f48 in QPSK...
[i] __su_test_clock_recovery:128:   SNR: 56 dBFS
[i] __su_test_clock_recovery:159: Symbol period hint: 426.667
[i] __su_test_clock_recovery:185: Final frequency error: -6.67851e-06
[i] __su_test_clock_recovery:186: Corrected symbol period: 511.061
[t: 11] su_test_clock_recovery_noisy: end (220.985 ms)
[t: 12] su_test_channel_detector_qpsk: start
[i] __su_test_channel_detector_qpsk:107: Modulating 0x414c4f48 in QPSK...
[i] __su_test_channel_detector_qpsk:108:   Noise: -20 dBFS
[i] __su_test_channel_detector_qpsk:109:   Window size: 4096 samples
[i] __su_test_channel_detector_qpsk:113:   Baudrate at fs=250000: 488.281
[i] __su_test_channel_detector_qpsk:136: Frequency step: 61.0352 Hz
[i] __su_test_channel_detector_qpsk:139:   Will need 0 samples before performing a detection
[t: 12] su_test_channel_detector_qpsk: assertion failed
[t: 12] su_test_channel_detector_qpsk: !(channel = su_channel_detector_lookup_valid_channel( detector, ((float)(params.samp_rate) * (float)(1e-1) / 2.)))
[t: 12] TEST FAILED
[t: 13] su_test_channel_detector_qpsk_noisy: start
[i] __su_test_channel_detector_qpsk:107: Modulating 0x414c4f48 in QPSK...
[i] __su_test_channel_detector_qpsk:108:   Noise: -10 dBFS
[i] __su_test_channel_detector_qpsk:109:   Window size: 4096 samples
[i] __su_test_channel_detector_qpsk:113:   Baudrate at fs=250000: 488.281
[i] __su_test_channel_detector_qpsk:136: Frequency step: 61.0352 Hz
[i] __su_test_channel_detector_qpsk:139:   Will need 0 samples before performing a detection
[t: 13] su_test_channel_detector_qpsk_noisy: assertion failed
[t: 13] su_test_channel_detector_qpsk_noisy: !(channel = su_channel_detector_lookup_valid_channel( detector, ((float)(params.samp_rate) * (float)(1e-1) / 2.)))
[t: 13] TEST FAILED
[t: 14] su_test_channel_detector_real_capture: start
[i] su_test_channel_detector_real_capture:222: Sample capture file not present, skipping test...
[t: 15] su_test_specttuner_two_tones: start
[i] su_test_specttuner_two_tones:97: Transmitting two tones at 200 Hz and 1000 Hz
[i] su_test_specttuner_two_tones:98:   AWGN amplitude: -33.9794 dBFS
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[i] su_specttuner_append:48:   Append 32 samples!
[t: 15] su_test_specttuner_two_tones: end (2.202 ms)
[t: 16] su_test_mat_file_regular: start
[t: 16] su_test_mat_file_regular: end (94 us)
[t: 17] su_test_mat_file_streaming: start
[t: 17] su_test_mat_file_streaming: end (120 us)
18 tests run, 5 failed
*** Error code 1

Stop.

revision: v0.1.0-156-g1d7559d FreeBSD 13.1