Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
golang / usr / local / go / src / cmd / go / testdata / script
  ..
  README
  autocgo.txt
  badgo.txt
  bug.txt
  build_GOTMPDIR.txt
  build_acl_windows.txt
  build_arm.txt
  build_buildvcs_auto.txt
  build_cache_arch_mode.txt
  build_cache_compile.txt
  build_cache_disabled.txt
  build_cache_gomips.txt
  build_cache_link.txt
  build_cache_output.txt
  build_cache_trimpath.txt
  build_cc_cache_issue64423.txt
  build_cd_gopath_different.txt
  build_cgo_consistent_results.txt
  build_cgo_error.txt
  build_concurrent_backend.txt
  build_cwd_newline.txt
  build_darwin_cc_arch.txt
  build_dash_n_cgo.txt
  build_dash_o_dev_null.txt
  build_dash_x.txt
  build_exe.txt
  build_gcflags.txt
  build_gcflags_order.txt
  build_gopath_order.txt
  build_ignore_leading_bom.txt
  build_import_comment.txt
  build_import_cycle.txt
  build_internal.txt
  build_issue48319.txt
  build_issue59571.txt
  build_issue62156.txt
  build_issue6480.txt
  build_link_x_import_path_escape.txt
  build_multi_main.txt
  build_n_cgo.txt
  build_negative_p.txt
  build_no_go.txt
  build_nocache.txt
  build_output.txt
  build_overlay.txt
  build_patterns_outside_gopath.txt
  build_pgo.txt
  build_pgo_auto.txt
  build_pgo_auto_multi.txt
  build_pie_race.txt
  build_plugin_non_main.txt
  build_plugin_reproducible.txt
  build_relative_pkgdir.txt
  build_relative_tmpdir.txt
  build_runtime_gcflags.txt
  build_shorten_pkg.txt
  build_single_error.txt
  build_static.txt
  build_tag_goexperiment.txt
  build_tags_no_comma.txt
  build_test_only.txt
  build_trimpath.txt
  build_trimpath_cgo.txt
  build_trimpath_goroot.txt
  build_unsupported_goos.txt
  build_vendor.txt
  cache_unix.txt
  cache_vet.txt
  cgo_asm_error.txt
  cgo_bad_directives.txt
  cgo_badmethod_issue57926.txt
  cgo_depends_on_syscall.txt
  cgo_flag_contains_space.txt
  cgo_path.txt
  cgo_path_space.txt
  cgo_path_space_quote.txt
  cgo_stale.txt
  cgo_stale_precompiled.txt
  cgo_suspect_flag_force_external.txt
  cgo_syso_issue29253.txt
  cgo_trimpath_macro.txt
  cgo_undef.txt
  chdir.txt
  check_goexperiment.txt
  clean_binary.txt
  clean_cache_n.txt
  clean_testcache.txt
  cmd_import_error.txt
  cover_asm.txt
  cover_atomic_pkgall.txt
  cover_blank_func_decl.txt
  cover_build_cmdline_pkgs.txt
  cover_build_pkg_select.txt
  cover_build_simple.txt
  cover_cgo.txt
  cover_cgo_extra_file.txt
  cover_cgo_extra_test.txt
  cover_cgo_xtest.txt
  cover_coverpkg_partial.txt
  cover_coverpkg_with_init.txt
  cover_coverprofile_multipkg.txt
  cover_dash_c.txt
  cover_dep_loop.txt
  cover_dot_import.txt
  cover_error.txt
  cover_import_main_loop.txt
  cover_list.txt
  cover_main_import_path.txt
  cover_mod_empty.txt
  cover_modes.txt
  cover_pattern.txt
  cover_pkgall_imports.txt
  cover_pkgall_multiple_mains.txt
  cover_pkgall_runtime.txt
  cover_runs.txt
  cover_statements.txt
  cover_swig.txt
  cover_sync_atomic_import.txt
  cover_test_localpkg_filepath.txt
  cover_test_pkgselect.txt
  cover_test_race_issue56370.txt
  cover_var_init_order.txt
  cpu_profile_twice.txt
  devnull.txt
  dist_list_missing.txt
  doc.txt
  embed.txt
  embed_brackets.txt
  embed_fmt.txt
  env_cache.txt
  env_cross_build.txt
  env_exp.txt
  env_issue46807.txt
  env_sanitize.txt
  env_unset.txt
  env_write.txt
  fileline.txt
  fmt_load_errors.txt
  fsys_walk.txt
  gccgo_link_c.txt
  gccgo_link_ldflags.txt
  gccgo_m.txt
  gccgo_mangle.txt
  gcflags_patterns.txt
  generate.txt
  generate_bad_imports.txt
  generate_env.txt
  generate_goroot_PATH.txt
  generate_invalid.txt
  generate_workspace.txt
  get_404_meta.txt
  get_insecure.txt
  get_insecure_no_longer_supported.txt
  get_issue53955.txt
  go_badcmd.txt
  go_version.txt
  godebug_default.txt
  godebug_unknown.txt
  goflags.txt
  goline_order.txt
  gopath_install.txt
  gopath_local.txt
  gopath_paths.txt
  gopath_std_vendor.txt
  gopath_vendor_dup_err.txt
  goroot_executable.txt
  goroot_executable_trimpath.txt
  gotoolchain_local.txt
  gotoolchain_loop.txt
  gotoolchain_modcmds.txt
  gotoolchain_net.txt
  gotoolchain_path.txt
  gotoolchain_version.txt
  govcs.txt
  help.txt
  import_cycle.txt
  import_ignore.txt
  import_main.txt
  import_unix_tag.txt
  index.txt
  install_cgo_excluded.txt
  install_cleans_build.txt
  install_cmd_gobin.txt
  install_cross_gobin.txt
  install_dep_version.txt
  install_goroot_targets.txt
  install_modcacherw_issue64282.txt
  install_move_not_stale.txt
  install_msan_and_race_and_asan_require_cgo.txt
  install_rebuild_removed.txt
  install_relative_gobin_fail.txt
  install_shadow_gopath.txt
  issue36000.txt
  issue53586.txt
  ldflag.txt
  link_external_undef.txt
  link_matching_actionid.txt
  link_syso_deps.txt
  link_syso_issue33139.txt
  linkname.txt
  list_all_gobuild.txt
  list_ambiguous_path.txt
  list_bad_import.txt
  list_case_collision.txt
  list_cgo_compiled_importmap.txt
  list_compiled_files_issue28749.txt
  list_compiled_imports.txt
  list_compiler_output.txt
  list_constraints.txt
  list_dedup_packages.txt
  list_empty_import.txt
  list_err_cycle.txt
  list_err_stack.txt
  list_export_e.txt
  list_export_embed.txt
  list_find.txt
  list_find_nodeps.txt
  list_gofile_in_goroot.txt
  list_gomod_in_gopath.txt
  list_goroot_symlink.txt
  list_import_cycle_deps_errors.txt
  list_import_err.txt
  list_importmap.txt
  list_issue_56509.txt
  list_issue_59905.txt
  list_json_fields.txt
  list_json_with_f.txt
  list_legacy_mod.txt
  list_linkshared.txt
  list_load_err.txt
  list_module_when_error.txt
  list_overlay.txt
  list_parse_err.txt
  list_perm.txt
  list_pkgconfig_error.txt
  list_replace_absolute_windows.txt
  list_reserved.txt
  list_shadow.txt
  list_split_main.txt
  list_std.txt
  list_std_vendor.txt
  list_swigcxx.txt
  list_symlink.txt
  list_symlink_dotdotdot.txt
  list_symlink_internal.txt
  list_symlink_issue35941.txt
  list_symlink_vendor_issue14054.txt
  list_symlink_vendor_issue15201.txt
  list_test_cycle.txt
  list_test_e.txt
  list_test_err.txt
  list_test_imports.txt
  list_test_non_go_files.txt
  list_test_simple.txt
  list_wildcard_skip_nonmatching.txt
  load_test_pkg_err.txt
  malformed_gosum_issue62345.txt
  mod_all.txt
  mod_alt_goroot.txt
  mod_ambiguous_import.txt
  mod_auth.txt
  mod_bad_domain.txt
  mod_bad_filenames.txt
  mod_build_info_err.txt
  mod_build_tags.txt
  mod_build_trimpath_issue48557.txt
  mod_build_versioned.txt
  mod_cache_dir.txt
  mod_cache_rw.txt
  mod_case.txt
  mod_case_cgo.txt
  mod_clean_cache.txt
  mod_concurrent.txt
  mod_convert_git.txt
  mod_deprecate_message.txt
  mod_dir.txt
  mod_doc.txt
  mod_doc_path.txt
  mod_domain_root.txt
  mod_dot.txt
  mod_download.txt
  mod_download_concurrent_read.txt
  mod_download_exec_toolchain.txt
  mod_download_git_bareRepository.txt
  mod_download_git_decorate_full.txt
  mod_download_hash.txt
  mod_download_insecure_redirect.txt
  mod_download_issue51114.txt
  mod_download_json.txt
  mod_download_partial.txt
  mod_download_private_vcs.txt
  mod_download_replace_file.txt
  mod_download_svn.txt
  mod_download_too_many_redirects.txt
  mod_e.txt
  mod_edit.txt
  mod_edit_go.txt
  mod_edit_no_modcache.txt
  mod_edit_toolchain.txt
  mod_empty_err.txt
  mod_enabled.txt
  mod_exclude_go121.txt
  mod_file_proxy.txt
  mod_fileproxy_vcs_missing_issue51589.txt
  mod_find.txt
  mod_fs_patterns.txt
  mod_get_ambiguous_arg.txt
  mod_get_ambiguous_import.txt
  mod_get_ambiguous_pkg.txt
  mod_get_boost.txt
  mod_get_changes.txt
  mod_get_commit.txt
  mod_get_deprecate_install.txt
  mod_get_deprecated.txt
  mod_get_direct.txt
  mod_get_downadd_indirect.txt
  mod_get_downgrade.txt
  mod_get_downgrade_missing.txt
  mod_get_downup_artifact.txt
  mod_get_downup_indirect.txt
  mod_get_downup_indirect_pruned.txt
  mod_get_downup_pseudo_artifact.txt
  mod_get_errors.txt
  mod_get_exec_toolchain.txt
  mod_get_extra.txt
  mod_get_fallback.txt
  mod_get_fossil.txt
  mod_get_future.txt
  mod_get_go_file.txt
  mod_get_hash.txt
  mod_get_incompatible.txt
  mod_get_indirect.txt
  mod_get_insecure_redirect.txt
  mod_get_issue37438.txt
  mod_get_issue47650.txt
  mod_get_issue47979.txt
  mod_get_issue48511.txt
  mod_get_issue56494.txt
  mod_get_issue60490.txt
  mod_get_latest_pseudo.txt
  mod_get_lazy_indirect.txt
  mod_get_lazy_upgrade_lazy.txt
  mod_get_local.txt
  mod_get_main.txt
  mod_get_major.txt
  mod_get_missing_ziphash.txt
  mod_get_moved.txt
  mod_get_newcycle.txt
  mod_get_none.txt
  mod_get_nopkgs.txt
  mod_get_patch.txt
  mod_get_patchbound.txt
  mod_get_patchcycle.txt
  mod_get_patchmod.txt
  mod_get_patterns.txt
  mod_get_pkgtags.txt
  mod_get_prefer_incompatible.txt
  mod_get_promote_implicit.txt
  mod_get_pseudo.txt
  mod_get_pseudo_other_branch.txt
  mod_get_pseudo_prefix.txt
  mod_get_replaced.txt
  mod_get_retract.txt
  mod_get_retract_ambiguous.txt
  mod_get_split.txt
  mod_get_sum_noroot.txt
  mod_get_tags.txt
  mod_get_test.txt
  mod_get_toolchain.txt
  mod_get_trailing_slash.txt
  mod_get_update_unrelated_sum.txt
  mod_get_upgrade.txt
  mod_get_upgrade_pseudo.txt
  mod_get_wild.txt
  mod_getmode_vendor.txt
  mod_getx.txt
  mod_git_export_subst.txt
  mod_go_version.txt
  mod_go_version_missing.txt
  mod_go_version_mixed.txt
  mod_gobuild_import.txt
  mod_gofmt_invalid.txt
  mod_goline.txt
  mod_goline_old.txt
  mod_goline_too_new.txt
  mod_gomodcache.txt
  mod_gonoproxy.txt
  mod_gopkg_unstable.txt
  mod_goroot_errors.txt
  mod_graph.txt
  mod_graph_version.txt
  mod_help.txt
  mod_import.txt
  mod_import_cycle.txt
  mod_import_issue41113.txt
  mod_import_issue42891.txt
  mod_import_meta.txt
  mod_import_mod.txt
  mod_import_toolchain.txt
  mod_import_v1suffix.txt
  mod_in_testdata_dir.txt
  mod_indirect.txt
  mod_indirect_main.txt
  mod_indirect_nospace.txt
  mod_indirect_tidy.txt
  mod_init_empty.txt
  mod_init_invalid_major.txt
  mod_init_path.txt
  mod_init_tidy.txt
  mod_insecure_issue63845.txt
  mod_install_hint.txt
  mod_install_pkg_version.txt
  mod_install_versioned.txt
  mod_internal.txt
  mod_invalid_path.txt
  mod_invalid_path_dotname.txt
  mod_invalid_path_plus.txt
  mod_invalid_version.txt
  mod_issue35270.txt
  mod_issue35317.txt
  mod_lazy_consistency.txt
  mod_lazy_downgrade.txt
  mod_lazy_import_allmod.txt
  mod_lazy_new_import.txt
  mod_lazy_test_horizon.txt
  mod_lazy_test_of_test_dep.txt
  mod_list.txt
  mod_list_bad_import.txt
  mod_list_command_line_arguments.txt
  mod_list_compiled_concurrent.txt
  mod_list_deprecated.txt
  mod_list_deprecated_replace.txt
  mod_list_dir.txt
  mod_list_direct.txt
  mod_list_e_readonly.txt
  mod_list_issue61415.txt
  mod_list_issue61423.txt
  mod_list_odd_tags.txt
  mod_list_pseudo.txt
  mod_list_replace_dir.txt
  mod_list_retract.txt
  mod_list_std.txt
  mod_list_sums.txt
  mod_list_test.txt
  mod_list_test_cycle.txt
  mod_list_update_nolatest.txt
  mod_list_upgrade.txt
  mod_list_upgrade_pseudo.txt
  mod_load_badchain.txt
  mod_load_badmod.txt
  mod_load_badzip.txt
  mod_load_replace_mismatch.txt
  mod_local_replace.txt
  mod_missing_repo.txt
  mod_missingpkg_prerelease.txt
  mod_modinfo.txt
  mod_multirepo.txt
  mod_no_gopath.txt
  mod_nomod.txt
  mod_notall.txt
  mod_off.txt
  mod_off_init.txt
  mod_outside.txt
  mod_overlay.txt
  mod_patterns.txt
  mod_patterns_vendor.txt
  mod_perm.txt
  mod_permissions.txt
  mod_prefer_compatible.txt
  mod_proxy_errors.txt
  mod_proxy_https.txt
  mod_proxy_invalid.txt
  mod_proxy_list.txt
  mod_pseudo_cache.txt
  mod_query.txt
  mod_query_empty.txt
  mod_query_exclude.txt
  mod_query_main.txt
  mod_readonly.txt
  mod_replace.txt
  mod_replace_gopkgin.txt
  mod_replace_import.txt
  mod_replace_readonly.txt
  mod_require_exclude.txt
  mod_retention.txt
  mod_retract.txt
  mod_retract_fix_version.txt
  mod_retract_incompatible.txt
  mod_retract_noupgrade.txt
  mod_retract_pseudo_base.txt
  mod_retract_rationale.txt
  mod_retract_rename.txt
  mod_retract_replace.txt
  mod_retract_versions.txt
  mod_run_issue52331.txt
  mod_run_nonmain.txt
  mod_run_path.txt
  mod_run_pkg_version.txt
  mod_run_pkgerror.txt
  mod_skip_write.txt
  mod_stale.txt
  mod_std_vendor.txt
  mod_string_alias.txt
  mod_sum_ambiguous.txt
  mod_sum_issue56222.txt
  mod_sum_lookup.txt
  mod_sum_readonly.txt
  mod_sum_replaced.txt
  mod_sumdb.txt
  mod_sumdb_cache.txt
  mod_sumdb_file_path.txt
  mod_sumdb_golang.txt
  mod_sumdb_proxy.txt
  mod_symlink.txt
  mod_symlink_dotgo.txt
  mod_tagged_import_cycle.txt
  mod_test.txt
  mod_test_cached.txt
  mod_test_files.txt
  mod_tidy.txt
  mod_tidy_compat.txt
  mod_tidy_compat_added.txt
  mod_tidy_compat_ambiguous.txt
  mod_tidy_compat_deleted.txt
  mod_tidy_compat_implicit.txt
  mod_tidy_compat_incompatible.txt
  mod_tidy_compat_irrelevant.txt
  mod_tidy_convergence.txt
  mod_tidy_convergence_loop.txt
  mod_tidy_cycle.txt
  mod_tidy_downgrade_ambiguous.txt
  mod_tidy_duplicates.txt
  mod_tidy_error.txt
  mod_tidy_indirect.txt
  mod_tidy_issue60313.txt
  mod_tidy_lazy_self.txt
  mod_tidy_newroot.txt
  mod_tidy_old.txt
  mod_tidy_oldgo.txt
  mod_tidy_quote.txt
  mod_tidy_replace.txt
  mod_tidy_replace_old.txt
  mod_tidy_sum.txt
  mod_tidy_support_buildx.txt
  mod_tidy_symlink_issue35941.txt
  mod_tidy_temp.txt
  mod_tidy_version.txt
  mod_tidy_version_tooold.txt
  mod_toolchain.txt
  mod_toolchain_slash.txt
  mod_update_sum_readonly.txt
  mod_upgrade_patch.txt
  mod_vcs_missing.txt
  mod_vendor.txt
  mod_vendor_auto.txt
  mod_vendor_build.txt
  mod_vendor_embed.txt
  mod_vendor_gomod.txt
  mod_vendor_goversion.txt
  mod_vendor_issue46867.txt
  mod_vendor_nodeps.txt
  mod_vendor_redundant_requirement.txt
  mod_vendor_replace.txt
  mod_vendor_trimpath.txt
  mod_vendor_unused.txt
  mod_vendor_unused_only.txt
  mod_verify.txt
  mod_versions.txt
  mod_why.txt
  modfile_flag.txt
  noncanonical_import.txt
  old_tidy_toolchain.txt
  pattern_syntax_error.txt
  prevent_sys_unix_import.txt
  repro_build.txt
  reuse_git.txt
  run_dirs.txt
  run_hello.txt
  run_hello_pkg.txt
  run_internal.txt
  run_issue11709.txt
  run_issue51125.txt
  run_set_executable_name.txt
  run_vendor.txt
  run_wildcard.txt
  run_work_versioned.txt
  script_help.txt
  script_wait.txt
  slashpath.txt
  src_file.txt
  std_vendor.txt
  test2json_interrupt.txt
  test_android_issue62123.txt
  test_bad_example.txt
  test_badtest.txt
  test_benchmark_1x.txt
  test_benchmark_chatty_fail.txt
  test_benchmark_chatty_success.txt
  test_benchmark_fatal.txt
  test_benchmark_labels.txt
  test_benchmark_timeout.txt
  test_build_failure.txt
  test_buildvcs.txt
  test_cache_inputs.txt
  test_chatty_fail.txt
  test_chatty_parallel_fail.txt
  test_chatty_parallel_success.txt
  test_chatty_parallel_success_run.txt
  test_chatty_success.txt
  test_cleanup_failnow.txt
  test_compile_binary.txt
  test_compile_multi_pkg.txt
  test_compile_tempfile.txt
  test_deadline.txt
  test_empty.txt
  test_env_term.txt
  test_example_goexit.txt
  test_exit.txt
  test_fail_fast.txt
  test_fail_newline.txt
  test_finished_subtest_goroutines.txt
  test_flag.txt
  test_flags.txt
  test_fullpath.txt
  test_fuzz.txt
  test_fuzz_cache.txt
  test_fuzz_chatty.txt
  test_fuzz_cleanup.txt
  test_fuzz_cov.txt
  test_fuzz_deadline.txt
  test_fuzz_dup_cache.txt
  test_fuzz_err_deadlock.txt
  test_fuzz_fuzztime.txt
  test_fuzz_io_error.txt
  test_fuzz_limit_dup_entry.txt
  test_fuzz_match.txt
  test_fuzz_minimize.txt
  test_fuzz_minimize_dirty_cov.txt
  test_fuzz_minimize_interesting.txt
  test_fuzz_modcache.txt
  test_fuzz_multiple.txt
  test_fuzz_mutate_crash.txt
  test_fuzz_mutate_fail.txt
  test_fuzz_mutator.txt
  test_fuzz_mutator_repeat.txt
  test_fuzz_non_crash_signal.txt
  test_fuzz_parallel.txt
  test_fuzz_profile_flags.txt
  test_fuzz_return.txt
  test_fuzz_run.txt
  test_fuzz_seed_corpus.txt
  test_fuzz_setenv.txt
  test_fuzz_test_race.txt
  test_fuzz_unsupported.txt
  test_generated_main.txt
  test_go111module_cache.txt
  test_goroot_PATH.txt
  test_import_error_stack.txt
  test_issue45477.txt
  test_json.txt
  test_json_exit.txt
  test_json_interleaved.txt
  test_json_issue35169.txt
  test_json_panic_exit.txt
  test_json_prints.txt
  test_json_timeout.txt
  test_main.txt
  test_main_archive.txt
  test_main_panic.txt
  test_main_twice.txt
  test_match_benchmark_labels.txt
  test_match_no_benchmarks.txt
  test_match_no_subtests.txt
  test_match_no_subtests_failure.txt
  test_match_no_subtests_parallel.txt
  test_match_no_tests.txt
  test_match_no_tests_build_failure.txt
  test_match_no_tests_with_subtests.txt
  test_match_only_benchmarks.txt
  test_match_only_example.txt
  test_match_only_subtests.txt
  test_match_only_subtests_parallel.txt
  test_match_only_tests.txt
  test_minus_n.txt
  test_no_run_example.txt
  test_no_tests.txt
  test_overlay.txt
  test_parallel_number.txt
  test_ppc64_linker_funcs.txt
  test_ppc64le_cgo_inline_plt.txt
  test_profile.txt
  test_race.txt
  test_race_cover_mode_issue20435.txt
  test_race_install.txt
  test_race_install_cgo.txt
  test_race_tag.txt
  test_rebuildall.txt
  test_regexps.txt
  test_relative_cmdline.txt
  test_relative_import.txt
  test_script_cmdcd.txt
  test_shuffle.txt
  test_skip.txt
  test_source_order.txt
  test_status.txt
  test_syntax_error_says_fail.txt
  test_timeout.txt
  test_timeout_stdin.txt
  test_trimpath.txt
  test_trimpath_main.txt
  test_trimpath_test_suffix.txt
  test_vendor.txt
  test_vet.txt
  test_write_profiles_on_timeout.txt
  test_xtestonly_works.txt
  testing_coverage.txt
  testing_issue40908.txt
  toolexec.txt
  tooltags.txt
  trampoline_reuse_test.txt
  vendor_complex.txt
  vendor_gopath_issue11409.txt
  vendor_import.txt
  vendor_import_missing.txt
  vendor_import_wrong.txt
  vendor_internal.txt
  vendor_issue12156.txt
  vendor_list_issue11977.txt
  vendor_outside_module.txt
  vendor_resolve.txt
  vendor_test_issue11864.txt
  vendor_test_issue14613.txt
  version.txt
  version_build_settings.txt
  version_buildvcs_bzr.txt
  version_buildvcs_fossil.txt
  version_buildvcs_git.txt
  version_buildvcs_hg.txt
  version_buildvcs_nested.txt
  version_cshared.txt
  version_gc_sections.txt
  version_goexperiment.txt
  version_replace.txt
  vet.txt
  vet_asm.txt
  vet_deps.txt
  vet_flags.txt
  vet_internal.txt
  work.txt
  work_build_no_modules.txt
  work_disablevendor.txt
  work_edit.txt
  work_edit_toolchain.txt
  work_empty_panic_GOPATH.txt
  work_env.txt
  work_get_toolchain.txt
  work_goline_order.txt
  work_goproxy_off.txt
  work_gowork.txt
  work_init_gowork.txt
  work_init_path.txt
  work_init_toolchain.txt
  work_install_submodule.txt
  work_issue51204.txt
  work_issue54048.txt
  work_issue54372.txt
  work_module_not_in_go_work.txt
  work_nowork.txt
  work_prune.txt
  work_prune_all.txt
  work_regression_hang.txt
  work_reject_modfile.txt
  work_replace.txt
  work_replace_conflict.txt
  work_replace_conflict_override.txt
  work_replace_main_module.txt
  work_sum.txt
  work_sum_mismatch.txt
  work_sync.txt
  work_sync_irrelevant_dependency.txt
  work_sync_missing_module.txt
  work_sync_relevant_dependency.txt
  work_sync_sum.txt
  work_sync_toolchain.txt
  work_use.txt
  work_use_deleted.txt
  work_use_dot.txt
  work_use_issue50958.txt
  work_use_issue55952.txt
  work_use_only_dirs.txt
  work_use_toolchain.txt
  work_vendor_empty.txt
  work_vendor_main_module_replaced.txt
  work_vendor_modules_txt_conditional.txt
  work_vendor_modules_txt_consistent.txt
  work_vendor_prune.txt
  work_vendor_prune_all.txt
  work_vet.txt
  work_why_download_graph.txt
