<commit_before>#!/bin/bash
# this script tests all 6 configurations of Petsc
# this script should be executed from one directory above the tests/ directory
# the build_dir is the location of the deps/ directory, where Petsc will
# be built


test_dir=`pwd`
build_dir="./deps"
echo $test_dir
# run all test configuration
sum=0 


# 32 bit integer, double precision real
echo "--- testing 32 bit integer, double precision, real---"
julia --check-bounds=yes ./test/test_doublereal32.jl
sum=$(expr $sum + $?)


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)


mpirun -np 2julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)


# 64 bit intger, double precision real
cd $build_dir
./install_petsc.sh --with-64-bit-indices
cd $test_dir

echo "--- testing 64 bit integer, double precision, real---"
julia --check-bounds=yes ./test/test_doublereal64.jl
sum=$(expr $sum + $?)


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)



# 32 bit intger, single precision real
cd $build_dir
./install_petsc.sh --with-precision=single
cd $test_dir

echo "--- testing 32 bit integer, single precision, real---"
julia --check-bounds=yes ./test/test_singlereal32.jl
sum=$(expr $sum + $?)


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)



# 64 bit intger, single precision real
cd $build_dir
./install_petsc.sh --with-precision=single  --with-64-bit-indices
cd $test_dir

echo "--- testing 64 bit integer, single precision, real---"
julia --check-bounds=yes ./test/test_singlereal64.jl
sum=$(expr $sum + $?)


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)



# 32 bit intger, double precision complex
cd $build_dir
./install_petsc.sh --with-scalar-type=complex
cd $test_dir

echo "--- testing 32 bit integer, double precision, complex---"
julia --check-bounds=yes ./test/test_doublecomplex32.jl
sum=$(expr $sum + $?)


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)



# 64 bit intger, double precision complex
cd $build_dir
./install_petsc.sh --with-scalar-type=complex --with-64-bit-indices
cd $test_dir

echo "--- testing 64 bit integer, double precision, complex---"
julia --check-bounds=yes ./test/test_doublecomplex64.jl
sum=$(expr $sum + $?)


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
<commit_msg>fixed mistake in runtests.sh mpirun<commit_after>#!/bin/bash
# this script tests all 6 configurations of Petsc
# this script should be executed from one directory above the tests/ directory
# the build_dir is the location of the deps/ directory, where Petsc will
# be built


test_dir=`pwd`
build_dir="./deps"
echo $test_dir
# run all test configuration
sum=0 


# 32 bit integer, double precision real
echo "--- testing 32 bit integer, double precision, real---"
julia --check-bounds=yes ./test/test_doublereal32.jl
sum=$(expr $sum + $?)
echo $sum

julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum


# 64 bit intger, double precision real
cd $build_dir
./install_petsc.sh --with-64-bit-indices
cd $test_dir

echo "--- testing 64 bit integer, double precision, real---"
julia --check-bounds=yes ./test/test_doublereal64.jl
sum=$(expr $sum + $?)
echo $sum


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum



# 32 bit intger, single precision real
cd $build_dir
./install_petsc.sh --with-precision=single
cd $test_dir

echo "--- testing 32 bit integer, single precision, real---"
julia --check-bounds=yes ./test/test_singlereal32.jl
sum=$(expr $sum + $?)
echo $sum


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum



# 64 bit intger, single precision real
cd $build_dir
./install_petsc.sh --with-precision=single  --with-64-bit-indices
cd $test_dir

echo "--- testing 64 bit integer, single precision, real---"
julia --check-bounds=yes ./test/test_singlereal64.jl
sum=$(expr $sum + $?)
echo $sum


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum



# 32 bit intger, double precision complex
cd $build_dir
./install_petsc.sh --with-scalar-type=complex
cd $test_dir

echo "--- testing 32 bit integer, double precision, complex---"
julia --check-bounds=yes ./test/test_doublecomplex32.jl
sum=$(expr $sum + $?)
echo $sum


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum



# 64 bit intger, double precision complex
cd $build_dir
./install_petsc.sh --with-scalar-type=complex --with-64-bit-indices
cd $test_dir

echo "--- testing 64 bit integer, double precision, complex---"
julia --check-bounds=yes ./test/test_doublecomplex64.jl
sum=$(expr $sum + $?)
echo $sum


julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

mpirun -np 2 julia --check-bounds=yes ./test/runtests.jl
sum=$(expr $sum + $?)
echo $sum

{'fraction_non_alphanumeric': 0.16279069767441862, 'fraction_numerical': 0.017752529735487306, 'mean_word_length': 3.67551867219917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5064669', 'n_tokens_mistral': 2143, 'n_tokens_neox': 1984, 'n_words': 575}