Commit 5a0c8dd3 authored by Daniel Kahn Gillmor's avatar Daniel Kahn Gillmor

sort generated .ds files by key tag

DNS RRs of the same name and type do not appear to have any ordering.
To make sure we're testing the logical similarity between .ds files,
we impose a canonical ordering based on key tag.

while we're at it, use diff -u for the test, since unified diff format
is easier for most folks to read these days.
parent 84834634
......@@ -15,13 +15,13 @@ override_dh_auto_build:
openssl smime -verify -noverify -inform DER -in root-anchors.p7s -content root-anchors.xml
# Create key from validated root-anchors.xml
./parse-root-anchors.sh < root-anchors.xml > root-anchors.ds
./parse-root-anchors.sh < root-anchors.xml | sort -k 4 -n > root-anchors.ds
# Create key from downloaded root.key
/usr/bin/ldns-key2ds -n -2 root.key | sed -e 's/\t/ /g' -e 's/ 172800//' > root.ds
/usr/bin/ldns-key2ds -n -2 root.key | sed -e 's/\t/ /g' -e 's/ 172800//' | sort -k 4 -n > root.ds
# Compare the DS from root.key and from root-anchors.xml
diff root-anchors.ds root.ds
diff -u root-anchors.ds root.ds
override_dh_auto_clean:
rm -f root-anchors.ds root.ds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment