#!/bin/sh #BHEADER********************************************************************** # Copyright (c) 2008, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # This file is part of HYPRE. See file COPYRIGHT for details. # # HYPRE is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License (as published by the Free # Software Foundation) version 2.1 dated February 1999. # # $Revision$ #EHEADER********************************************************************** testname=`basename $0 .sh` # Echo usage information case $1 in -h|-help) cat < basictest.err renametest.sh basictest $output_dir/basictest--enable-complex # Test babel build only if 'babel-runtime' directory is present if [ -d $src_dir/babel-runtime ]; then co="--with-babel" MO="test" # the -j option doesn't always work with the babel code test.sh basictest.sh $src_dir -co: $co -mo: $MO renametest.sh basictest $output_dir/basictest--with-babel fi # CMake build and run tests mo="-j" ro="-ams -ij -sstruct -struct" eo="" co="" test.sh cmaketest.sh $src_dir -co: $co -mo: $mo renametest.sh cmaketest $output_dir/cmaketest-default co="-DCMAKE_BUILD_TYPE=Debug" test.sh cmaketest.sh $src_dir -co: $co -mo: $mo -ro: $ro renametest.sh cmaketest $output_dir/cmaketest-debug co="-DHYPRE_NO_GLOBAL_PARTITION=OFF" test.sh cmaketest.sh $src_dir -co: $co -mo: $mo renametest.sh cmaketest $output_dir/cmaketest-global-partition co="-DHYPRE_SEQUENTIAL=ON" test.sh cmaketest.sh $src_dir -co: $co -mo: $mo renametest.sh cmaketest $output_dir/cmaketest-sequential co="-DHYPRE_SHARED=ON" test.sh cmaketest.sh $src_dir -co: $co -mo: $mo renametest.sh cmaketest $output_dir/cmaketest-shared co="-DHYPRE_BIGINT=ON" test.sh cmaketest.sh $src_dir -co: $co -mo: $mo -ro: $ro renametest.sh cmaketest $output_dir/cmaketest-bigint # cmake build doesn't currently support maxdim # cmake build doesn't currently support complex # Test linking for different languages link_opts="all++ all77" for opt in $link_opts do output_subdir=$output_dir/link$opt mkdir -p $output_subdir ./test.sh link.sh $src_dir $opt mv -f link.??? $output_subdir done # Test documentation build (only if 'docs_misc' directory is present) if [ -d $src_dir/docs_misc ]; then ./test.sh docs.sh $src_dir mv -f docs.??? $output_dir fi # Check for 'int', 'double', and 'MPI_' ./test.sh check-int.sh $src_dir mv -f check-int.??? $output_dir ./test.sh check-double.sh $src_dir mv -f check-double.??? $output_dir ./test.sh check-mpi.sh $src_dir mv -f check-mpi.??? $output_dir # Echo to stderr all nonempty error files in $output_dir for errfile in $( find $output_dir ! -size 0 -name "*.err" ) do echo $errfile >&2 done