mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 05:53:09 +00:00
e6802690b8
Add short-term validation test workflow
16 lines
491 B
Bash
Executable File
16 lines
491 B
Bash
Executable File
#!/bin/bash
|
|
|
|
################################################################################
|
|
# Set exit code depending on tool reports #
|
|
################################################################################
|
|
|
|
DEFINITELY_LOST=$(cat *test-results/*summary.json | jq .num_definite_bytes_lost)
|
|
|
|
cat *test-results/*summary.json
|
|
|
|
echo -e "\nBytes of memory definitely lost: $DEFINITELY_LOST"
|
|
|
|
if [[ "$DEFINITELY_LOST" -gt 0 ]]; then
|
|
exit 1
|
|
fi
|