Skip to content

Commit 9b5d73c

Browse files
authored
run-vmtest: pass VERISTAT_CFG_FILE to veristat if provided (#194)
Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 17e02be commit 9b5d73c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

run-vmtest/run-bpf-selftests.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,13 @@ run_veristat() {
112112
source "${VERISTAT_CONFIGS}/run_veristat.${VERISTAT_TARGET}.cfg"
113113
pushd "${VERISTAT_OBJECTS_DIR}"
114114

115-
"${SELFTESTS_BPF}/veristat" -o csv -q -e file,prog,verdict,states ${VERISTAT_OBJECTS_GLOB} > \
115+
args=()
116+
args+=(-o csv)
117+
args+=(-q)
118+
args+=(-e file,prog,verdict,states)
119+
args+=(${VERISTAT_CFG_FILE:+-f@$VERISTAT_CFG_FILE})
120+
121+
"${SELFTESTS_BPF}/veristat" "${args[@]}" ${VERISTAT_OBJECTS_GLOB} > \
116122
"${OUTPUT_DIR}/${VERISTAT_OUTPUT}"
117123

118124
echo "run_veristat_${VERISTAT_TARGET}:$?" >> ${STATUS_FILE}

0 commit comments

Comments
 (0)