Give a clearer error if the library hasn't been built

This commit is contained in:
Richard van der Hoff 2015-12-03 16:16:19 +00:00
parent a715fc7d84
commit 8672311d6f

View file

@ -13,12 +13,15 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import subprocess
import glob import glob
import os import os
import subprocess
import sys
if not os.path.exists("build"): if not os.path.exists("build/libolm.so"):
os.mkdir("build") print >> sys.stderr, \
"libolm has not been built. Run ./build_shared_library.py first."
exit(1)
test_files = glob.glob("tests/test_*.cpp") test_files = glob.glob("tests/test_*.cpp")