set -eux
{
sleep 0.01
cat tests/test_input.txt
} | cargo run --example stdin | diff -u tests/test_output.txt -
cargo run --example stdin </dev/null | tail -n +2 | diff -u /dev/null -
cat tests/test_actix_web_input.txt | cargo run --example stdin_actix_web | diff -u tests/test_actix_web_output.txt -
cargo run --example stdin_actix_web </dev/null | tail -n +2 | diff -u /dev/null -
cargo run --example seek
diff -q tests/seek.txt <(echo aaccccAAbbbbbbbb)