Skip to content

Conversation

danbev
Copy link
Member

@danbev danbev commented Sep 4, 2025

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:

$ ctest -R ^test-vad$ --test-dir build

Or directly (which is not currently possible without this fix):

./build/bin/test-vad

Resolves: #3404

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: ggml-org#3404
@danbev
Copy link
Member Author

danbev commented Sep 4, 2025

I'll take a closer look at the CI failure in a separate PR.

@danbev danbev merged commit 9bfc535 into ggml-org:master Sep 4, 2025
52 of 55 checks passed
bygreencn added a commit to bygreencn/whisper.cpp that referenced this pull request Sep 24, 2025
* ggerganov/master: (92 commits)
  ggml : Fix MKL detection by quoting BLAS_INCLUDE_DIRS (ggml-org#3426)
  whisper : prefer curl over wget in download scripts (ggml-org#3409)
  ci : remove brew installation of cmake for macos-latest (ggml-org#3408)
  tests : use CMake definitions for model/sample paths (ggml-org#3406)
  Handle negative value in padding (ggml-org#3389)
  models :  update`./models/download-ggml-model.cmd` to allow for tdrz download (ggml-org#3381)
  talk-llama : sync llama.cpp
  sync : ggml
  ggml: Add initial WebGPU backend (llama/14521)
  ggml : initial zDNN backend (llama/14975)
  common : handle mxfp4 enum
  ggml-quants : fix make_qp_quants NANs and IQ1 assertion errors (llama/15379)
  vulkan: disable spirv-opt for bfloat16 shaders (llama/15352)
  vulkan: Use larger workgroups for mul_mat_vec when M is small (llama/15355)
  vulkan: support sqrt (llama/15370)
  vulkan: Optimize argsort (llama/15354)
  vulkan: fuse adds (llama/15252)
  vulkan: Support mul_mat_id with f32 accumulators (llama/15337)
  vulkan: Add missing bounds checking to scalar/coopmat1 mul_mat_id (llama/15334)
  OpenCL: add initial FA support (llama/14987)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test-vad and test-vad-full fail: Assertion failed: (read_audio_data(sample_path.c_str(), pcmf32, pcmf32s, false))

2 participants