#!/usr/bin/env python

import os
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from runtest_dirac import Filter, TestRun

test = TestRun(__file__, sys.argv)

f = Filter()
f.add(from_string = 'Final results for EOM-IP',
      num_lines   = 30,
      abs_tolerance = 1.0e-7)

test.run(['eom_ip_dc_noinv_double_nooverlap_c_oo_v_Omega.inp','eom_ip_dc_noinv_double_nooverlap_c_oo_v_-Omega.inp'],   ['f2_c_oo_v_turbomole-dz.mol'], f, args='--mw=110')
test.run(['eom_ip_dc_noinv_double_nooverlap.inp'],  ['f2_d2_turbomole-dz.mol', 'f2_c2v_turbomole-dz.mol', 'f2_c2_turbomole-dz.mol', 'f2_cs_turbomole-dz.mol'], f, args='--mw=110')
test.run(['eom_ip_dc_noinv_double_nooverlap_c1.inp'], ['f2_c1_turbomole-dz.mol'], f, args='--mw=110')
#
test.run(['eom_ip_dc_inv_double_nooverlap_d_oo_h_Omega.inp','eom_ip_dc_inv_double_nooverlap_d_oo_h_-Omega.inp'],   ['f2_d_oo_h_turbomole-dz.mol'], f, args='--mw=110')
test.run(['eom_ip_dc_inv_double_nooverlap.inp'],    ['f2_d2h_turbomole-dz.mol', 'f2_c2h_turbomole-dz.mol'], f, args='--mw=110')
test.run(['eom_ip_dc_inv_double_nooverlap_ci.inp'], ['f2_ci_turbomole-dz.mol'], f, args='--mw=110')

sys.exit(test.return_code)
