Merge pull request #63 from Guenael/guenael

feat(CI): unit-test integraed in the CI & typo fix
pull/65/head
Guenael, VA2GKA 2021-12-10 00:29:12 -05:00 zatwierdzone przez GitHub
commit 4f08d39ae0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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")) {