Fix sing-box extended version validation

This commit is contained in:
ushan0v
2026-07-12 00:42:43 +03:00
parent 7256f830f1
commit 3f5e4c28e8
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -255,6 +255,10 @@ done
assert_eq "-1" "$(ucode "$UPDATER" forkop-release-version-compare 1.2.3 1.2.4)" \
"three-part Forkop release version comparison"
assert_eq "1.13.14-extended-2.5.0" \
"$(printf 'sing-box version 1.13.14-extended-2.5.0\n\nEnvironment: go1.26.4 linux/amd64\n' | ucode "$UPDATER" stdin-first-line-last-field)" \
"sing-box extended binary version parsing"
component_actions_dir="$WORK_DIR/component-actions"
fake_lib="$WORK_DIR/lib"
mkdir -p "$fake_lib/components" "$fake_lib/config" "$fake_lib/core"