<commit_before>#!/bin/bash

command -v mpichversion
mpichversion

command -v mpicc
mpicc -show

command -v mpicxx
mpicxx -show

command -v mpif90
mpif90 -show

command -v mpiexec

pushd $RECIPE_DIR/tests

MPIEXEC="mpiexec -launcher fork"
$MPIEXEC --help

python no-nonblock.py

mpicc helloworld.c -o helloworld_c
$MPIEXEC -n 4 ./helloworld_c
python no-nonblock.py

mpicxx helloworld.cxx -o helloworld_cxx
$MPIEXEC -n 4 ./helloworld_cxx
python no-nonblock.py

mpif77 helloworld.f -o helloworld_f
$MPIEXEC -n 4 ./helloworld_f
python no-nonblock.py

mpif90 helloworld.f90 -o helloworld_f90
$MPIEXEC -n 4 ./helloworld_f90
python no-nonblock.py

popd<commit_msg>linux still can't handle O_NONBLOCK due to Docker pipes<commit_after>#!/bin/bash

command -v mpichversion
mpichversion

command -v mpicc
mpicc -show

command -v mpicxx
mpicxx -show

command -v mpif90
mpif90 -show

command -v mpiexec

pushd $RECIPE_DIR/tests

function mpi_exec() {
  if [[ "$(uname)" == "Darwin" ]]; then
    mpiexec -launcher fork $@
    python no-nonblock.py
  else
    # skip mpiexec tests on Linux due to conda-forge bug:
    # https://github.com/conda-forge/conda-smithy/pull/337
    echo "SKIPPING mpiexec $@"
  fi
}

mpicc helloworld.c -o helloworld_c
mpi_exec -n 4 ./helloworld_c

mpicxx helloworld.cxx -o helloworld_cxx
mpi_exec -n 4 ./helloworld_cxx

mpif77 helloworld.f -o helloworld_f
mpi_exec -n 4 ./helloworld_f

mpif90 helloworld.f90 -o helloworld_f90
mpi_exec -n 4 ./helloworld_f90

popd
{'fraction_non_alphanumeric': 0.09281842818428185, 'fraction_numerical': 0.026422764227642278, 'mean_word_length': 3.733974358974359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5652925', 'n_tokens_mistral': 663, 'n_tokens_neox': 621, 'n_words': 164}