test.run1 753 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1
#juDFT Testscript
Gregor Michalicek's avatar
Gregor Michalicek committed
2
#The following arguments are passed: executable, working directory
Daniel Wortmann's avatar
Daniel Wortmann committed
3
4
5
6

jt::copyfile("files/inp",$workdir);
jt::copyfile("files/kpts",$workdir);
jt::copyfile("files/sym.out",$workdir);
Gregor Michalicek's avatar
Gregor Michalicek committed
7
	
Daniel Wortmann's avatar
Daniel Wortmann committed
8
9
10
jt::testrun($executable,$workdir);

#now test output
Gregor Michalicek's avatar
Gregor Michalicek committed
11
12
13
$result=jt::test_grepexists("$workdir/out","it=  9  is completed");
$result+=jt::test_grepnumber("$workdir/out","new fermi energy",".*: *([^ ]*)",0.263,0.001);
$result+=jt::test_grepnumber("$workdir/out","total energy=",".*= *([^ ]*)",-3191.9717,0.001);
14
$result+=jt::test_grepnumber("$workdir/out","distance of charge densities for it= *9",": *([^ ]*)",1.439,0.01);
Gregor Michalicek's avatar
Gregor Michalicek committed
15
$result+=jt::test_grepnumber("$workdir/out","mm       1",".*mm       1 *([^ ]*)",1.75,0.03);
Daniel Wortmann's avatar
Daniel Wortmann committed
16
17

jt::stageresult($workdir,$result,"1");