From 8672311d6fe8b4c236b3a2d59c9429bcfacc185a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 3 Dec 2015 16:16:19 +0000 Subject: Give a clearer error if the library hasn't been built --- test.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 307f307..83efe00 100755 --- a/test.py +++ b/test.py @@ -13,12 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -import subprocess import glob import os +import subprocess +import sys -if not os.path.exists("build"): - os.mkdir("build") +if not os.path.exists("build/libolm.so"): + print >> sys.stderr, \ + "libolm has not been built. Run ./build_shared_library.py first." + exit(1) test_files = glob.glob("tests/test_*.cpp") -- cgit v1.2.3