#!/usr/bin/env python # Copyright New York University and the in-toto contributors # SPDX-License-Identifier: Apache-2.0 """ runtests.py Santiago Torres Lukas Puehringer May 23, 2016 See LICENSE for licensing information. Script to search, load and run in-toto tests using the Python `unittest` framework. """ import sys from unittest import TextTestRunner, defaultTestLoader suite = defaultTestLoader.discover(start_dir=".") result = TextTestRunner(verbosity=2, buffer=True).run(suite) sys.exit(0 if result.wasSuccessful() else 1)