Size: Mime:
This file is generated by 'go generate cmd/go'. DO NOT EDIT.

This directory holds test scripts *.txt run during 'go test cmd/go'.
To run a specific script foo.txt

	go test cmd/go -run=Script/^foo$

In general script files should have short names: a few words, not whole sentences.
The first word should be the general category of behavior being tested,
often the name of a go subcommand (list, build, test, ...) or concept (vendor, pattern).

Each script is a text archive (go doc internal/txtar).
The script begins with an actual command script to run
followed by the content of zero or more supporting files to
create in the script's temporary file system before it starts executing.

As an example, run_hello.txt says:

	# hello world
	go run hello.go
	stderr 'hello world'
	! stdout .

	-- hello.go --
	package main
	func main() { println("hello world") }

Each script runs in a fresh temporary work directory tree, available to scripts as $WORK.
Scripts also have access to other environment variables, including:

	GOARCH=<target GOARCH>
	GOCACHE=<actual GOCACHE being used outside the test>
	GOEXE=<executable file suffix: .exe on Windows, empty on other systems>
	GOOS=<target GOOS>
	GOPATH=$WORK/gopath
	GOPROXY=<local module proxy serving from cmd/go/testdata/mod>
	GOROOT=<actual GOROOT>
	GOROOT_FINAL=<actual GOROOT_FINAL>
	TESTGO_GOROOT=<GOROOT used to build cmd/go, for use in tests that may change GOROOT>
	HOME=/no-home
	PATH=<actual PATH>
	TMPDIR=$WORK/tmp
	GODEBUG=<actual GODEBUG>
	devnull=<value of os.DevNull>
	goversion=<current Go version; for example, 1.12>

