Skip to content

Commit

Permalink
Reorganize tests to always use runtests.jl files (#2813)
Browse files Browse the repository at this point in the history
... to group things together. Also merge `test/Experimental` content
into the `experimental` directory.
  • Loading branch information
fingolfin authored Sep 18, 2023
1 parent 81b983d commit e38f9a0
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 32 deletions.
7 changes: 4 additions & 3 deletions experimental/Experimental.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const expdir = joinpath(@__DIR__, "../experimental")
const oldexppkgs = [
"ExteriorAlgebra",
"GModule",
"Matrix",
"MatrixGroups",
"ModStd",
"Rings",
"Schemes"
"Schemes",
]
# DEVELOPER OPTION:
# The following lines ensure that ToricSchemes is loaded before FTheoryTools.
Expand Down Expand Up @@ -44,6 +44,8 @@ include("Rings.jl")
include("ModStd.jl")
include("GModule.jl")

include("MatrixGroups/matrix.jl")

include("Schemes/Types.jl")
include("Schemes/SpecialTypes.jl")
include("Schemes/CoveredScheme.jl")
Expand All @@ -56,7 +58,6 @@ include("Schemes/AlgebraicCycles.jl")
include("Schemes/WeilDivisor.jl")
include("Schemes/CoveredProjectiveSchemes.jl")

include("Matrix/matrix.jl")
include("Schemes/SimplifiedSpec.jl")
include("Schemes/CoherentSheaves.jl")
include("Schemes/LazyGlueing.jl")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export _wrap_for_gap
# Initialize GAP function, i.e. GAP reads the file matrix.g
#
function __init__()
GAP.Globals.Reread(GAP.GapObj(joinpath(Oscar.oscardir, "experimental", "Matrix", "matrix.g")))
GAP.Globals.Read(GAP.GapObj(joinpath(@__DIR__, "matrix.g")))
end

################################################################################
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions experimental/ModStd/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include("ModStdQt.jl")
include("ModStdNF.jl")
6 changes: 6 additions & 0 deletions experimental/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
for pkg in Oscar.exppkgs
include("$pkg/test/runtests.jl")
end

# legacy files
include("GModule/test/runtests.jl")
include("ModStd/test/runtests.jl")
include("MatrixGroups/test/runtests.jl")
include("ExteriorAlgebra/test/runtests.jl")
4 changes: 4 additions & 0 deletions test/AlgebraicGeometry/Surfaces/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using Oscar
using Test

include("K3Auto.jl")
1 change: 1 addition & 0 deletions test/Combinatorics/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Oscar
using Test

include("SimplicialComplexes.jl")
include("Matroids/Matroids.jl")
Expand Down
1 change: 1 addition & 0 deletions test/Data/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Oscar
using Test

@testset "Data Loading" begin
data_dir = joinpath(dirname(dirname(@__DIR__)), "data")
Expand Down
5 changes: 5 additions & 0 deletions test/NumberTheory/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Oscar
using Test

include("nmbthy.jl")
include("galthy.jl")
5 changes: 3 additions & 2 deletions test/PolyhedralGeometry/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const pm = Polymake

using Oscar
using Test

const pm = Polymake

include("types.jl")
include("iterators.jl")
Expand Down
5 changes: 5 additions & 0 deletions test/Rings/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using Oscar
using Test

include("integer.jl")
include("rational.jl")
include("mpoly.jl")
Expand Down Expand Up @@ -34,3 +37,5 @@ include("FreeAssAlgIdeal.jl")

include("binomial-ideals.jl")
include("hilbert.jl")

include("ReesAlgebra.jl")
3 changes: 1 addition & 2 deletions test/Serialization/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Oscar
using Test

isdefined(Main, :test_save_load_roundtrip) ||
include(joinpath(Oscar.oscardir, "test", "Serialization", "test_save_load_roundtrip.jl"))
Expand All @@ -14,5 +15,3 @@ include("Matrices.jl")
include("Fields.jl")
include("TropicalGeometry.jl")
include("QuadForm.jl")
include("polymake/runtests.jl")
include("upgrades/runtests.jl")
1 change: 1 addition & 0 deletions test/TropicalGeometry/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Oscar
using Test

include("groebner_basis.jl")
include("groebner_fan.jl")
Expand Down
31 changes: 7 additions & 24 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,51 +105,34 @@ end
end

testlist = [

"Aqua.jl",

"printing.jl",

"PolyhedralGeometry/runtests.jl",
"Combinatorics/runtests.jl",

"GAP/runtests.jl",
"Groups/runtests.jl",

"Rings/runtests.jl",

"NumberTheory/nmbthy.jl",
"NumberTheory/galthy.jl",

"Rings/ReesAlgebra.jl",

"NumberTheory/runtests.jl",
"Modules/runtests.jl",

"InvariantTheory/runtests.jl",

"AlgebraicGeometry/Schemes/runtests.jl",
"AlgebraicGeometry/ToricVarieties/runtests.jl",
"AlgebraicGeometry/Surfaces/K3Auto.jl",
"AlgebraicGeometry/Surfaces/runtests.jl",

"TropicalGeometry/runtests.jl",

"Serialization/runtests.jl",
"Serialization/polymake/runtests.jl",
"Serialization/upgrades/runtests.jl",

# Will automatically include all experimental packages following our
# guidelines.

# Automatically include tests of all experimental packages following our
# guidelines.
"../experimental/runtests.jl",

"Experimental/gmodule.jl",
"Experimental/ModStdQt.jl",
"Experimental/ModStdNF.jl",
"Experimental/MatrixGroups.jl",
"Experimental/ExteriorAlgebra.jl",


"Data/runtests.jl",

"StraightLinePrograms/runtests.jl"
"StraightLinePrograms/runtests.jl",
]

# if many workers, distribute tasks across them
Expand Down

0 comments on commit e38f9a0

Please sign in to comment.