]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
tests : use CMake definitions for model/sample paths (#3406)
authorDaniel Bevenius <redacted>
Thu, 4 Sep 2025 13:08:30 +0000 (15:08 +0200)
committerGitHub <redacted>
Thu, 4 Sep 2025 13:08:30 +0000 (15:08 +0200)
commit9bfc5351304eea36d0fb90b1b88215abd7a44d80
tree1a6646a052213c01c5e1321bf4456a4d9386820d
parent7745fcf32846006128f16de429cfe1677c963b30
tests : use CMake definitions for model/sample paths (#3406)

This commit modifies the test-vad and test-vad-full tests to use CMake
definitions for the model and sample paths.

The motivation for this is that currently the tests use relative paths
which might not always be correct depending on the working directory.
With the changes in this commit the tests can be run usins ctest:
```console
$ ctest -R ^test-vad$ --test-dir build
```
Or directly (which is not currently possible without this fix):
```
./build/bin/test-vad
```

Resolves: https://github.com/ggml-org/whisper.cpp/issues/3404
tests/CMakeLists.txt
tests/test-vad-full.cpp
tests/test-vad.cpp