Skip to content

Commit

Permalink
Define a metaversal test target to detect issues.
Browse files Browse the repository at this point in the history
* Defining the test here is a good place, so that
 we know what clients can expect from the root
 source.
* This will catch any potential linker errors early and
  a good place to check correctness before tagging
  a new release.
  • Loading branch information
furby-tm committed Nov 14, 2023
1 parent b63017b commit fb9ee57
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 1 deletion.
52 changes: 51 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ let package = Package(
cSettings: [
.define("H5_HAVE_C99_FUNC", to: "1"),
.define("H5_USE_18_API", to: "1"),
.define("H5_BUILT_AS_DYNAMIC_LIB", to: "1"),
.define("H5_BUILT_AS_DYNAMIC_LIB", to: "0"),
]
),

Expand Down Expand Up @@ -1228,6 +1228,56 @@ let package = Package(
url: "https://github.com/wabiverse/Kraken/releases/download/1.50a/MoltenVK.xcframework.zip",
checksum: "d236c4d41f581b6533f2f40eb0f74a6af03b31781cbb451856c5acf2f9f8f491"
),

.testTarget(
name: "MetaverseKitTests",
dependencies: [
/* link everything, a solid test. */
"Alembic",
"Apple",
"Blosc",
"DEFLATE",
"Draco",
"Eigen",
"GLFW",
"GPUShaders",
"Glslang",
"HDF5",
"ImGui",
"LZMA2",
"LibPNG",
"MXGraphEditor",
"MXResources",
"MaterialX",
"MetaPy",
"MetaTBB",
"MiniZip",
"OneTBB",
"OpenColorIO",
"OpenEXR",
"OpenImageIO",
"OpenMP",
"OpenSSL",
"OpenSubdiv",
"OpenVDB",
"Ptex",
"PyBind11",
"Raw",
"SPIRVCross",
"Shaderc",
"TBBMalloc",
"TBBMallocProxy",
"TIFF",
"TurboJPEG",
"WebP",
"Yaml",
"ZLibDataCompression",
"ZStandard",
],
swiftSettings: [
.interoperabilityMode(.Cxx),
]
)
],
cLanguageStandard: .gnu17,
cxxLanguageStandard: .cxx17
Expand Down
32 changes: 32 additions & 0 deletions Tests/MetaverseKitTests/MetaverseKitTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* --------------------------------------------------------------
* :: : M E T A V E R S E : ::
* --------------------------------------------------------------
* This program is free software; you can redistribute it, and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 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. Check out
* the GNU General Public License for more details.
*
* You should have received a copy for this software license, the
* GNU General Public License along with this program; or, if not
* write to the Free Software Foundation, Inc., to the address of
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright (C) 2023 Wabi Foundation. All Rights Reserved.
* --------------------------------------------------------------
* . x x x . o o o . x x x . : : : . o x o . : : : .
* -------------------------------------------------------------- */

import XCTest

class MetaverseKitTests: XCTestCase
{
func testMetaverse() throws
{
print("TODO: Write tests.")
}
}

0 comments on commit fb9ee57

Please sign in to comment.