diff --git a/src/Constants.jl b/src/Constants.jl new file mode 100644 index 0000000000000000000000000000000000000000..b1e5db73dc4672aa719861d5cf58e5fc918d9939 --- /dev/null +++ b/src/Constants.jl @@ -0,0 +1,34 @@ +# ** header v3.0 +# This file is a part of the CaosDB Project. +# +# Copyright (C) 2021 Indiscale GmbH <info@indiscale.com> +# Copyright (C) 2021 Florian Spreckelsen <f.spreckelsen@indiscale.com> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public +# License along with this program. If not, see +# <https://www.gnu.org/licenses/>. +# +# ** end header +# + +module Constants + +export MIN_CCAOSDB_VERSION + +""" +The minimum version of CaosDB's cpplib and C interface that is +supported by this version of CaosDB.jl. +""" +const MIN_CCAOSDB_VERSION = v"0.0.16" + +end diff --git a/test/runtests.jl b/test/runtests.jl index 8f522788fc801d7718e35d90b483af5f4f547c69..c2ae2face7fdc82805eab16055069ae4a33c5b04 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -25,6 +25,7 @@ using CaosDB @testset "CaosDBUnitTests" begin @testset "TestCaosdbCppLibVersion" begin + @test CaosDB.Utility.get_ccaosdb_version() >= CaosDB.Constants.MIN_CCAOSDB_VERSION end