This is an archive of the discontinued LLVM Phabricator instance.

Improve unsupported lit test config for print-changed=dot-cfg
ClosedPublic

Authored by jamieschmeiser on Nov 4 2021, 7:10 AM.

Details

Summary

Expand testing of necessary features for print-changed=dot-cfg.

Expand the testing for whether the lit tests for print-changed=dot-cfg
are supported to include checking whether dot supports pdf output.

Diff Detail

Event Timeline

jamieschmeiser created this revision.Nov 4 2021, 7:10 AM
jamieschmeiser requested review of this revision.Nov 4 2021, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2021, 7:10 AM
hvdijk accepted this revision.Nov 30 2021, 2:23 PM

Apologies, forgot about this, and thanks. I personally think it might have been slightly simpler to check whether dot -Tpdf </dev/null (or an equivalent that avoids the shell) exits successfully, instead of having to parse dot's output, but since you already have it working this way, I'm also okay if you want to leave it as it is.

This revision is now accepted and ready to land.Nov 30 2021, 2:23 PM

The dot documentation I saw recommended this method of checking whether an output format was supported.