X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=scripts%2Fmono-test-install;h=3c1f74a88924a472fad802fc33de358e0e1faddb;hb=f6294778fe4f5a90bd7b7b592bd8fa359d299e1e;hp=91d4d84aee5bf70cca9a408bdfa06c40937f538c;hpb=403ada97828dba82fdd656ce1b2ef224165694ab;p=mono.git diff --git a/scripts/mono-test-install b/scripts/mono-test-install index 91d4d84aee5..3c1f74a8892 100755 --- a/scripts/mono-test-install +++ b/scripts/mono-test-install @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Does various checks for people that we can use to diagnose # an end user installation @@ -41,7 +41,6 @@ if pkg-config --modversion mono >& /dev/null; then echo " than the Mono found:" echo " Mono on PATH: $monocmd" echo " Mono from pkg-config: $pkg_config_mono" - exit 1 fi else echo "Warning: pkg-config could not find mono installed on this system" @@ -147,3 +146,32 @@ else echo Failed to compile sample System.Drawing program, your installation is broken exit 1 fi + +cat > $temp_cs <& /dev/null; then + mono $temp_exe +else + echo Failed to compile sample test program, your installation is broken + exit 1 +fi