Skip to content

Commit

Permalink
enable debug for testing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Oct 15, 2023
1 parent 69c3eeb commit 4d7eade
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ci_install_p4est.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ "${JULIA_P4EST_TEST}" = "P4EST_CUSTOM_MPI_CUSTOM" ]; then
export CXX=mpicxx
export FC=mpif90
export F77=mpif77
$P4EST_TMP/p4est-${P4EST_RELEASE}/configure --prefix=$P4EST_TMP/prefix --enable-mpi
$P4EST_TMP/p4est-${P4EST_RELEASE}/configure --prefix=$P4EST_TMP/prefix --enable-mpi --enable-debug
make -j 2
make install
ls -l $P4EST_TMP/prefix/lib/libp4est.so
Expand Down
18 changes: 11 additions & 7 deletions test/configure_packages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ const JULIA_P4EST_TEST_LIBP4EST = get(ENV, "JULIA_P4EST_TEST_LIBP4EST", "")
const JULIA_P4EST_TEST_LIBSC = get(ENV, "JULIA_P4EST_TEST_LIBSC", "")
rm(joinpath(dirname(@__DIR__), "LocalPreferences.toml"), force = true)

# Next, we configure P4est.jl as desired.
# Next, we configure MPI.jl appropriately.
@static if JULIA_P4EST_TEST == "P4EST_CUSTOM_MPI_CUSTOM"
import P4est
P4est.set_library_p4est!(JULIA_P4EST_TEST_LIBP4EST, force = true)
P4est.set_library_sc!(JULIA_P4EST_TEST_LIBSC, force = true)
import MPIPreferences
MPIPreferences.use_system_binary()
end

# Finally, we configure MPI.jl appropriately.
# Finally, we configure P4est.jl as desired.
@static if JULIA_P4EST_TEST == "P4EST_CUSTOM_MPI_CUSTOM"
import MPIPreferences
MPIPreferences.use_system_binary()
import UUIDs, Preferences
Preferences.set_preferences!(
UUIDs.UUID("7d669430-f675-4ae7-b43e-fab78ec5a902"), # UUID of P4est.jl
"libp4est" => JULIA_P4EST_TEST_LIBP4EST, force = true)
Preferences.set_preferences!(
UUIDs.UUID("7d669430-f675-4ae7-b43e-fab78ec5a902"), # UUID of P4est.jl
"libsc" => JULIA_P4EST_TEST_LIBSC, force = true)
end

@info "P4est.jl tests configured" JULIA_P4EST_TEST JULIA_P4EST_TEST_LIBP4EST JULIA_P4EST_TEST_LIBSC

0 comments on commit 4d7eade

Please sign in to comment.