# -*- coding: utf-8 -*-

# Copyright (c) 2008-2010 Kent State University
#
# This file is distributed under the MIT License. See the accompanying file
# LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
# and conditions.

import sys
import os
from testing import *

parse_args()

ret = run_program("compile", cmd_args)
if ret != 0:
  # The build succeeded when it should have failed.
  sys.stderr.write(stage_cmd("compile") + "\n")
  sys.stderr.write(stage_err("compile"))
  exit_failure()

exit_success()
