Skip to content

Commit

Permalink
add prb sanity check
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tomerd committed Oct 16, 2017
1 parent 0803012 commit a4d9f3f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sanity
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4d9f3f

Please sign in to comment.