Skip to content

Commit

Permalink
chore: document runUnittests
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>
  • Loading branch information
cryptk committed May 11, 2024
1 parent 0e9aa0c commit f266e7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions backend/python/common/libbackend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ function startBackend() {
fi
}

# runUnittests discovers and runs python unittests
#
# You can specify a specific test file to use by setting TEST_FILE before calling runUnittests.
# example:
#
# source ../common/libbackend.sh
# TEST_FILE="${MY_DIR}/source/test.py"
# runUnittests $@
#
# be default a file named test.py in the backends directory will be used
function runUnittests() {
ensureVenv

Expand Down
2 changes: 1 addition & 1 deletion backend/python/exllama/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
LIMIT_TARGETS="cublas"
BACKEND_FILE="./source/backend.py"
BACKEND_FILE="${MY_DIR}/source/backend.py"

source $(dirname $0)/../common/libbackend.sh

Expand Down

0 comments on commit f266e7e

Please sign in to comment.