mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	 8b576b6c55
			
		
	
	8b576b6c55
	
	
	
		
			
			--------- Co-authored-by: Xuan Son Nguyen <thichthat@gmail.com> Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> Co-authored-by: Xuan Son Nguyen <son@huggingface.co>
		
			
				
	
	
		
			24 lines
		
	
	
		
			522 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			522 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # make sure we are in the right directory
 | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
 | |
| cd $SCRIPT_DIR
 | |
| 
 | |
| set -eu
 | |
| 
 | |
| if [[ "${SLOW_TESTS:-0}" == 1 ]]; then
 | |
|     # Slow tests for tool calls need quite a few models ahead of time to avoid timing out.
 | |
|     python $SCRIPT_DIR/../../../scripts/fetch_server_test_models.py
 | |
| fi
 | |
| 
 | |
| if [ $# -lt 1 ]
 | |
| then
 | |
|     if [[ "${SLOW_TESTS:-0}" == 1 ]]; then
 | |
|         pytest -v -x
 | |
|     else
 | |
|         pytest -v -x -m "not slow"
 | |
|     fi
 | |
| else
 | |
|     pytest "$@"
 | |
| fi
 |