File tree Expand file tree Collapse file tree 6 files changed +18
-7
lines changed Expand file tree Collapse file tree 6 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ options in previously read ramalama.conf files.
35
35
Config files in the ` .d ` directories, are added in alpha numeric sorted order and must end in ` .conf ` .
36
36
37
37
## ENVIRONMENT VARIABLES
38
- If the ` RAMALAMA_CONF ` environment variable is set, all system and user
38
+ If the ` RAMALAMA_CONFIG ` environment variable is set, all system and user
39
39
config files are ignored and only the specified config file is loaded.
40
40
41
41
# FORMAT
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ MODEL=smollm:1.7b
9
9
conf=$RAMALAMA_TMPDIR /ramalama.conf
10
10
cat > $conf << EOF
11
11
[ramalama]
12
- pull="missing "
12
+ pull="never "
13
13
EOF
14
14
15
15
if is_container; then
30
30
run_ramalama -q --dryrun run --oci-runtime foobar ${MODEL}
31
31
is " $output " " .*--runtime foobar" " dryrun correct with --oci-runtime"
32
32
33
- run_ramalama -q --dryrun run --seed 9876 -c 4096 --net bridge --name foobar ${MODEL}
33
+ RAMALAMA_CONFIG=/dev/null run_ramalama -q --dryrun run --seed 9876 -c 4096 --net bridge --name foobar ${MODEL}
34
34
is " $output " " .*--network bridge.*" " dryrun correct with --name"
35
35
is " $output " " .*${MODEL} " " verify model name"
36
36
is " $output " " .*-c 4096" " verify ctx-size is set"
40
40
is " $output " " .*--pull newer" " verify pull is newer"
41
41
fi
42
42
43
+ run_ramalama -q --dryrun run ${MODEL}
44
+ is " $output " " .*--pull missing" " verify test defaults"
45
+
43
46
run_ramalama -q --dryrun run --pull=never -c 4096 --name foobar ${MODEL}
44
47
is " $output " " .*--pull never" " verify pull is never"
45
48
46
49
RAMALAMA_CONFIG=${conf} run_ramalama -q --dryrun run ${MODEL}
47
- is " $output " " .*--pull missing " " verify pull is missing"
50
+ is " $output " " .*--pull never " " verify pull is missing"
48
51
49
52
run_ramalama 2 -q --dryrun run --pull=bogus ${MODEL}
50
53
is " $output " " .*error: argument --pull: invalid choice: 'bogus'" " verify pull can not be bogus"
Original file line number Diff line number Diff line change @@ -36,14 +36,17 @@ verify_begin=".*run --rm"
36
36
run_ramalama -q --dryrun serve --temp 0.1 ${model}
37
37
is " $output " " .*--temp 0.1" " verify temp is set"
38
38
39
- run_ramalama -q --dryrun serve --seed 1234 ${model}
39
+ RAMALAMA_CONFIG=/dev/null run_ramalama -q --dryrun serve --seed 1234 ${model}
40
40
is " $output " " .*--seed 1234" " verify seed is set"
41
41
if not_docker; then
42
42
is " $output " " .*--pull newer" " verify pull is newer"
43
43
fi
44
44
assert " $output " =~ " .*--cap-drop=all" " verify --cap-add is present"
45
45
assert " $output " =~ " .*no-new-privileges" " verify --no-new-privs is not present"
46
46
47
+ run_ramalama -q --dryrun serve ${model}
48
+ is " $output " " .*--pull missing" " verify test default pull is missing"
49
+
47
50
run_ramalama -q --dryrun serve --pull never ${model}
48
51
is " $output " " .*--pull never" " verify pull is never"
49
52
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ load helpers
16
16
run_ramalama --dryrun run --rag quay.io/ramalama/myrag:1.2 ollama://smollm:135m
17
17
is " $output " " .*quay.io/ramalama/.*-rag.*" " Expected to use -rag image"
18
18
if not_docker; then
19
+ is " $output " " .*--pull missing.*" " Expected to use --pull missing"
20
+ RAMALAMA_CONFIG=/dev/null run_ramalama --dryrun run --rag quay.io/ramalama/myrag:1.2 ollama://smollm:135m
19
21
is " $output " " .*--pull newer.*" " Expected to use --pull newer"
20
22
fi
21
23
Original file line number Diff line number Diff line change 3
3
# RamaLama command to run;
4
4
RAMALAMA=${RAMALAMA:- ramalama}
5
5
6
- # RamaLama testing helper used in 331-system-check tests
7
- RAMALAMA_TESTING=${RAMALAMA_TESTING:- $(dirname ${BASH_SOURCE} )/ ../ ../ bin/ ramalama-testing}
6
+ export RAMALAMA_CONFIG=${RAMALAMA_CONFIG:- ./ test/ system/ ramalama.conf}
8
7
9
8
# llama.cpp or vllm, unlikely to change. Cache, because it's expensive to determine.
10
9
RAMALAMA_RUNTIME=
Original file line number Diff line number Diff line change
1
+ [ramalama]
2
+
3
+ pull="missing"
4
+
You can’t perform that action at this time.
0 commit comments