Files
swift-nio-ssl/scripts/sanity.sh
T
tomer doron e3a026f1a0 scripts cleanup (#1)
motivation: nicer source tree

changes:
* move scripts to scripts directory
* add .sh extension to bash scripts
2018-02-21 19:54:09 +00: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