Hello 9fans,

I am trying to write a test target in an mkfile which checks a few
negative tests.

My intuition was that this would be written as

test:QV:
  ! command1
  ! command2
  …

However, such a recipe always fails since mk will fail if command1 has a
non-empty exit status.

Thus I wonder: What the idiomatic way of doing this?

The best solution I have found thus far is to write:

test:QVE:
   ! command1 && ! command2 && …

But this makes it rather less intelligible.

Best regards,
 Håkon



Reply via email to