Skip to content

Commit

Permalink
rework test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Dec 16, 2022
1 parent abd924c commit aaf8e86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/mpi/mpi.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
typedef int MPI_Comm;
int MPI_Barrier(MPI_Comm comm);
int PMPI_Barrier(MPI_Comm comm);

typedef int (MPI_Type_copy_attr_function)(MPI_Datatype, int, void *, void *, void *, int *);
int MPI_Type_create_keyval(MPI_Type_copy_attr_function *type_copy_attr_fn,
MPI_Type_delete_attr_function *type_delete_attr_fn, int *type_keyval,
void *extra_state) MPICH_API_PUBLIC;
4 changes: 4 additions & 0 deletions test/test_mpi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ using Clang.Generators
# excluded by pattern in `output_ignorelist` of `generator.toml`
@test !occursin("PMPI_Barrier", content)

# wrong prototypes, see github.com/JuliaParallel/MPI.jl/issues/688
@test occursin("MPI_Type_copy_attr_function", content)
@test occursin("MPI_Type_delete_attr_function", content)

# custom documentaton callback
@test occursin("Fancy MPI doc for MPI_Barrier generated by Clang.jl", content)

Expand Down

0 comments on commit aaf8e86

Please sign in to comment.