Skip to content

Commit

Permalink
Merge pull request #45 from antoniovazquezblanco/dev/tests_cleanup
Browse files Browse the repository at this point in the history
Remove old testing code
  • Loading branch information
BatchDrake committed Apr 12, 2023
2 parents ee69a36 + d23fe77 commit be5dd39
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 3,817 deletions.
55 changes: 0 additions & 55 deletions CMakeLists.txt
Expand Up @@ -270,58 +270,3 @@ install(
DESTINATION include/sigutils/util)

install(TARGETS sigutils DESTINATION ${CMAKE_INSTALL_LIBDIR})


############################## Unit tests ######################################
set(MAINDIR src)
set(TESTDIR ${MAINDIR}/tests)
set(TESTUTILDIR testutil)

set(SIGUTILS_TESTUTIL_SOURCES
${TESTUTILDIR}/common.c
${TESTUTILDIR}/poolhelper.c
${TESTUTILDIR}/sigbufpool.c)

set(SIGUTILS_TESTUTIL_HEADERS
${TESTUTILDIR}/test.h)

set(SIGUTILS_TEST_SOURCES
${TESTDIR}/agc.c
${TESTDIR}/block.c
${TESTDIR}/clock.c
${TESTDIR}/costas.c
${TESTDIR}/detect.c
${TESTDIR}/filt.c
${MAINDIR}/main.c
${TESTDIR}/mat.c
${TESTDIR}/ncqo.c
${TESTDIR}/pll.c
${TESTDIR}/specttuner.c)

set(SIGUTILS_TEST_HEADERS
${TESTDIR}/test_list.h
${TESTDIR}/test_param.h)

add_executable(
sutest
${SIGUTILS_TEST_SOURCES}
${SIGUTILS_TEST_HEADERS}
${SIGUTILS_TESTUTIL_SOURCES}
${SIGUTILS_TESTUTIL_HEADERS})

# Private header directories
target_include_directories(
sutest
PRIVATE . util ${SRCDIR} ${TESTDIR} ${TESTUTILDIR})

# Required dependencies
target_link_libraries(sutest sigutils)
target_link_libraries(sutest ${SNDFILE_LIBRARIES})
target_link_libraries(sutest ${FFTW3_LIBRARIES})
target_link_libraries(sutest ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(sutest m)

# Optional dependencies
if(VOLK_FOUND)
target_link_libraries(sutest ${VOLK_LIBRARIES})
endif()
11 changes: 0 additions & 11 deletions README.md
Expand Up @@ -39,17 +39,6 @@ And proceed to install the library in your system by running as root:
# ldconfig
```

## Running all unit tests
~~If the compilation was successful, an executable file named `sigutils` must exist in the `src/` directory, containing a set of unit tests for various library features. It's a good idea to run all unit tests before going on. However, these tests rely on a real signal recording from [sigidwiki](http://www.sigidwiki.com).~~

~~In order to run all unit tests, you must download [this ZIP file](http://www.sigidwiki.com/images/3/36/Strange_4psk.zip) first, extract the file `strange 8475 khz_2015-12-04T15-33-32Z_8474.1kHz.wav`, rename it to `test.wav` and place it in the project's root directory. After this step, you can run all unit tests by executing:~~

_Please note: many of these unit tests are failing until the API harmonization work is completed. Don't worry to much about them for now. However, if both your build and installation were successful, you should see a list of unit tests taking place after running:_

```
% src/sutest
```

---
# sigutils API overview
There are three API levels in sigutils, with every high-level API relying on lower-level APIs:
Expand Down
30 changes: 0 additions & 30 deletions cmake.yml

This file was deleted.

241 changes: 0 additions & 241 deletions src/main.c

This file was deleted.

0 comments on commit be5dd39

Please sign in to comment.