We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88115f commit 6ebfcbaCopy full SHA for 6ebfcba
projects/test.def
@@ -24,10 +24,11 @@ From: {{ CONTAINERS_DIR }}/basic/{{ BASE_CONTAINER }}.sif
24
%files
25
OMPIFoam /opt/OMPIFoam
26
27
-%post
+%post -c /bin/bash
28
echo "Testing OpenMPI implementation"
29
- /bin/bash -c "cd /opt/OMPIFoam && mpicc -o ompiTest testOMPI.cpp"
30
- /bin/bash -c "source /usr/lib/openfoam/openfoam{{ FRAMEWORK_VERSION }}/etc/bashrc && cd /opt/OMPIFoam && wmake"
+ source /usr/lib/openfoam/openfoam{{ FRAMEWORK_VERSION }}/etc/bashrc
+ export LD_LIBRARY_PATH=/opt/{{ MPI_IMPLEMENTATION }}/lib:$LD_LIBRARY_PATH
31
+ cd /opt/OMPIFoam && mpicc -o ompiTest testOMPI.cpp && wmake
32
jq --arg app test --arg branch {{ BRANCH }} \
33
'.[$app] |= if . == null then
34
{
0 commit comments