]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ci : add model tests + script wrapper (#4586)
authorcrasm <redacted>
Fri, 26 Jan 2024 12:18:00 +0000 (07:18 -0500)
committerGitHub <redacted>
Fri, 26 Jan 2024 12:18:00 +0000 (14:18 +0200)
commit413e7b0559f922bd4de5e9eec548829d111651b1
tree8d9ddf3f1e8ea25a105ed8aa04321e57d93cbfff
parent6dd3c28c9cd1ef74b49d79f47d668759346a3c6c
ci : add model tests + script wrapper (#4586)

* scripts : add lib.sh and lib_test.sh

* scripts : stub out new ci-run.sh script

* scripts : switch to PascalCase for functions

This looks a little odd at first, but I find it very useful as a
convention to know if a command is part of our code vs a builtin.

* scripts : add some fancy conversion from snake_case to PascalCase

* Add venv to ci/run.sh

* Revert scripts work

* scripts : add wrapper script for local use of ci/run.sh

* Simplify .gitignore for tests, clang-tidy fixes

* Label all ctest tests

* ci : ctest uses -L main

* Attempt at writing ctest_with_model

* Update test-model-load-cancel

* ci : add ctest_with_model for debug and release

ggml-ci

* Fix gg_get_model function

ggml-ci

* got stuck on CMake

* Add get_model.cpp to tests/CMakeLists.txt

ggml-ci

* Fix README.md output for ctest_with_model

ggml-ci

* workflows : use `-L main` for all ctest

ggml-ci

* Fixes

* GG_RUN_CTEST_MODELFILE => LLAMACPP_TESTMODELFILE
* Always show warning rather than failing if model file variable is not
  set

* scripts : update usage text for ci-run.sh
.github/workflows/build.yml
.gitignore
Makefile
ci/run.sh
scripts/ci-run.sh [new file with mode: 0755]
tests/.gitignore [new file with mode: 0644]
tests/CMakeLists.txt
tests/get-model.cpp [new file with mode: 0644]
tests/get-model.h [new file with mode: 0644]
tests/test-autorelease.cpp
tests/test-model-load-cancel.cpp [new file with mode: 0644]