File: upstream-basic

package info (click to toggle)
llama.cpp 7593%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 71,012 kB
  • sloc: cpp: 329,391; ansic: 48,249; python: 32,103; lisp: 10,053; sh: 6,070; objc: 1,349; javascript: 924; xml: 384; makefile: 233
file content (30 lines) | stat: -rwxr-xr-x 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

testsdir="/usr/libexec/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/llama.cpp-tests/"

# Some of these tests need additional arguments and/or data that we still
# need to figure out
skip_tests="\
test-autorelease
test-chat
test-chat-template
test-gbnf-validator
test-model-load-cancel
test-state-restore-fragmented
test-thread-safety
test-tokenizer-0
test-tokenizer-1-bpe
test-tokenizer-1-spm"

# Any individual failure is overall failure
exitcode=0
for testname in "$testsdir"/test*; do
    if echo "$skip_tests" | grep -qx "$(basename "$testname")"; then
        echo "Skipping $testname"
        continue
    fi
	echo "$testname" >> /tmp/list

    $testname || exitcode=1
done
exit $exitcode