Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 17, 2021
1 parent c24dc6d commit 6afd07e
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions test/job_control_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,28 +119,6 @@ begin
end
end

job3 = DFJob(job2, :lspinorb => true)
@test all(atoms(job3).==atoms(job2))
@test length(job3[:lspinorb]) == length(searchinputs(job3, QE))
rm_flags!(job3, :lspinorb, print=false)

begin
for (calc, calc2) in zip(job.inputs, job3.inputs)
for (f, v) in calc.flags
if f in (:Hubbard_J, :pseudo_dir, :wannier_plot)
continue
else
@test v == calc2.flags[f]
end
end
for (b1, b2) in zip(calc.data, calc2.data)
for n in fieldnames(typeof(b1))
@test getfield(b1, n) == getfield(b2,n)
end
end
end
end

set_cutoffs!(job)
@test job["scf"][:ecutwfc] == 32.0

Expand Down Expand Up @@ -170,9 +148,9 @@ rmexecflags!(job, "pw.x", :nk)
set_execdir!(job, "pw.x", joinpath(homedir(), "bin"))
@test execs(job, "nscf")[2].dir == joinpath(homedir(), "bin")

set_name!(job, "nscf", "test")
set_name!(job["nscf"], "test")
@test DFControl.inpath(job, "test") == joinpath(job.local_dir, "test.in")
set_name!(job, "test", "nscf")
set_name!(job["test"], "nscf")

set_serverdir!(job, "localhost")
@test job.server_dir == "localhost"
Expand Down

0 comments on commit 6afd07e

Please sign in to comment.