On Plan 9, the variables $path and $home are set instead of $PATH and $HOME.
On Windows, the variables $USERPROFILE and $TMP are set instead of
$HOME and $TMPDIR.

The lines at the top of the script are a sequence of commands to be executed by
a small script engine configured in ../../script_test.go (not the system shell).

The scripts' supporting files are unpacked relative to $GOPATH/src
(aka $WORK/gopath/src) and then the script begins execution in that directory as
well. Thus the example above runs in $WORK/gopath/src with GOPATH=$WORK/gopath
and $WORK/gopath/src/hello.go containing the listed contents.

Each line of a script is parsed into a sequence of space-separated command
words, with environment variable expansion within each word and # marking
an end-of-line comment. Additional variables named ':' and '/' are expanded
within script arguments (expanding to the value of os.PathListSeparator and
os.PathSeparator respectively) but are not inherited in subprocess environments.

Adding single quotes around text keeps spaces in that text from being treated
as word separators and also disables environment variable expansion. Inside a
single-quoted block of text, a repeated single quote indicates a literal single
quote, as in:

    'Don''t communicate by sharing memory.'

A line beginning with # is a comment and conventionally explains what is being
done or tested at the start of a new section of the script.

Commands are executed one at a time, and errors are checked for each command;
if any command fails unexpectedly, no subsequent commands in the script are
executed. The command prefix ! indicates that the command on the rest of the
line (typically go or a matching predicate) must fail instead of succeeding.
The command prefix ? indicates that the command may or may not succeed, but the
script should continue regardless.

