#!/usr/bin/make -f export HTTP_PROXY=127.0.0.1:9 export HTTPS_PROXY=127.0.0.1:9 export PYBUILD_BEFORE_TEST=cp -r {dir}/src/azure-cli-core/azure/cli/core/extension/tests/ {build_dir}/tests_extension; \ cp -r {dir}/src/azure-cli-core/azure/cli/core/tests/ {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_commands_mock.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/advisor/tests/latest/test_advisor_commands.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_app_service_environment_commands_thru_mock.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands_thru_mock.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_commands.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/botservice/tests/latest/test_bot_commands.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/cloud/tests/latest/test_cloud.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/configure/tests/latest/test_configure.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/find/tests/latest/test_find.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/lab/tests/latest/test_lab_validators.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/network/tests/hybrid_2018_03_01 {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_dns_commands.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_unit_tests.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/network/tests/latest/zone_files/ {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/profile/tests/latest/test_profile_custom.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/ {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_api_check.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource_custom.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource_list_odata_filter.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource_validators.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/latest/param-validation-template.json {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/resource/tests/latest/param-validation-params.json {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role_commands_thru_mock.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/role/tests/latest/test_role_custom.py {build_dir}/tests_core/; \ cp -r {dir}/src/azure-cli/azure/cli/command_modules/role/tests/latest/cert.pem {build_dir}/tests_core/ export PYBUILD_AFTERE_TEST=rm -rf {build_dir}/tests* export PYBUILD_TEST_ARGS=-v --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_twice \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_verify_no_pip_proxy \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_with_name_but_it_already_exists \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_with_name_valid_checksum \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_with_pip_proxy \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_list_show_remove_system_extension \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_list_show_remove_user_system_extensions \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_list_show_remove_extension \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_list_show_remove_extension_extra_index_url \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_list_show_remove_extension_with_dashes \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_same_extension_user_system \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_update_extension \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_update_extension_exception_in_update_and_rolled_back \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_update_extension_extra_index_url \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_update_extension_no_updates \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_update_extension_verify_no_pip_proxy \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_update_extension_with_pip_proxy \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_azure_to_path \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_to_path \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_add_extension_with_specific_version \ --deselect=tests_extension/latest/test_wheel_type_extension.py::TestWheelTypeExtensionMetadata::test_reading_wheel_type_0_30_0_extension_metadata \ --deselect=tests_extension/latest/test_wheel_type_extension.py::TestWheelTypeExtensionMetadata::test_reading_wheel_type_0_31_0_extension_metadata \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_get_docker_credentials \ --deselect=tests_core/test_help.py::HelpTest::test_help_loads \ --deselect=tests_core/test_help.py::TestHelpLoads::test_load_from_help_json \ --deselect=tests_core/test_help.py::TestHelpLoads::test_load_from_help_py \ --deselect=tests_core/test_bot_commands.py::BotTests \ --deselect=tests_core/test_cloud.py::SubscriptionSuppressionTest::test_subscription_suppression \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_scenario \ --deselect=tests_core/test_configure.py::LocalContextCommandsScenarioTest::test_local_context_commands \ --deselect=tests_core/test_extension.py::TestWheelSystemExtension::test_wheel_metadata1 \ --deselect=tests_core/test_extension.py::TestWheelSystemExtension::test_wheel_version \ --deselect=tests_core/test_help.py::TestHelpLoads::test_load_from_help_yaml \ --deselect=tests_core/test_dns_commands.py::DnsZoneImportTest \ --deselect=tests_core/test_dns_commands.py::DnsScenarioTest \ --deselect=tests_core/test_advisor_commands.py::AzureAdvisorScenarioTest::test_configurations_resource_group \ --deselect=tests_core/test_advisor_commands.py::AzureAdvisorScenarioTest::test_configurations_subscription \ --deselect=tests_core/test_profile_v2016_06_01.py::TestProfile::test_subscription_finder_constructor \ --deselect=tests_core/test_profile.py::TestProfile::test_get_msal_token \ --deselect=tests_core/test_profile.py::TestProfile::test_subscription_finder_constructor \ --deselect=tests_core/test_profile_custom.py::ProfileCommandTest::test_login_validate_tenant \ --deselect=tests_core/test_resource_custom.py::TestCustom::test_deployment_missing_values \ --deselect=tests_core/test_resource_custom.py::TestCustom::test_deployment_prompt_alphabetical_order \ --deselect=tests_core/test_resource_custom.py::TestCustom::test_deployment_prompt_file_order \ --deselect=tests_core/test_resource_custom.py::TestCustom::test_what_if_exclude_change_types \ --deselect=tests_core/test_resource_custom.py::TestFormatBicepFile::test_format_bicep_file \ --deselect=tests_core/hybrid_2018_03_01/test_dns_commands.py::DnsZoneImportTest \ --deselect=tests_core/hybrid_2018_03_01/test_dns_commands.py::DnsScenarioTest \ --deselect=tests_core/hybrid_2018_03_01/test_locks.py \ --deselect=tests_core/hybrid_2018_03_01/test_network_commands.py \ --deselect=tests_core/hybrid_2018_03_01/test_resource.py \ --deselect=tests_core/test_extension.py::TestWheelExtension \ --deselect=tests_core/test_extension.py::TestExtensions::test_extension_exists \ --deselect=tests_core/test_extension.py::TestExtensions::test_extension_list \ --deselect=tests_core/test_extension.py::TestExtensions::test_extension_not_exists \ --deselect=tests_core/test_extension.py::TestExtensions::test_get_extension \ --deselect=tests_core/test_extension.py::TestExtensions::test_get_extension_names \ --deselect=tests_core/test_custom.py::AcsCustomCommandTest::test_update_addons \ --deselect=tests_core/test_helpers.py::TestPopulateApiServerAccessProfile::test_multi_cidr_with_spaces \ --deselect=tests_core/test_helpers.py::TestPopulateApiServerAccessProfile::test_private_cluster \ --deselect=tests_core/test_helpers.py::TestPopulateApiServerAccessProfile::test_single_cidr_with_spaces \ --deselect=tests_core/test_command_registration.py::TestCommandRegistration::test_command_index \ --deselect=tests_core/test_command_registration.py::TestCommandRegistration::test_command_index_always_loaded_extensions \ --deselect=tests_core/test_parser.py::TestParser::test_parser_error_spellchecker \ --deselect=tests_extension/latest/test_resolve.py::TestResolveFromIndex::test_ext_not_in_index \ --deselect=tests_extension/latest/test_resolve.py::TestResolveFromIndex::test_no_exts_in_index \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_delete \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_deleted_list \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_deleted_restore \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_deleted_tags_list \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_list \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_list_referrers \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_metadata_list \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_metadata_show \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_metadata_update \ --deselect=tests_core/test_acr_commands_mock.py::AcrMockCommandsTests::test_manifest_show \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_list_profiles \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_AzureChinaCloud \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_AzureCloud \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_AzureGermanCloud \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_AzureUSGovernment \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_azurechinacloud \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_azurecloud \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_azuregermancloud \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_azureusgovernment \ --deselect=tests_core/test_cloud.py::CloudTests::test_cloud_set_unregistered_cloud_name \ --deselect=tests_core/test_command_registration.py::TestCommandRegistration::test_argument \ --deselect=tests_core/test_command_registration.py::TestCommandRegistration::test_command_build_argument_help_text \ --deselect=tests_core/test_command_registration.py::TestCommandRegistration::test_extra_argument \ --deselect=tests_core/test_command_registration.py::TestCommandRegistration::test_register_command \ --deselect=tests_core/test_credential_helper.py::TestCredentialHelper::test_detect_credential_for_string \ --deselect=tests_core/test_credential_helper.py::TestCredentialHelper::test_redact_credential_for_json \ --deselect=tests_core/test_credential_helper.py::TestCredentialHelper::test_redact_credential_for_string \ --deselect=tests_core/test_extension.py::TestExtensions::test_add_extension_with_preview \ --deselect=tests_core/test_extension.py::TestExtensions::test_add_extension_without_preview \ --deselect=tests_core/test_extension.py::TestExtensions::test_add_list_show_preview_extension \ --deselect=tests_core/test_extension.py::TestExtensions::test_add_preview_extension_by_default \ --deselect=tests_core/test_extension.py::TestExtensions::test_update_extension_with_preview \ --deselect=tests_core/test_profile.py::TestProfile::test_get_auth_info_for_newly_created_service_principal \ --deselect=tests_core/test_profile.py::TestProfile::test_login_fallback_to_device_code_github_codespaces \ --deselect=tests_core/test_profile.py::TestProfile::test_login_fallback_to_device_code_no_browser \ --deselect=tests_core/test_profile.py::TestProfile::test_login_with_auth_code \ --deselect=tests_core/test_profile.py::TestProfile::test_login_with_auth_code_adfs \ --deselect=tests_core/test_profile.py::TestProfile::test_login_with_device_code \ --deselect=tests_core/test_profile.py::TestProfile::test_login_with_device_code_for_tenant \ --deselect=tests_core/test_profile.py::TestProfile::test_login_with_service_principal \ --deselect=tests_core/test_profile.py::TestProfile::test_login_with_username_password_for_tenant \ --deselect=tests_core/test_profile.py::TestProfile::test_normalize \ --deselect=tests_core/test_profile.py::TestProfile::test_normalize_v2016_06_01 \ --deselect=tests_core/test_profile.py::TestProfile::test_update_add_two_different_subscriptions \ --deselect=tests_core/test_aaz_command_ctx.py::TestAAZCommandCtx::test_ctx_subscription \ --deselect=tests_core/test_find.py::FindCustomCommandTest::test_call_aladdin_service \ --deselect=tests_core/test_find.py::FindCustomCommandTest::test_get_generated_examples_empty \ --deselect=tests_core/test_find.py::FindCustomCommandTest::test_get_generated_examples_full \ --deselect=tests_core/test_profile.py::TestProfile::test_default_active_subscription_to_non_disabled_one \ --deselect=tests_core/test_profile.py::TestProfile::test_get_current_account_user \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials_aux_subscriptions \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials_aux_tenants \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials_msi_system_assigned \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials_msi_user_assigned_with_client_id \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials_msi_user_assigned_with_object_id \ --deselect=tests_core/test_profile.py::TestProfile::test_get_login_credentials_msi_user_assigned_with_res_id \ --deselect=tests_core/test_profile.py::TestProfile::test_get_raw_token \ --deselect=tests_core/test_profile.py::TestProfile::test_get_raw_token_for_sp \ --deselect=tests_core/test_profile.py::TestProfile::test_get_raw_token_in_cloud_console \ --deselect=tests_core/test_profile.py::TestProfile::test_get_raw_token_msi_system_assigned \ --deselect=tests_core/test_profile.py::TestProfile::test_get_subscription \ --deselect=tests_core/test_profile.py::TestProfile::test_login_common_tenant_mfa_warning \ --deselect=tests_core/test_profile.py::TestProfile::test_login_no_subscription \ --deselect=tests_core/test_profile.py::TestProfile::test_login_no_tenant \ --deselect=tests_core/test_profile.py::TestProfile::test_logout \ --deselect=tests_core/test_profile.py::TestProfile::test_logout_all \ --deselect=tests_core/test_profile.py::TestProfile::test_refresh_accounts_one_user_account \ --deselect=tests_core/test_profile.py::TestProfile::test_refresh_accounts_one_user_account_one_sp_account \ --deselect=tests_core/test_profile.py::TestProfile::test_refresh_accounts_with_nothing \ --deselect=tests_core/test_profile.py::TestProfile::test_set_active_subscription \ --deselect=tests_core/test_profile.py::TestProfile::test_update_with_same_subscription_added_twice \ --deselect=tests_core/test_profile_custom.py::ProfileCommandTest::test_get_raw_token \ --deselect=tests_core/test_resource_custom.py::TestCustom::test_deployment_parameters_with_type_references \ --deselect=tests_core/test_resource_custom.py::TestPublishWithSource::test_publish_without_source \ --deselect=tests_core/test_resource_custom.py::TestPublishWithSource::test_publish_withsource \ --deselect=tests_core/test_util.py::TestUtils::test_send_raw_requests \ --deselect=tests_extension/latest/test_extension_commands.py::TestExtensionCommands::test_list_available_extensions_no_show_details \ --ignore=tests_core/test_webapp_commands_thru_mock.py \ --ignore=tests_core/test_custom.py \ --ignore=tests_core/test_helpers.py \ --ignore=tests_core/test_batch_commands.py \ --ignore=tests_core/test_bot_commands.py \ --ignore=tests_core/test_generic_update.py export SUBDIRS = $(shell find src -name setup.py -printf "%h ") export MODULES = $(sort $(filter-out %-nspkg,$(SUBDIRS))) %: dh $@ --buildsystem=pybuild override_dh_auto_clean: for module in $(MODULES); do \ ( dh_auto_clean --sourcedirectory=$$module; rm -rf $$module/__pycache__ $$module/*.egg-info ); \ done override_dh_auto_configure: for module in $(MODULES); do \ ( dh_auto_configure --sourcedirectory=$$module ); \ done override_dh_auto_build: for module in $(MODULES); do \ ( dh_auto_build --sourcedirectory=$$module ); \ done override_dh_auto_install: for module in $(MODULES); do \ ( dh_auto_install --sourcedirectory=$$module ); \ done mkdir -p $(CURDIR)/debian/tmp/usr/share/bash-completion/completions register-python-argcomplete az > $(CURDIR)/debian/tmp/usr/share/bash-completion/completions/az