Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Fork process for each test case #22

@nmattia

Description

@nmattia

My test cases sometimes leave zombie threads hanging around, which sometimes causes issues in unrelated test cases. I'd like to be able to run one test case per process for better isolation, until I can make sure all threads are reaped properly. For the moment I am using the following:

  while IFS= read -r exe; do
    echo "found test exe $exe"
    while IFS= read -r test; do
      echo "found test name $test"
      "$exe" --exact "$test"
    done < <("$exe" --list | grep '.*: test$' | sed 's/: test$//g')
  done < <(cat cargo-output.json | jq -cMr 'select(.reason == "compiler-artifact" and .target.kind == [ "test" ]) | .executable')

where cargo-output.json is cargo's message-format output. This is far from ideal, and I'd love support for this in libtest.

Do you reckon there are technical reasons why it can't be made?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions