Skip to content

Commit eda96dd

Browse files
committed
Support running make test with PROG_SUFFIX
Signed-off-by: Zhijun <dszhijun@gmail.com>
1 parent ae7dce1 commit eda96dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/support/set_executable_path.tcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ set ::VALKEY_PROG_SUFFIX [expr {
1010
[info exists ::env(VALKEY_PROG_SUFFIX)] ? $::env(VALKEY_PROG_SUFFIX) : ""
1111
}]
1212

13+
# Optional program suffix (e.g. `make PROG_SUFFIX=-alt` will create binary valkey-server-alt).
14+
# Passed from `make test` as environment variable VALKEY_PROG_SUFFIX.
15+
set ::VALKEY_PROG_SUFFIX [expr {
16+
[info exists ::env(VALKEY_PROG_SUFFIX)] ? $::env(VALKEY_PROG_SUFFIX) : ""
17+
}]
18+
1319
# Helper to build absolute paths
1420
proc valkey_bin_absolute_path {name} {
1521
set full_name "${name}${::VALKEY_PROG_SUFFIX}"

0 commit comments

Comments
 (0)