Files
swift-nio/scripts/sanity.sh
T
Tom Doron 7d5dc67af8 scripts cleanup
motivation: nicer source tree

chanages:
* move scripts to scripts directory
* move integration tests to IntegrationTests directory and remove driver script
* add .sh extension to bash scripts
* adjust rio.yaml
2018-02-12 10:06:46 -08:00

17 lines
358 B
Bash
Executable File

#!/bin/bash
set -eu
# check linux tests
FIRST_OUT="$(git status --porcelain)"
ruby scripts/generate_linux_tests.rb > /dev/null
SECOND_OUT="$(git status --porcelain)"
if [[ "$FIRST_OUT" != "$SECOND_OUT" ]]; then
printf "\033[0;31mMissing linux test changes!\033[0m\n"
git --no-pager diff
exit 1
else
printf "\033[0;32mLinux tests okay\033[0m\n"
fi