10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-09-27 03:51:01 +02:00

Fixed a few tests

This commit is contained in:
Anthony Scemama 2018-12-28 20:18:34 +01:00
parent 123de0381e
commit c4fa0677e3
3 changed files with 13 additions and 11 deletions

View File

@ -3,14 +3,15 @@
source $QP_ROOT/tests/bats/common.bats.sh
function run {
INPUT=$1
EZ=${INPUT/.xyz/.ezfio}
EZ=${EZ/.zmt/.ezfio}
MULT=$2
CHARGE=$3
BASIS=$4
set -x
local INPUT=$1
local EZ=${INPUT/.xyz/.ezfio}
local EZ=${EZ/.zmt/.ezfio}
local MULT=$2
local CHARGE=$3
local BASIS=$4
if [[ -n $5 ]] ; then
PSEUDO="-p $5"
local PSEUDO="-p $5"
fi
cp ${QP_ROOT}/tests/input/$INPUT .
rm -rf $EZ
@ -18,6 +19,7 @@ function run {
$INPUT -b "$BASIS" -m $MULT -c $CHARGE $PSEUDO -o $EZ
qp_edit -c $EZ
echo "Write" > ${EZ}/ao_two_e_integrals/disk_access_ao_integrals
set +x
}
@ -30,7 +32,7 @@ function run {
}
@test "qp_create dhno.xyz" {
run dhno.xyz 2 0 chipman-dzp
run dhno.xyz 2 0 "chipman-dzp"
}
@test "qp_create h3coh.xyz" {

View File

@ -3,8 +3,8 @@
source $QP_ROOT/tests/bats/common.bats.sh
function run {
INPUT=$1
EZ=$2
local INPUT=$1
local EZ=$2
cp ${QP_ROOT}/tests/input/$INPUT .
qp_convert_output_to_ezfio $INPUT -o $EZ
qp_edit -c $EZ

View File

@ -24,7 +24,7 @@ function run() {
run h2o.ezfio -0.760270218692179E+02
}
@test "SCF H2O" {
@test "SCF [Cu(NH3)4]2+" {
run cu_nh3_4_2plus.ezfio -1862.97590388214
}