1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/bin/sh
set -ex
case "$BUILD_MODE" in
release)
RUST_LOG=sniffglue target/$TARGET/release/sniffglue -r pcaps/SkypeIRC.pcap > /dev/null
;;
boxxy)
if ! cat ci/boxxy_stage0.txt | RUST_LOG=boxxy cargo run --example boxxy | grep -q 'cargo run --example boxxy'; then
echo SANDOX ERROR: expected match
exit 1
fi
if ! cat ci/boxxy_stage1.txt | RUST_LOG=boxxy cargo run --example boxxy | grep -q 'cargo run --example boxxy'; then
echo SANDOX ERROR: expected match
exit 1
fi
if cat ci/boxxy_stage2.txt | RUST_LOG=boxxy cargo run --example boxxy | grep -q 'cargo run --example boxxy'; then
echo SANDOX ERROR: expected NO match
exit 1
fi
;;
reprotest)
docker run --privileged reprotest-sniffglue ci/reprotest.sh || true
;;
cross)
# do not execute tests when cross compiling
;;
esac
|