diff --git a/tests/physics/CMakeLists.txt b/tests/physics/CMakeLists.txt index cc3df5ea8e..755886ebbf 100644 --- a/tests/physics/CMakeLists.txt +++ b/tests/physics/CMakeLists.txt @@ -2,7 +2,7 @@ # Declare dependencies macro (SETUP_TESTCASE_DEPENDENCIES) target_bullet() - link_hifi_libraries(shared physics) + link_hifi_libraries(shared physics gpu model) package_libraries_for_deployment() endmacro () diff --git a/tests/physics/src/CollisionRenderMeshCacheTests.cpp b/tests/physics/src/CollisionRenderMeshCacheTests.cpp new file mode 100644 index 0000000000..58b45f6400 --- /dev/null +++ b/tests/physics/src/CollisionRenderMeshCacheTests.cpp @@ -0,0 +1,41 @@ +// +// CollisionRenderMeshCacheTests.cpp +// tests/physics/src +// +// Created by Andrew Meadows on 2014.10.30 +// Copyright 2014 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#include +#include +#include + +#include "CollisionRenderMeshCacheTests.h" + +QTEST_MAIN(CollisionRenderMeshCacheTests) + + +void CollisionRenderMeshCacheTests::test001() { + CollisionRenderMeshCache cache; + + // create a compound shape + int32_t numSubShapes = 3; + + + // get the mesh + + // get the mesh again + + // forget the mesh once + + // collect garbage + + // forget the mesh a second time + + // collect garbage + +} + diff --git a/tests/physics/src/CollisionRenderMeshCacheTests.h b/tests/physics/src/CollisionRenderMeshCacheTests.h new file mode 100644 index 0000000000..d927bf8cab --- /dev/null +++ b/tests/physics/src/CollisionRenderMeshCacheTests.h @@ -0,0 +1,24 @@ +// +// CollisionRenderMeshCacheTests.h +// tests/physics/src +// +// Created by Andrew Meadows on 2014.10.30 +// Copyright 2014 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#ifndef hifi_CollisionRenderMeshCacheTests_h +#define hifi_CollisionRenderMeshCacheTests_h + +#include + +class CollisionRenderMeshCacheTests : public QObject { + Q_OBJECT + +private slots: + void test001(); +}; + +#endif // hifi_CollisionRenderMeshCacheTests_h