Files
apbs/examples/run_examples.sh
Darren Curtis cbb232e571 Added support and examples for PYGBE (#164)
* Added support and examples for PYGBE

* Changed absolute path

* Try to please flake8

* Fixed tests, Python parser for pygbe, and added documentation

* Reduce generated artifacts

* noci Attempt to fix Appveyor

* noci Attempt 2 to fix Appveyor

* noci Updating CMake files to version 3

* noci Update CMake in externals

* updating submodule to latest

* noci update appveyor

* Figure out testing for protein-rna

* Skipping protein-rna testing

* Hardcode CMake install directory for include files

* Turn on verbose CMake output

* noci Turn on verbose CMake output

* noci Fix program files path

* noci Fix cmake path

* noci chore Adding script to test examples

* noci chore Update build scripts

Co-authored-by: Darren Curtis <intendo23@gmail.com>
2021-08-19 15:41:04 -07:00

30 lines
677 B
Bash
Executable File

#!/bin/bash
APBS_EXE="apbs"
BASE_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
export PATH="$BASE_PATH/../../../bin:$PATH"
cd $BASE_PATH
EXCLUDE="pygbe"
DIRS=`find . -maxdepth 1 -type d -name "[a-zA-Z]*" | awk -F'/' '{print $NF}' | grep -v $EXCLUDE`
for dir in $DIRS
do
cd $BASE_PATH
cd $dir
for infile in `ls -1 *.in`
do
echo -n "$APBS_EXE $dir/$infile "
SECONDS=0
#/dev/null 2>&1
$APBS_EXE $infile > OUTPUT.txt 2>&1
status=$?
duration=$SECONDS
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
if [[ "$status" -ne "0" ]]; then
echo "***** $infile, $status: failed"
fi
done
done