test.pl 443 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/perl
# Driver for cmake testing of FLEUR
# See README.tests for details

use strict;
my $dir;
BEGIN{
$dir=$0;
$dir=~s/test.pl//;
}
use lib "$dir/scripts";

use judft_tests;

my $testdir=shift;
my $executable=shift;
my $mpi=shift;
18 19 20 21
if (!$mpi){
    $mpi=$ENV{"juDFT_MPI"};
}
print "MPI:$mpi\n";
22 23
my $workdir="$ENV{PWD}/Testing/work";
system("rm $workdir/*");
24 25 26
chdir($dir);

judft_tests::execute_test($testdir,$executable,$mpi,$workdir);