content: ## nextest config for this fixture
  
  # Note that these versions are not necessarily the version of nextest that's actually required --
  # they're only for testing with test_show_config_version.
  nextest-version = { required = "0.9.54", recommended = "0.9.56" }
  
  # This must be on one line for test_setup_scripts_not_enabled to work.
  experimental = ["setup-scripts", "wrapper-scripts"]
  
  [profile.default]
  # disable fail-fast to ensure a deterministic test run
  fail-fast = false
  
  [[profile.default.scripts]]
  platform = { host = "cfg(unix)" }
  filter = "test(=test_cargo_env_vars)"
  setup = "my-script-unix"
  run-wrapper = "wrapper1-unix"
  
  [[profile.default.scripts]]
  platform = { host = "cfg(windows)" }
  filter = "test(=test_cargo_env_vars)"
  setup = "my-script-windows"
  run-wrapper = "wrapper1-windows"
  
  [[profile.default.scripts]]
  platform = { host = "cfg(unix)" }
  filter = "binary(nextest-tests)"
  setup = "my-script-unix"
  list-wrapper = "wrapper1-unix"
  
  [[profile.default.scripts]]
  platform = { host = "cfg(windows)" }
  filter = "binary(nextest-tests)"
  setup = "my-script-windows"
  list-wrapper = "wrapper1-windows"
  
  [[profile.default.overrides]]
  # This override goes before the next one to ensure that
  # test_subprocess_doesnt_exit_leak_fail applies first.
  filter = "test(=test_subprocess_doesnt_exit_leak_fail)"
  leak-timeout = { period = "100ms", result = "fail" }
  
  [[profile.default.overrides]]
  # For Windows: See https://github.com/nextest-rs/nextest/issues/984.
  #
  # For illumos: Under stress, some tests can incorrectly say they're leaky. For example:
  # https://buildomat.eng.oxide.computer/wg/0/details/01J5HQ7T1J3WRZ4KSSE92YS1RZ/40lQc6hVXJWGG966LAWGP2Ckgw0pIJnd9lfzC4K8OQOpwRO5/01J5HQ814KXZADXRAMX89GC8J1#S1469.
  platform = { host = 'cfg(any(windows, target_os = "illumos"))' }
  leak-timeout = '1s'
  
  [profile.with-retries]
  retries = 2
  
  # Test out serial tests.
  [[profile.with-retries.overrides]]
  filter = "test(=test_success) | test(=test_execute_bin)"
  test-group = 'serial'
  
  # Run test_flaky_mod_6 with 5 retries (6 tries) rather than 2.
  [[profile.with-retries.overrides]]
  filter = "test(=test_flaky_mod_6)"
  threads-required = 2
  retries = 5
  
  # Ensure that the earlier retry setting for test_flaky_mod_6 overrides the later one,
  # and also run test_flaky_mod_4 with 4 retries (5 tries): try 4/5 should pass.
  [[profile.with-retries.overrides]]
  
  # This is specified as a multiline filter to ensure that we can deal with such parsers.
  filter = """
      test(test_flaky_mod)
      | test(~test_flaky_mod_4)
  """
  
  retries = 4
  test-group = 'flaky'
  
  [profile.with-termination]
  slow-timeout = { period = "1s", terminate-after = 2 }
  
  [[profile.with-termination.overrides]]
  filter = 'test(=test_slow_timeout_2)'
  # This is set to 1 second
  slow-timeout = { period = "500ms", terminate-after = 2 }
  test-group = '@global'
  
  [profile.with-junit]
  retries = 2
  
  [[profile.with-junit.overrides]]
  filter = "test(test_flaky_mod_4)"
  retries = 3
  
  [profile.with-junit.junit]
  path = "junit.xml"
  
  [profile.retries-with-backoff]
  retries = { backoff = "exponential", count = 2, jitter = true, delay = "1s" }
  
  [profile.with-default-filter]
  default-filter = "not (test(test_flaky) | package(cdylib-example))"
  
  # Platform-specific default filters.
  [[profile.with-default-filter.overrides]]
  platform = 'cfg(unix)'
  default-filter = "not (test(test_flaky) | package(cdylib-example) | test(test_cargo_env_vars))"
  
  [profile.archive-all]
  archive.include = [{ path = "", relative-to = "target" }]
  
  # Test priority support.
  [profile.with-priorities]
  default-filter = "test(=test_success) | test(=test_cargo_env_vars) | test(=test_flaky_mod_4)"
  
  [[profile.with-priorities.overrides]]
  # test_cargo_env_vars is alphabetically before test_success, but priority forces
  # it to be run last.
  filter = "test(=test_cargo_env_vars)"
  priority = -50
  
  [[profile.with-priorities.overrides]]
  filter = "test(=test_success)"
  priority = 50
  
  [test-groups.flaky]
  max-threads = 4
  
  [test-groups.unused]
  max-threads = 20
  
  [test-groups.serial]
  max-threads = 1
  
  [scripts.setup.my-script-unix]
  # Setup scripts are already relative to the workspace root. But using
  # `my-script.sh` rather than `./my-script.sh` means that we test that the path
  # is *joined* to the workspace root.
  command = { command-line = "my-script.sh", relative-to = "workspace-root" }
  
  [scripts.setup.my-script-windows]
  # On Windows, we test the command not being joined to the workspace root. In
  # this case we also want to check that the cwd is the workspace root. Passing in
  # "scripts\\my-script.bat" ensures this.
  command = 'cmd /c "scripts\\my-script.bat"'
  
  [scripts.wrapper.wrapper1-unix]
  command = { command-line = "./debug/wrapper within", relative-to = "target" }
  target-runner = "within-wrapper"
  
  [scripts.wrapper.wrapper1-windows]
  command = { command-line = "debug/wrapper.exe within", relative-to = "target" }
  target-runner = "within-wrapper"
  
  # TODO: tests for around/override/ignore target runner
  