mix rfc7208.testsuite (Spfcheck v0.9.0) View Source

This mix task takes the rfc7208 testsuite (a yaml file) and for each section it creates:

  • a test-file in the test dir, and
  • a zone-file in the test/zones subdir.

Usage:

mix rfc7208.testsuite
mix test
mix test --only set:x, where x is in 0..14
mix test --only tst:x.y, where y refers to a specific test in section x

More information at www.open-spf.org:

Sections of the rfc7208 testsuite include:

  • 0 - Initial processing
  • 1 - Record lookup
  • 2 - Selecting records <- donot copy SPF record to a TXT record
  • 3 - Record evaluation
  • 4 - ALL mechanism syntax
  • 5 - PTR mechanism syntax
  • 6 - A mechanism syntax
  • 7 - INCLUDE mechanism syntax
  • 8 - MX mechanism syntax
  • 9 - EXISTS mechanism syntax
  • 10 - IP4 mechanism syntax
  • 11 - IP6 mechanism syntax
  • 12 - Semantics of EXP and other modifiers
  • 13 - Macro expansion rules
  • 14 - Processing limits