[File] Level 0 test semantics
Christos Zoulas
christos at zoulas.com
Sat Nov 30 15:44:46 UTC 2024
> On Nov 12, 2024, at 1:09 AM, Marco Antoniotti <marcoxa at gmail.com> wrote:
>
> Hi
>
>
>
> Just a question about “test semantics “.
>
>
>
> Are all level 0 tests in a specification performed, or as soon as one succeeded the next ones are discarded?
>
>
>
> Cf., the “pdf” specification.
>
I test is considered successful if it matches and it prints something. If it does not print something then the next level is checked until a level matches and it prints something. If something matches and it prints, then the rest of the magic entry is consulted until it is fully consumed at then processing stops (unless -k is specified).
christos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20241130/9016db37/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20241130/9016db37/attachment.asc>
More information about the File
mailing list