diff --git a/lib/RecursiveArrayToolsArrayPartitionAnyAll/Project.toml b/lib/RecursiveArrayToolsArrayPartitionAnyAll/Project.toml index abfb64fe..cbdaf5e7 100644 --- a/lib/RecursiveArrayToolsArrayPartitionAnyAll/Project.toml +++ b/lib/RecursiveArrayToolsArrayPartitionAnyAll/Project.toml @@ -9,11 +9,14 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" RecursiveArrayTools = {path = "../.."} [compat] +Pkg = "1" RecursiveArrayTools = "4" +Test = "1" julia = "1.10" [extras] +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["Pkg", "Test"] diff --git a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/Project.toml b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/Project.toml new file mode 100644 index 00000000..0cee54b8 --- /dev/null +++ b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/Project.toml @@ -0,0 +1,15 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +RecursiveArrayToolsArrayPartitionAnyAll = "172d604e-c495-4f00-97bf-d70957099afa" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +RecursiveArrayToolsArrayPartitionAnyAll = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +RecursiveArrayToolsArrayPartitionAnyAll = "1" +Test = "1" +julia = "1.10" diff --git a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl new file mode 100644 index 00000000..0a53d9f3 --- /dev/null +++ b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl @@ -0,0 +1,10 @@ +using RecursiveArrayToolsArrayPartitionAnyAll, Aqua, JET, Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(RecursiveArrayToolsArrayPartitionAnyAll) + end + @testset "JET" begin + JET.test_package(RecursiveArrayToolsArrayPartitionAnyAll; target_defined_modules = true) + end +end diff --git a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/runtests.jl b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/runtests.jl index 967f1126..db8ee476 100644 --- a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/runtests.jl +++ b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/runtests.jl @@ -1,7 +1,28 @@ using RecursiveArrayTools, RecursiveArrayToolsArrayPartitionAnyAll, Test +using Pkg const TEST_GROUP = get(ENV, "RECURSIVEARRAYTOOLS_TEST_GROUP", "Core") +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + # On Julia < 1.11, the [sources] section in the qa Project.toml is not + # honored, so Pkg.develop the local paths explicitly. + if VERSION < v"1.11.0-DEV.0" + Pkg.develop( + [ + PackageSpec(path = dirname(@__DIR__)), + PackageSpec(path = normpath(joinpath(dirname(@__DIR__), "..", ".."))), + ] + ) + end + return Pkg.instantiate() +end + +if TEST_GROUP == "QA" + activate_qa_env() + include("qa/qa.jl") +end + if TEST_GROUP == "Core" || TEST_GROUP == "All" @testset "Optimized any" begin ap = ArrayPartition(collect(1:5), collect(6:10), collect(11:15)) diff --git a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/test_groups.toml b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/test_groups.toml index dda1469c..1fe84cd4 100644 --- a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/test_groups.toml +++ b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/test_groups.toml @@ -1,2 +1,5 @@ [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"] diff --git a/lib/RecursiveArrayToolsRaggedArrays/Project.toml b/lib/RecursiveArrayToolsRaggedArrays/Project.toml index 93687be7..61bbe81e 100644 --- a/lib/RecursiveArrayToolsRaggedArrays/Project.toml +++ b/lib/RecursiveArrayToolsRaggedArrays/Project.toml @@ -17,15 +17,19 @@ RecursiveArrayTools = {path = "../.."} Adapt = "4" ArrayInterface = "7.17.0" LinearAlgebra = "1.10" +Pkg = "1" RecursiveArrayTools = "4" +SparseArrays = "1.10" StaticArraysCore = "1.4.2" SymbolicIndexingInterface = "0.3.42" +Test = "1" julia = "1.10" [extras] +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["SparseArrays", "SymbolicIndexingInterface", "Test"] +test = ["Pkg", "SparseArrays", "SymbolicIndexingInterface", "Test"] diff --git a/lib/RecursiveArrayToolsRaggedArrays/test/qa/Project.toml b/lib/RecursiveArrayToolsRaggedArrays/test/qa/Project.toml new file mode 100644 index 00000000..397670e2 --- /dev/null +++ b/lib/RecursiveArrayToolsRaggedArrays/test/qa/Project.toml @@ -0,0 +1,15 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +RecursiveArrayToolsRaggedArrays = "c384ba91-639a-44ca-823a-e1d3691ab84a" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +RecursiveArrayToolsRaggedArrays = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +RecursiveArrayToolsRaggedArrays = "1" +Test = "1" +julia = "1.10" diff --git a/lib/RecursiveArrayToolsRaggedArrays/test/qa/qa.jl b/lib/RecursiveArrayToolsRaggedArrays/test/qa/qa.jl new file mode 100644 index 00000000..6e135977 --- /dev/null +++ b/lib/RecursiveArrayToolsRaggedArrays/test/qa/qa.jl @@ -0,0 +1,10 @@ +using RecursiveArrayToolsRaggedArrays, Aqua, JET, Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(RecursiveArrayToolsRaggedArrays) + end + @testset "JET" begin + JET.test_package(RecursiveArrayToolsRaggedArrays; target_defined_modules = true) + end +end diff --git a/lib/RecursiveArrayToolsRaggedArrays/test/runtests.jl b/lib/RecursiveArrayToolsRaggedArrays/test/runtests.jl index 17b27602..ea4e55cf 100644 --- a/lib/RecursiveArrayToolsRaggedArrays/test/runtests.jl +++ b/lib/RecursiveArrayToolsRaggedArrays/test/runtests.jl @@ -3,9 +3,30 @@ using RecursiveArrayToolsRaggedArrays: RaggedEnd, RaggedRange using SymbolicIndexingInterface using SymbolicIndexingInterface: SymbolCache using Test +using Pkg const TEST_GROUP = get(ENV, "RECURSIVEARRAYTOOLS_TEST_GROUP", "Core") +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + # On Julia < 1.11, the [sources] section in the qa Project.toml is not + # honored, so Pkg.develop the local paths explicitly. + if VERSION < v"1.11.0-DEV.0" + Pkg.develop( + [ + PackageSpec(path = dirname(@__DIR__)), + PackageSpec(path = normpath(joinpath(dirname(@__DIR__), "..", ".."))), + ] + ) + end + return Pkg.instantiate() +end + +if TEST_GROUP == "QA" + activate_qa_env() + include("qa/qa.jl") +end + if TEST_GROUP == "Core" || TEST_GROUP == "All" @testset "RecursiveArrayToolsRaggedArrays" begin # =================================================================== diff --git a/lib/RecursiveArrayToolsRaggedArrays/test/test_groups.toml b/lib/RecursiveArrayToolsRaggedArrays/test/test_groups.toml index dda1469c..1fe84cd4 100644 --- a/lib/RecursiveArrayToolsRaggedArrays/test/test_groups.toml +++ b/lib/RecursiveArrayToolsRaggedArrays/test/test_groups.toml @@ -1,2 +1,5 @@ [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"] diff --git a/lib/RecursiveArrayToolsShorthandConstructors/Project.toml b/lib/RecursiveArrayToolsShorthandConstructors/Project.toml index 6ad88ae4..2737e2d5 100644 --- a/lib/RecursiveArrayToolsShorthandConstructors/Project.toml +++ b/lib/RecursiveArrayToolsShorthandConstructors/Project.toml @@ -9,11 +9,14 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" RecursiveArrayTools = {path = "../.."} [compat] +Pkg = "1" RecursiveArrayTools = "4" +Test = "1" julia = "1.10" [extras] +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["Pkg", "Test"] diff --git a/lib/RecursiveArrayToolsShorthandConstructors/test/qa/Project.toml b/lib/RecursiveArrayToolsShorthandConstructors/test/qa/Project.toml new file mode 100644 index 00000000..0e399924 --- /dev/null +++ b/lib/RecursiveArrayToolsShorthandConstructors/test/qa/Project.toml @@ -0,0 +1,15 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +RecursiveArrayToolsShorthandConstructors = "39fb7555-b4ad-4efd-8abe-30331df017d3" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +RecursiveArrayToolsShorthandConstructors = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +RecursiveArrayToolsShorthandConstructors = "1" +Test = "1" +julia = "1.10" diff --git a/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl b/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl new file mode 100644 index 00000000..74f2c270 --- /dev/null +++ b/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl @@ -0,0 +1,10 @@ +using RecursiveArrayToolsShorthandConstructors, Aqua, JET, Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(RecursiveArrayToolsShorthandConstructors) + end + @testset "JET" begin + JET.test_package(RecursiveArrayToolsShorthandConstructors; target_defined_modules = true) + end +end diff --git a/lib/RecursiveArrayToolsShorthandConstructors/test/runtests.jl b/lib/RecursiveArrayToolsShorthandConstructors/test/runtests.jl index ea04eaca..612959b1 100644 --- a/lib/RecursiveArrayToolsShorthandConstructors/test/runtests.jl +++ b/lib/RecursiveArrayToolsShorthandConstructors/test/runtests.jl @@ -1,7 +1,28 @@ using RecursiveArrayTools, RecursiveArrayToolsShorthandConstructors, Test +using Pkg const TEST_GROUP = get(ENV, "RECURSIVEARRAYTOOLS_TEST_GROUP", "Core") +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + # On Julia < 1.11, the [sources] section in the qa Project.toml is not + # honored, so Pkg.develop the local paths explicitly. + if VERSION < v"1.11.0-DEV.0" + Pkg.develop( + [ + PackageSpec(path = dirname(@__DIR__)), + PackageSpec(path = normpath(joinpath(dirname(@__DIR__), "..", ".."))), + ] + ) + end + return Pkg.instantiate() +end + +if TEST_GROUP == "QA" + activate_qa_env() + include("qa/qa.jl") +end + if TEST_GROUP == "Core" || TEST_GROUP == "All" @testset "VA[...] shorthand" begin recs = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] diff --git a/lib/RecursiveArrayToolsShorthandConstructors/test/test_groups.toml b/lib/RecursiveArrayToolsShorthandConstructors/test/test_groups.toml index dda1469c..1fe84cd4 100644 --- a/lib/RecursiveArrayToolsShorthandConstructors/test/test_groups.toml +++ b/lib/RecursiveArrayToolsShorthandConstructors/test/test_groups.toml @@ -1,2 +1,5 @@ [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"]