aboutsummaryrefslogtreecommitdiff
path: root/stm32/unittest/scripts/run_all_ldpc_tests
blob: 98d06a24d458b02d5d583d1fef3b46fb50a2110e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# run_all_ldpc_tests

# Find the scripts directory
SCRIPTS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

# Setup common variables
source $SCRIPTS/run_tests_common.sh

declare -i Fails=0

run_stm32_tst tst_ldpc_enc "$@" || Fails+=1

run_stm32_tst tst_ldpc_dec ideal "$@" || Fails+=1
run_stm32_tst tst_ldpc_dec noise "$@" || Fails+=1

if (( $Fails == 0 )); then
    echo -e "\nAll LDPC Tests PASSED"
else
    echo -e "\n$Fails LDPC Tests FAILED!"
fi

exit $Fails

# vi:set ts=4 et sts=4: