mirror of https://github.com/drowe67/codec2.git
experimental clang-format ctest
parent
fb4547abe6
commit
597e9eb965
|
@ -21,7 +21,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install octave octave-common octave-signal liboctave-dev gnuplot sox p7zip-full python3-numpy valgrind
|
||||
sudo apt-get install octave octave-common octave-signal liboctave-dev gnuplot sox p7zip-full python3-numpy valgrind clang-format
|
||||
|
||||
- name: Create Build Directory
|
||||
shell: bash
|
||||
|
|
|
@ -308,6 +308,10 @@ if(UNITTEST)
|
|||
include(CTest)
|
||||
enable_testing()
|
||||
|
||||
add_test(NAME test_clang_format
|
||||
COMMAND sh -c "cd ${CMAKE_CURRENT_SOURCE_DIR};
|
||||
clang-format --dry-run --Werror src/*.c src/*.h unittest/*.c demo/*.c")
|
||||
|
||||
add_test(NAME test_freedv_get_hash
|
||||
COMMAND sh -c "${CMAKE_CURRENT_BINARY_DIR}/unittest/thash")
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ CTest is used as a test framework, with support from [GNU Octave](https://www.gn
|
|||
|
||||
1. Install GNU Octave and libraries on Ubuntu with:
|
||||
```
|
||||
sudo apt install octave octave-common octave-signal liboctave-dev gnuplot python3-numpy sox valgrind
|
||||
sudo apt install octave octave-common octave-signal liboctave-dev gnuplot python3-numpy sox valgrind clang-format
|
||||
```
|
||||
1. To build and run the tests:
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue