check.py (256281) | check.py (262339) |
---|---|
1#!/usr/bin/env python 2# 3# check.py : Run all the test cases. 4# 5# ==================================================================== 6# Copyright 2013 Justin Erenkrantz and Greg Stein 7# 8# Licensed under the Apache License, Version 2.0 (the "License"); --- 34 unchanged lines hidden (view full) --- 43 44 # Find test responses and run them one by one 45 for case in glob.glob(testdir + "/testcases/*.response"): 46 print "== Testing %s ==" % (case) 47 try: 48 subprocess.check_call([SERF_RESPONSE_EXE, case]) 49 except subprocess.CalledProcessError: 50 print "ERROR: test case %s failed" % (case) | 1#!/usr/bin/env python 2# 3# check.py : Run all the test cases. 4# 5# ==================================================================== 6# Copyright 2013 Justin Erenkrantz and Greg Stein 7# 8# Licensed under the Apache License, Version 2.0 (the "License"); --- 34 unchanged lines hidden (view full) --- 43 44 # Find test responses and run them one by one 45 for case in glob.glob(testdir + "/testcases/*.response"): 46 print "== Testing %s ==" % (case) 47 try: 48 subprocess.check_call([SERF_RESPONSE_EXE, case]) 49 except subprocess.CalledProcessError: 50 print "ERROR: test case %s failed" % (case) |
51 sys.exit(1) |
|
51 52 print "== Running the unit tests ==" 53 try: 54 subprocess.check_call(TEST_ALL_EXE) 55 except subprocess.CalledProcessError: 56 print "ERROR: test(s) failed in test_all" | 52 53 print "== Running the unit tests ==" 54 try: 55 subprocess.check_call(TEST_ALL_EXE) 56 except subprocess.CalledProcessError: 57 print "ERROR: test(s) failed in test_all" |
58 sys.exit(1) |
|