feat: добавить поддержку Google Android CLI и android-cli skill
- Установка android CLI из dl.google.com для linux/mac/windows - Запуск android init для деплоя skills в агентов - Кастомный skill android-cli в home-configs/claude/skills/ - Пункт меню 8) Android CLI в setup.sh - Тесты и документация Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -127,6 +127,48 @@ test_script_syntax() {
|
||||
fi
|
||||
}
|
||||
|
||||
# ── Android CLI: install block exists ─────────────────────────────────────
|
||||
test_android_cli_install_url() {
|
||||
if grep -q 'dl.google.com/android/cli/latest' "$SCRIPT"; then
|
||||
ok "android-cli: install URL for Android CLI is present"
|
||||
else
|
||||
fail "android-cli: missing install URL for Android CLI"
|
||||
fi
|
||||
}
|
||||
|
||||
test_android_init_called() {
|
||||
if grep -q 'android init' "$SCRIPT"; then
|
||||
ok "android-cli: android init is invoked after install"
|
||||
else
|
||||
fail "android-cli: missing android init invocation"
|
||||
fi
|
||||
}
|
||||
|
||||
test_android_symlink_to_bin_dir() {
|
||||
if grep -q 'ln -sf "$HOME/.local/bin/android" "$BIN_DIR/android"' "$SCRIPT"; then
|
||||
ok "android-cli: symlink to BIN_DIR is handled"
|
||||
else
|
||||
fail "android-cli: missing symlink to BIN_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
test_no_proxychains_for_android() {
|
||||
if grep -q 'proxychains4.*android' "$SCRIPT"; then
|
||||
fail "android-cli: should not be wrapped in proxychains4 (breaks child processes)"
|
||||
else
|
||||
ok "android-cli: not wrapped in proxychains4"
|
||||
fi
|
||||
}
|
||||
|
||||
test_android_skill_exists() {
|
||||
skill_file="$(cd "$(dirname "$0")/.." && pwd)/home-configs/claude/skills/android-cli/SKILL.md"
|
||||
if [ -f "$skill_file" ]; then
|
||||
ok "android-cli: custom skill file exists"
|
||||
else
|
||||
fail "android-cli: custom skill file is missing"
|
||||
fi
|
||||
}
|
||||
|
||||
# ── run all tests ─────────────────────────────────────────────────────────────
|
||||
test_script_syntax
|
||||
test_gpt_autoinstall
|
||||
@@ -138,6 +180,11 @@ test_gemini_native_launcher
|
||||
test_global_rules_include_quality_guidelines
|
||||
test_native_rule_files_generated
|
||||
test_fix7_trap_tmp
|
||||
test_android_cli_install_url
|
||||
test_android_init_called
|
||||
test_android_symlink_to_bin_dir
|
||||
test_no_proxychains_for_android
|
||||
test_android_skill_exists
|
||||
|
||||
echo ""
|
||||
echo "Results: $PASS passed, $FAIL failed"
|
||||
|
||||
Reference in New Issue
Block a user