refactor(rebrand): полный ребрендинг в Tachyon и перенос служб watchdog/doctor на Ucode
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
set -eo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
FORKOP_LIB="$ROOT_DIR/forkop/files/usr/lib"
|
||||
PARSER="$ROOT_DIR/forkop/files/usr/lib/subscription/parser.uc"
|
||||
GENERATOR="$ROOT_DIR/forkop/files/usr/lib/singbox/generator.uc"
|
||||
TACHYON_LIB="$ROOT_DIR/tachyon/files/usr/lib"
|
||||
PARSER="$ROOT_DIR/tachyon/files/usr/lib/subscription/parser.uc"
|
||||
GENERATOR="$ROOT_DIR/tachyon/files/usr/lib/singbox/generator.uc"
|
||||
WORK_DIR="$(mktemp -d)"
|
||||
|
||||
cleanup() {
|
||||
@@ -119,7 +119,7 @@ cat >"$generator_fixture" <<'JSON'
|
||||
}
|
||||
JSON
|
||||
TMP_SUBSCRIPTION_FOLDER="$WORK_DIR/subscriptions" \
|
||||
ucode -L "$FORKOP_LIB" "$GENERATOR" generate-config-fixture \
|
||||
ucode -L "$TACHYON_LIB" "$GENERATOR" generate-config-fixture \
|
||||
"$generator_fixture" "$generator_output" "127.0.0.1" "0"
|
||||
assert_contains "$generator_output" '"type": "hysteria2"' "generated stale HY2 type"
|
||||
if grep -Fq '"utls"' "$generator_output"; then
|
||||
|
||||
Reference in New Issue
Block a user