feat(CI): unit-test integraed in the CI & typo fix

pull/63/head
Guenael 2021-12-10 00:28:51 -05:00
rodzic e280b3b6e1
commit 0288a63a6d
2 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -38,7 +38,10 @@ jobs:
sudo apt-get -y install build-essential cmake libfftw3-dev libusb-1.0-0-dev librtlsdr-dev libcurl4-gnutls-dev cppcheck iwyu
make
- name: SAST check (C/C++ code analysis)
- name: Perform CodeQL Analysis (SAST)
uses: github/codeql-action/analyze@v1
- name: Cppcheck (C/C++ format & best best-practice)
run: |
echo "===== CPPCHECK ====="
cppcheck --std=c11 *.c wsprd/*.c
@ -55,5 +58,7 @@ jobs:
echo "===== CODESPELL ====="
codespell -L 'rcall' *.c *.h wsprd/*.c wsprd/*.h
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Unit-Test
run: |
echo "===== Decoder self-test ====="
./rtlsdr_wsprd -t decoder

Wyświetl plik

@ -587,7 +587,7 @@ int32_t decoderSelfTest() {
dec_results[i].pwr);
}
/* Simple consistancy check */
/* Simple consistency check */
if (strcmp(dec_results[0].call, "K1JT") &&
strcmp(dec_results[0].loc, "FN20") &&
strcmp(dec_results[0].pwr, "20")) {