Commit 648b416d authored by Bharath Ramsundar's avatar Bharath Ramsundar
Browse files

Adding to tests

parent 354f64b7
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -16,14 +16,23 @@ def _example_run(path):
    Return code. 0 for success, failure otherwise.
  """
  cmd = ["python", path]
  return subprocess.check_output(cmd)
  # Will raise a CalledProcessError if fails.
  retval = subprocess.check_output(cmd)
  return retval


def test_adme():
  result, output = _example_run("./adme/run_benchmarks.py")
  print("Running test_adme()")
  output = _example_run("./adme/run_benchmarks.py")
  print(output)


def test_tox21_fcnet():
  print("Running tox21_fcnet()")
  output = _example_run("./tox21/tox21_fcnet.py")
  print(output)
  assert result == 0


if __name__ == "__main__":
  test_tox21_fcnet()
  test_adme()