From 53bfb3f9a42b5e8e046b7a008e6084e3d7a625ba Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 10:08:50 +0100 Subject: [PATCH 01/23] Add dummy file --- dummy.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dummy.txt diff --git a/dummy.txt b/dummy.txt new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/dummy.txt @@ -0,0 +1 @@ +test From 1b4edaeab6fec49d452d3a87e81de714a2baf51c Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 10:47:41 +0100 Subject: [PATCH 02/23] Remove binary cmesh files from test --- test/cmesh/test_readmshfile.jl | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/test/cmesh/test_readmshfile.jl b/test/cmesh/test_readmshfile.jl index 94d6729..d35438f 100644 --- a/test/cmesh/test_readmshfile.jl +++ b/test/cmesh/test_readmshfile.jl @@ -96,33 +96,4 @@ end t8_cmesh_destroy(Ref(cmesh)) end - @testset "test_msh_file_vers2_bin" begin - fileprefix = "cmesh/testfiles/test_msh_file_vers2_bin" - filename = fileprefix * ".msh" - - @assert isfile(filename) "File not found: "*filename - - cmesh = t8_cmesh_from_msh_file(fileprefix, 1, comm, 2, 0, 0) - - @assert cmesh==C_NULL "Expected fail of reading binary msh file v.2, but did not fail." - - if cmesh != C_NULL - t8_cmesh_destroy(Ref(cmesh)) - end - end - - @testset "test_msh_file_vers4_bin" begin - fileprefix = "cmesh/testfiles/test_msh_file_vers4_bin" - filename = fileprefix * ".msh" - - @assert isfile(filename) "File not found: "*filename - - cmesh = t8_cmesh_from_msh_file(fileprefix, 1, comm, 2, 0, 0) - - @assert cmesh==C_NULL "Expected fail of reading binary msh file v.4, but did not fail." - - if cmesh != C_NULL - t8_cmesh_destroy(Ref(cmesh)) - end - end end From 7573635c901f36618e2a8726871a80783a7f72b4 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 10:51:54 +0100 Subject: [PATCH 03/23] Formatting --- test/cmesh/test_readmshfile.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/test/cmesh/test_readmshfile.jl b/test/cmesh/test_readmshfile.jl index d35438f..480c50a 100644 --- a/test/cmesh/test_readmshfile.jl +++ b/test/cmesh/test_readmshfile.jl @@ -95,5 +95,4 @@ end t8_cmesh_destroy(Ref(cmesh)) end - end From 522dec73ecfe9332a71f6e995fe56018699e82ac Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 10:56:08 +0100 Subject: [PATCH 04/23] Deactivate some tests --- test/test_all.jl | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index c093ac3..f32c23c 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -23,16 +23,4 @@ end end end -@testset "forestwrapper" begin - include("test_forestwrapper.jl") -end - -@testset "cmesh" begin - include("cmesh/test_readmshfile.jl") -end - -@testset "forest" begin - include("forest/test_element_volume.jl") -end - end # module From ddc17e8791df6540c483d39947d0668a8a0b87f0 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 11:00:40 +0100 Subject: [PATCH 05/23] Deactivate more tests --- test/test_all.jl | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index f32c23c..bc9277a 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -16,11 +16,4 @@ comm = MPI.COMM_WORLD include("test_init.jl") end -@testset "general" begin - if !Sys.iswindows() - # These tests do not work in Windows since the DLL loader does not search for symbols beyond libt8.dll. - include("test_refcount.jl") - end -end - end # module From 04e5344a858a730df1f756226272b58483a19dd7 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 11:03:56 +0100 Subject: [PATCH 06/23] Deactivate all (?) test cases --- test/test_all.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index bc9277a..6161b2b 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -12,8 +12,4 @@ MPI.Init() comm = MPI.COMM_WORLD -@testset "init" begin - include("test_init.jl") -end - end # module From 2b851fc1d0741c7255ef481410f6c02d6eaa9287 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 11:22:33 +0100 Subject: [PATCH 07/23] Added back test_init and added sc_finalize() call --- test/test_all.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_all.jl b/test/test_all.jl index 6161b2b..edd2e95 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -12,4 +12,10 @@ MPI.Init() comm = MPI.COMM_WORLD +@testset "init" begin + include("test_init.jl") +end + +T8code.Libt8.sc_finalize() + end # module From fd9a0dedee5948fb39521db095648faf32fde608 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 11:25:16 +0100 Subject: [PATCH 08/23] Changed to sc_finalize_no_abort --- test/test_all.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_all.jl b/test/test_all.jl index edd2e95..2ae35d8 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -16,6 +16,6 @@ comm = MPI.COMM_WORLD include("test_init.jl") end -T8code.Libt8.sc_finalize() +T8code.Libt8.sc_finalize_noabort() end # module From ca08f34a40f5881248cecff21c85ac65bb4d10dd Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 12:35:16 +0100 Subject: [PATCH 09/23] Becoming desperate --- test/test_all.jl | 2 +- test/test_init.jl | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index 2ae35d8..748ea1e 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -16,6 +16,6 @@ comm = MPI.COMM_WORLD include("test_init.jl") end -T8code.Libt8.sc_finalize_noabort() +# MPI. end # module diff --git a/test/test_init.jl b/test/test_init.jl index 46b2415..159b8da 100644 --- a/test/test_init.jl +++ b/test/test_init.jl @@ -1,14 +1,14 @@ -@testset "T8code.uses_mpi" begin - @test T8code.uses_mpi() == true -end +# @testset "T8code.uses_mpi" begin +# @test T8code.uses_mpi() == true +# end @testset "T8code.init" begin @test_nowarn T8code.Libt8.sc_init(comm, 1, 1, C_NULL, SC_LP_DEFAULT) @test_nowarn t8_init(SC_LP_DEFAULT) end -@testset "sc_ functions" begin - @test_nowarn T8code.Libt8.sc_version() - @test_nowarn T8code.Libt8.sc_version_major() - @test_nowarn T8code.Libt8.sc_version_minor() -end +# @testset "sc_ functions" begin +# @test_nowarn T8code.Libt8.sc_version() +# @test_nowarn T8code.Libt8.sc_version_major() +# @test_nowarn T8code.Libt8.sc_version_minor() +# end From 9426d4396f72da6a5150b8ccd7648d4e25bec90c Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 12:41:10 +0100 Subject: [PATCH 10/23] Test more stuff --- test/test_all.jl | 4 +++- test/test_init.jl | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index 748ea1e..0f367e2 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -16,6 +16,8 @@ comm = MPI.COMM_WORLD include("test_init.jl") end -# MPI. +@testset "finalize" begin + T8code.Libt8.sc_finalize() +end end # module diff --git a/test/test_init.jl b/test/test_init.jl index 159b8da..46b2415 100644 --- a/test/test_init.jl +++ b/test/test_init.jl @@ -1,14 +1,14 @@ -# @testset "T8code.uses_mpi" begin -# @test T8code.uses_mpi() == true -# end +@testset "T8code.uses_mpi" begin + @test T8code.uses_mpi() == true +end @testset "T8code.init" begin @test_nowarn T8code.Libt8.sc_init(comm, 1, 1, C_NULL, SC_LP_DEFAULT) @test_nowarn t8_init(SC_LP_DEFAULT) end -# @testset "sc_ functions" begin -# @test_nowarn T8code.Libt8.sc_version() -# @test_nowarn T8code.Libt8.sc_version_major() -# @test_nowarn T8code.Libt8.sc_version_minor() -# end +@testset "sc_ functions" begin + @test_nowarn T8code.Libt8.sc_version() + @test_nowarn T8code.Libt8.sc_version_major() + @test_nowarn T8code.Libt8.sc_version_minor() +end From b298da0ca94667c8641f88ef1f5f62f0d07d860e Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 12:44:16 +0100 Subject: [PATCH 11/23] Come on! --- test/runtests.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 9ca3763..faa806e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -22,11 +22,11 @@ import MPIPreferences @info "Finished parallel tests" end - @time @testset "serial" begin - @info "Starting serial tests" + # @time @testset "serial" begin + # @info "Starting serial tests" - include("test_all.jl") + # include("test_all.jl") - @info "Finished serial tests" - end + # @info "Finished serial tests" + # end end From 79621761ac4530516f959cd80f9a1292df11a40d Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 13:08:48 +0100 Subject: [PATCH 12/23] Reactivate all tests, but still without serial execution --- test/test_all.jl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/test_all.jl b/test/test_all.jl index 0f367e2..a9191d9 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -16,6 +16,24 @@ comm = MPI.COMM_WORLD include("test_init.jl") end +@testset "general" begin + if !Sys.iswindows() + # These tests do not work in Windows since the DLL loader does not search for symbols beyond libt8.dll. + include("test_refcount.jl") + end +end + +@testset "forestwrapper" begin + include("test_forestwrapper.jl") +end + +@testset "cmesh" begin + include("cmesh/test_readmshfile.jl") +end + +@testset "forest" begin + include("forest/test_element_volume.jl") + @testset "finalize" begin T8code.Libt8.sc_finalize() end From f92e514a94f5eee48716feae1b4c58fcb6d50b6b Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 13:17:43 +0100 Subject: [PATCH 13/23] Missing end --- test/test_all.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_all.jl b/test/test_all.jl index a9191d9..8672147 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -33,6 +33,7 @@ end @testset "forest" begin include("forest/test_element_volume.jl") +end @testset "finalize" begin T8code.Libt8.sc_finalize() From 1ac39e08dac3b74529fa425e4daf984dacb0ef3f Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 13:20:43 +0100 Subject: [PATCH 14/23] Removed some tests again --- test/test_all.jl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index 8672147..4820ffd 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -23,17 +23,17 @@ end end end -@testset "forestwrapper" begin - include("test_forestwrapper.jl") -end +# @testset "forestwrapper" begin +# include("test_forestwrapper.jl") +# end -@testset "cmesh" begin - include("cmesh/test_readmshfile.jl") -end +# @testset "cmesh" begin +# include("cmesh/test_readmshfile.jl") +# end -@testset "forest" begin - include("forest/test_element_volume.jl") -end +# @testset "forest" begin +# include("forest/test_element_volume.jl") +# end @testset "finalize" begin T8code.Libt8.sc_finalize() From b2aac804f12d7bb4024e6741581009bfe144e0a8 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 13:37:29 +0100 Subject: [PATCH 15/23] Verify hypothesis --- test/runtests.jl | 10 +++++----- test/test_all.jl | 18 +++++++++--------- test/test_forestwrapper.jl | 2 ++ 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index faa806e..9ca3763 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -22,11 +22,11 @@ import MPIPreferences @info "Finished parallel tests" end - # @time @testset "serial" begin - # @info "Starting serial tests" + @time @testset "serial" begin + @info "Starting serial tests" - # include("test_all.jl") + include("test_all.jl") - # @info "Finished serial tests" - # end + @info "Finished serial tests" + end end diff --git a/test/test_all.jl b/test/test_all.jl index 4820ffd..8672147 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -23,17 +23,17 @@ end end end -# @testset "forestwrapper" begin -# include("test_forestwrapper.jl") -# end +@testset "forestwrapper" begin + include("test_forestwrapper.jl") +end -# @testset "cmesh" begin -# include("cmesh/test_readmshfile.jl") -# end +@testset "cmesh" begin + include("cmesh/test_readmshfile.jl") +end -# @testset "forest" begin -# include("forest/test_element_volume.jl") -# end +@testset "forest" begin + include("forest/test_element_volume.jl") +end @testset "finalize" begin T8code.Libt8.sc_finalize() diff --git a/test/test_forestwrapper.jl b/test/test_forestwrapper.jl index 2c4b0fd..6d57885 100644 --- a/test/test_forestwrapper.jl +++ b/test/test_forestwrapper.jl @@ -33,6 +33,8 @@ @test length(T8code.T8CODE_OBJECT_TRACKER) == 1 + finalize(wrapper_B) + # The second wrapper should be finalized automatically when Julia shuts down. # ... finalize(wrapper_B) ... end From a1364f20201d717ecdc0e24c6a8fb9f5f5c1dd3d Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 13:41:26 +0100 Subject: [PATCH 16/23] Remove finalize again --- test/test_all.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_all.jl b/test/test_all.jl index 8672147..4591137 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -35,8 +35,8 @@ end include("forest/test_element_volume.jl") end -@testset "finalize" begin - T8code.Libt8.sc_finalize() -end +# @testset "finalize" begin +# T8code.Libt8.sc_finalize() +# end end # module From 0ad4082b00eaa7f052ec93774c6d835d5bb11576 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 13:52:45 +0100 Subject: [PATCH 17/23] Reactivate parallel tests --- test/runtests.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 9ca3763..faa806e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -22,11 +22,11 @@ import MPIPreferences @info "Finished parallel tests" end - @time @testset "serial" begin - @info "Starting serial tests" + # @time @testset "serial" begin + # @info "Starting serial tests" - include("test_all.jl") + # include("test_all.jl") - @info "Finished serial tests" - end + # @info "Finished serial tests" + # end end From e8d1b14ec62c391f735d16da86f5440322bb6c9d Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 14:27:30 +0100 Subject: [PATCH 18/23] Test with serial --- test/runtests.jl | 10 ++++++---- test/test_all_serial.jl | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 test/test_all_serial.jl diff --git a/test/runtests.jl b/test/runtests.jl index faa806e..ca2551c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -22,11 +22,13 @@ import MPIPreferences @info "Finished parallel tests" end - # @time @testset "serial" begin - # @info "Starting serial tests" + @time @testset "serial" begin + @info "Starting serial tests" - # include("test_all.jl") + include("test_all_serial.jl") + + @info "Finished serial tests" + end - # @info "Finished serial tests" # end end diff --git a/test/test_all_serial.jl b/test/test_all_serial.jl new file mode 100644 index 0000000..f0d2bb4 --- /dev/null +++ b/test/test_all_serial.jl @@ -0,0 +1,42 @@ +module TestAllSerial + +using Test +using MPI: MPI + +using T8code +using T8code.Libt8: SC_LP_DEFAULT +using T8code.Libt8: SC_LP_ESSENTIAL +using T8code.Libt8: SC_LP_PRODUCTION + +MPI.Init() + +comm = MPI.COMM_WORLD + +@testset "init" begin + include("test_init.jl") +end + +@testset "general" begin + if !Sys.iswindows() + # These tests do not work in Windows since the DLL loader does not search for symbols beyond libt8.dll. + include("test_refcount.jl") + end +end + +@testset "forestwrapper" begin + include("test_forestwrapper.jl") +end + +@testset "cmesh" begin + include("cmesh/test_readmshfile.jl") +end + +@testset "forest" begin + include("forest/test_element_volume.jl") +end + +# @testset "finalize" begin +# T8code.Libt8.sc_finalize() +# end + +end # module From 0e98de26388e3c9215185df1ca302f5d7df453d3 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 15:01:51 +0100 Subject: [PATCH 19/23] Removed manual finalization of wrapper_B --- test/test_forestwrapper.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/test_forestwrapper.jl b/test/test_forestwrapper.jl index 6d57885..2c4b0fd 100644 --- a/test/test_forestwrapper.jl +++ b/test/test_forestwrapper.jl @@ -33,8 +33,6 @@ @test length(T8code.T8CODE_OBJECT_TRACKER) == 1 - finalize(wrapper_B) - # The second wrapper should be finalized automatically when Julia shuts down. # ... finalize(wrapper_B) ... end From 4916120ae20dafe66494a66da5f462caf2138a46 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 15:05:24 +0100 Subject: [PATCH 20/23] Added manual finalization again --- test/test_forestwrapper.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_forestwrapper.jl b/test/test_forestwrapper.jl index 2c4b0fd..6d57885 100644 --- a/test/test_forestwrapper.jl +++ b/test/test_forestwrapper.jl @@ -33,6 +33,8 @@ @test length(T8code.T8CODE_OBJECT_TRACKER) == 1 + finalize(wrapper_B) + # The second wrapper should be finalized automatically when Julia shuts down. # ... finalize(wrapper_B) ... end From 2ed111531b0ce5466a52747fdc75c0fa2462cdba Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 15:50:27 +0100 Subject: [PATCH 21/23] Serial tests as external julia command too --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index ca2551c..8587cfb 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -25,7 +25,7 @@ import MPIPreferences @time @testset "serial" begin @info "Starting serial tests" - include("test_all_serial.jl") + run(`$(Base.julia_cmd()) --threads=1 --check-bounds=yes --project=$(dirname(@__DIR__)) $(abspath("test_all.jl"))`) @info "Finished serial tests" end From 7a50caa6346caf0dc3092b2d511a3d541b88c1e4 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 15:53:57 +0100 Subject: [PATCH 22/23] Remove manual finalization of wrapper --- test/runtests.jl | 2 -- test/test_all.jl | 4 ---- test/test_all_serial.jl | 42 -------------------------------------- test/test_forestwrapper.jl | 2 -- 4 files changed, 50 deletions(-) delete mode 100644 test/test_all_serial.jl diff --git a/test/runtests.jl b/test/runtests.jl index 8587cfb..6786db8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -29,6 +29,4 @@ import MPIPreferences @info "Finished serial tests" end - - # end end diff --git a/test/test_all.jl b/test/test_all.jl index 4591137..c093ac3 100644 --- a/test/test_all.jl +++ b/test/test_all.jl @@ -35,8 +35,4 @@ end include("forest/test_element_volume.jl") end -# @testset "finalize" begin -# T8code.Libt8.sc_finalize() -# end - end # module diff --git a/test/test_all_serial.jl b/test/test_all_serial.jl deleted file mode 100644 index f0d2bb4..0000000 --- a/test/test_all_serial.jl +++ /dev/null @@ -1,42 +0,0 @@ -module TestAllSerial - -using Test -using MPI: MPI - -using T8code -using T8code.Libt8: SC_LP_DEFAULT -using T8code.Libt8: SC_LP_ESSENTIAL -using T8code.Libt8: SC_LP_PRODUCTION - -MPI.Init() - -comm = MPI.COMM_WORLD - -@testset "init" begin - include("test_init.jl") -end - -@testset "general" begin - if !Sys.iswindows() - # These tests do not work in Windows since the DLL loader does not search for symbols beyond libt8.dll. - include("test_refcount.jl") - end -end - -@testset "forestwrapper" begin - include("test_forestwrapper.jl") -end - -@testset "cmesh" begin - include("cmesh/test_readmshfile.jl") -end - -@testset "forest" begin - include("forest/test_element_volume.jl") -end - -# @testset "finalize" begin -# T8code.Libt8.sc_finalize() -# end - -end # module diff --git a/test/test_forestwrapper.jl b/test/test_forestwrapper.jl index 6d57885..2c4b0fd 100644 --- a/test/test_forestwrapper.jl +++ b/test/test_forestwrapper.jl @@ -33,8 +33,6 @@ @test length(T8code.T8CODE_OBJECT_TRACKER) == 1 - finalize(wrapper_B) - # The second wrapper should be finalized automatically when Julia shuts down. # ... finalize(wrapper_B) ... end From 79f60255737e57f5d08ded1ad2381904c0612983 Mon Sep 17 00:00:00 2001 From: Thomas Spenke Date: Tue, 9 Dec 2025 16:06:54 +0100 Subject: [PATCH 23/23] Removed some unnecessary (?) changes --- dummy.txt | 1 - test/cmesh/test_readmshfile.jl | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) delete mode 100644 dummy.txt diff --git a/dummy.txt b/dummy.txt deleted file mode 100644 index 9daeafb..0000000 --- a/dummy.txt +++ /dev/null @@ -1 +0,0 @@ -test diff --git a/test/cmesh/test_readmshfile.jl b/test/cmesh/test_readmshfile.jl index 480c50a..94d6729 100644 --- a/test/cmesh/test_readmshfile.jl +++ b/test/cmesh/test_readmshfile.jl @@ -95,4 +95,34 @@ end t8_cmesh_destroy(Ref(cmesh)) end + + @testset "test_msh_file_vers2_bin" begin + fileprefix = "cmesh/testfiles/test_msh_file_vers2_bin" + filename = fileprefix * ".msh" + + @assert isfile(filename) "File not found: "*filename + + cmesh = t8_cmesh_from_msh_file(fileprefix, 1, comm, 2, 0, 0) + + @assert cmesh==C_NULL "Expected fail of reading binary msh file v.2, but did not fail." + + if cmesh != C_NULL + t8_cmesh_destroy(Ref(cmesh)) + end + end + + @testset "test_msh_file_vers4_bin" begin + fileprefix = "cmesh/testfiles/test_msh_file_vers4_bin" + filename = fileprefix * ".msh" + + @assert isfile(filename) "File not found: "*filename + + cmesh = t8_cmesh_from_msh_file(fileprefix, 1, comm, 2, 0, 0) + + @assert cmesh==C_NULL "Expected fail of reading binary msh file v.4, but did not fail." + + if cmesh != C_NULL + t8_cmesh_destroy(Ref(cmesh)) + end + end end