From a4d9f3f355d67b35a8d49da4dcf1e9bbac1269d2 Mon Sep 17 00:00:00 2001 From: Tom Doron Date: Mon, 16 Oct 2017 13:15:31 -0700 Subject: [PATCH] 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 --- sanity | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 sanity diff --git a/sanity b/sanity new file mode 100755 index 000000000..04d893d86 --- /dev/null +++ b/sanity @@ -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