The command prefix [cond] indicates that the command on the rest of the line
should only run when the condition is satisfied.

A condition can be negated: [!root] means to run the rest of the line only if
the user is not root. Multiple conditions may be given for a single command,
for example, '[linux] [amd64] skip'. The command will run if all conditions are
satisfied.

When TestScript runs a script and the script fails, by default TestScript shows
the execution of the most recent phase of the script (since the last # comment)
and only shows the # comments for earlier phases. For example, here is a
multi-phase script with a bug in it:

	# GOPATH with p1 in d2, p2 in d2
	env GOPATH=$WORK${/}d1${:}$WORK${/}d2

	# build & install p1
	env
	go install -i p1
	! stale p1
	! stale p2

	# modify p2 - p1 should appear stale
	cp $WORK/p2x.go $WORK/d2/src/p2/p2.go
	stale p1 p2

	# build & install p1 again
	go install -i p11
	! stale p1
	! stale p2

	-- $WORK/d1/src/p1/p1.go --
	package p1
	import "p2"
	func F() { p2.F() }
	-- $WORK/d2/src/p2/p2.go --
	package p2
	func F() {}
	-- $WORK/p2x.go --
	package p2
	func F() {}
	func G() {}

The bug is that the final phase installs p11 instead of p1. The test failure looks like:

	$ go test -run=Script
	--- FAIL: TestScript (3.75s)
	    --- FAIL: TestScript/install_rebuild_gopath (0.16s)
	        script_test.go:223:
	            # GOPATH with p1 in d2, p2 in d2 (0.000s)
	            # build & install p1 (0.087s)
	            # modify p2 - p1 should appear stale (0.029s)
	            # build & install p1 again (0.022s)
	            > go install -i p11
	            [stderr]
	            can't load package: package p11: cannot find package "p11" in any of:
	            	/Users/rsc/go/src/p11 (from $GOROOT)
	            	$WORK/d1/src/p11 (from $GOPATH)
	            	$WORK/d2/src/p11
	            [exit status 1]
	            FAIL: unexpected go command failure

	        script_test.go:73: failed at testdata/script/install_rebuild_gopath.txt:15 in $WORK/gopath/src

	FAIL
	exit status 1
	FAIL	cmd/go	4.875s
	$

Note that the commands in earlier phases have been hidden, so that the relevant
commands are more easily found, and the elapsed time for a completed phase
is shown next to the phase heading. To see the entire execution, use "go test -v",
which also adds an initial environment dump to the beginning of the log.

Note also that in reported output, the actual name of the per-script temporary directory
has been consistently replaced with the literal string $WORK.

The cmd/go test flag -testwork (which must appear on the "go test" command line after
standard test flags) causes each test to log the name of its $WORK directory and other
environment variable settings and also to leave that directory behind when it exits,
for manual debugging of failing tests:

	$ go test -run=Script -work
	--- FAIL: TestScript (3.75s)
	    --- FAIL: TestScript/install_rebuild_gopath (0.16s)
	        script_test.go:223:
	            WORK=/tmp/cmd-go-test-745953508/script-install_rebuild_gopath
	            GOARCH=
	            GOCACHE=/Users/rsc/Library/Caches/go-build
	            GOOS=
	            GOPATH=$WORK/gopath
	            GOROOT=/Users/rsc/go
	            HOME=/no-home
	            TMPDIR=$WORK/tmp
	            exe=

	            # GOPATH with p1 in d2, p2 in d2 (0.000s)
	            # build & install p1 (0.085s)
	            # modify p2 - p1 should appear stale (0.030s)
	            # build & install p1 again (0.019s)
	            > go install -i p11
	            [stderr]
	            can't load package: package p11: cannot find package "p11" in any of:
	            	/Users/rsc/go/src/p11 (from $GOROOT)
	            	$WORK/d1/src/p11 (from $GOPATH)
	            	$WORK/d2/src/p11
	            [exit status 1]
	            FAIL: unexpected go command failure

	        script_test.go:73: failed at testdata/script/install_rebuild_gopath.txt:15 in $WORK/gopath/src

	FAIL
	exit status 1
	FAIL	cmd/go	4.875s
	$

	$ WORK=/tmp/cmd-go-test-745953508/script-install_rebuild_gopath
	$ cd $WORK/d1/src/p1
	$ cat p1.go
	package p1
	import "p2"
	func F() { p2.F() }
	$

The available commands are:
cat files...
	concatenate files and print to the script's stdout buffer


cc args...
	run the platform C compiler


cd dir
	change the working directory


chmod perm paths...
	change file mode bits

	Changes the permissions of the named files or directories to
	be equal to perm.
	Only numerical permissions are supported.

cmp [-q] file1 file2
	compare files for differences

	By convention, file1 is the actual data and file2 is the
	expected data.
	The command succeeds if the file contents are identical.
	File1 can be 'stdout' or 'stderr' to compare the stdout or
	stderr buffer from the most recent command.

cmpenv [-q] file1 file2
	compare files for differences, with environment expansion

	By convention, file1 is the actual data and file2 is the
	expected data.
	The command succeeds if the file contents are identical
	after substituting variables from the script environment.
	File1 can be 'stdout' or 'stderr' to compare the script's
	stdout or stderr buffer.

cp src... dst
	copy files to a target file or directory

	src can include 'stdout' or 'stderr' to copy from the
	script's stdout or stderr buffer.

echo string...
	display a line of text


env [key[=value]...]
	set or log the values of environment variables

	With no arguments, print the script environment to the log.
	Otherwise, add the listed key=value pairs to the environment
	or print the listed keys.

exec program [args...] [&]
	run an executable program with arguments

	Note that 'exec' does not terminate the script (unlike Unix
	shells).

exists [-readonly] [-exec] file...
	check that files exist


go [args...] [&]
	run the 'go' program provided by the script host


grep [-count=N] [-q] 'pattern' file
	find lines in a file that match a pattern

	The command succeeds if at least one match (or the exact
	count, if given) is found.
	The -q flag suppresses printing of matches.

help [-v] name...
	log help text for commands and conditions

	To display help for a specific condition, enclose it in
	brackets: 'help [amd64]'.
	To display complete documentation when listing all commands,
	pass the -v flag.

mkdir path...
	create directories, if they do not already exist

	Unlike Unix mkdir, parent directories are always created if
	needed.

mv old new
	rename a file or directory to a new path

	OS-specific restrictions may apply when old and new are in
	different directories.

replace [old new]... file
	replace strings in a file

	The 'old' and 'new' arguments are unquoted as if in quoted
	Go strings.

rm path...
	remove a file or directory

	If the path is a directory, its contents are removed
	recursively.

skip [msg]
	skip the current test


sleep duration [&]
	sleep for a specified duration

	The duration must be given as a Go time.Duration string.

stale target...
	check that build targets are stale


stderr [-count=N] [-q] 'pattern' file
	find lines in the stderr buffer that match a pattern

	The command succeeds if at least one match (or the exact
	count, if given) is found.
	The -q flag suppresses printing of matches.

stdout [-count=N] [-q] 'pattern' file
	find lines in the stdout buffer that match a pattern

	The command succeeds if at least one match (or the exact
	count, if given) is found.
	The -q flag suppresses printing of matches.

stop [msg]
	stop execution of the script

	The message is written to the script log, but no error is
	reported from the script engine.

symlink path -> target
	create a symlink

	Creates path as a symlink to target.
	The '->' token (like in 'ls -l' output on Unix) is required.

wait 
	wait for completion of background commands

	Waits for all background commands to complete.
	The output (and any error) from each command is printed to
	the log in the order in which the commands were started.
	After the call to 'wait', the script's stdout and stderr
	buffers contain the concatenation of the background
	commands' outputs.



The available conditions are:
[GOARCH:*]
	runtime.GOARCH == <suffix>
[GODEBUG:*]
	GODEBUG contains <suffix>
[GOEXPERIMENT:*]
	GOEXPERIMENT <suffix> is enabled
[GOOS:*]
	runtime.GOOS == <suffix>
[abscc]
	default $CC path is absolute and exists
[asan]
	GOOS/GOARCH supports -asan
[buildmode:*]
	go supports -buildmode=<suffix>
[case-sensitive]
	$WORK filesystem is case-sensitive
[cc:*]
	go env CC = <suffix> (ignoring the go/env file)
[cgo]
	host CGO_ENABLED
[cgolinkext]
	platform requires external linking for cgo
[compiler:*]
	runtime.Compiler == <suffix>
[cross]
	cmd/go GOOS/GOARCH != GOHOSTOS/GOHOSTARCH
[exec:*]
	<suffix> names an executable in the test binary's PATH
[fuzz]
	GOOS/GOARCH supports -fuzz
[fuzz-instrumented]
	GOOS/GOARCH supports -fuzz with instrumentation
[git]
	the 'git' executable exists and provides the standard CLI
[go-builder]
	GO_BUILDER_NAME is non-empty
[link]
	testenv.HasLink()
[mismatched-goroot]
	test's GOROOT_FINAL does not match the real GOROOT
[msan]
	GOOS/GOARCH supports -msan
[mustlinkext]
	platform always requires external linking
[net:*]
	can connect to external network host <suffix>
[race]
	GOOS/GOARCH supports -race
[root]
	os.Geteuid() == 0
[short]
	testing.Short()
[symlink]
	testenv.HasSymlink()
[trimpath]
	test binary was built with -trimpath
[verbose]
	testing.Verbose()