<commit_before>#!/bin/sh -xe

../dnscap -g -r dns.pcap.dist 2>dns.out

diff dns.out "$srcdir/dns.gold"<commit_msg>Suppress OpenBSD warnings about symbols<commit_after>#!/bin/sh -xe

../dnscap -g -r dns.pcap.dist 2>dns.out

osrel=`uname -s`
if [ "$osrel" = "OpenBSD" ]; then
    mv dns.out dns.out.old
    grep -v "^dnscap.*WARNING.*symbol.*relink" dns.out.old > dns.out
    rm dns.out.old
fi

diff dns.out "$srcdir/dns.gold"
{'fraction_non_alphanumeric': 0.18396226415094338, 'fraction_numerical': 0.0047169811320754715, 'mean_word_length': 3.1666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '761435', 'n_tokens_mistral': 200, 'n_tokens_neox': 193, 'n_words': 40}