<commit_before>#!/usr/bin/env bash
#
# Test VMDq with automatic pool selection

SNABB_SEND_BLAST=true SNABB_SEND_BLAST_RATE=1e9 ./testsend.snabb $SNABB_PCI_INTEL1G1 0 source2.pcap &
BLAST=$!

SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL1G0 "90:72:82:78:c9:7a" nil nil nil > results.0 &
PID1=$!
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL1G0 "12:34:56:78:9a:bc" nil nil nil > results.1

wait $PID1
kill -9 $BLAST

# FIXME: one pool receives a ton of packets, one only a tiny amount. Generally,<commit_msg>intel_mp: fix selftest from the future<commit_after>#!/usr/bin/env bash
#
# Test VMDq with automatic pool selection

SNABB_SEND_BLAST=true SNABB_SEND_BLAST_RATE=1e9 ./testsend.snabb $SNABB_PCI_INTEL1G1 0 source2.pcap &
BLAST=$!

SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL1G0 "90:72:82:78:c9:7a" nil nil 0 > results.0 &
PID1=$!
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL1G0 "12:34:56:78:9a:bc" nil nil 0 > results.1

wait $PID1
kill -9 $BLAST

# FIXME: one pool receives a ton of packets, one only a tiny amount. Generally,
{'fraction_non_alphanumeric': 0.10845431255337319, 'fraction_numerical': 0.06660973526900085, 'mean_word_length': 6.0602409638554215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2394659', 'n_tokens_mistral': 564, 'n_tokens_neox': 536, 'n_words': 110}