add prb sanity check

motivation: make sure we have linux test coverage

changes: add pr check to test for "sanity" which now only includes linux tests, but can be extended to do other things
This commit is contained in:
Tom Doron committed 2017-10-16 13:15:31 -07:00
1 parent 0803012b7a
commit a4d9f3f355
1 file changed
+13
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
set -eu
# check linux tests
ruby generate_linux_tests.rb > /dev/null
if [[ -n $(git diff Tests/LinuxMain.swift) ]]; then
printf "\033[0;31mMissing linux test changes!\033[0m\n"
exit 1
else
printf "\033[0;32mLinux tests okay\033[0m\n"
fi