recipes_test.py 646 B

12345678910111213141516171819202122
  1. #!/usr/bin/env vpython3
  2. # Copyright (c) 2015 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """Runs simulation tests and lint on the recipes."""
  6. import os
  7. import subprocess
  8. ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  9. def recipes_py(*args):
  10. recipes_cfg_path = os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')
  11. subprocess.check_call([os.path.join(ROOT_DIR, 'recipes', 'recipes.py'),
  12. '--package', recipes_cfg_path] + list(args))
  13. recipes_py('test', 'run')
  14. recipes_py('lint')