-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4d1d25
commit 308f3e8
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM centos:8 | ||
|
||
WORKDIR /data | ||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
RUN yum update -y | ||
RUN yum install -y mpich openmpi git pkg-config nano gcc bzip2 patch gcc-c++ make mpich-devel openmpi-devel | ||
RUN yum install -y sudo | ||
RUN yum install -y autoconf automake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
BUILD="$1" | ||
|
||
groupadd -g $3 testuser | ||
useradd -r -u $2 -g testuser testuser | ||
ERROR=0 | ||
|
||
function runTest(){ | ||
P=$PATH | ||
FLAVOR="$1" | ||
MPI_DIR="$2" | ||
|
||
echo $FLAVOR in $BUILD/$FLAVOR | ||
sudo -u testuser mkdir -p $BUILD/$FLAVOR | ||
|
||
pushd $BUILD/$FLAVOR > /dev/null | ||
|
||
export PATH=$MPI_DIR/bin:$PATH | ||
sudo -u testuser PATH=$PATH /data/configure || exit 1 | ||
sudo -u testuser PATH=$PATH make || exit 1 | ||
|
||
cd /data/ | ||
sudo -u testuser PATH=$PATH IOR_BIN_DIR=$BUILD/$FLAVOR/src IOR_OUT=$BUILD/$FLAVOR/test ./testing/basic-tests.sh | ||
|
||
ERROR=$(($ERROR + $?)) | ||
popd > /dev/null | ||
PATH=$P | ||
} | ||
|
||
|
||
runTest openmpi /usr/lib64/openmpi/ | ||
runTest mpich /usr/lib64/mpich | ||
|
||
exit $ERROR |