Esempio n. 1
0
Test::Test() {
    addTests({&Test::nameList,
              &Test::wrongPluginVersion,
              &Test::wrongPluginInterface,
              &Test::wrongMetadataFile,

              &Test::staticPlugin,
              #if !defined(CORRADE_TARGET_NACL_NEWLIB) && !defined(CORRADE_TARGET_EMSCRIPTEN)
              &Test::dynamicPlugin,
              #endif
              &Test::staticPluginInitFini,
              #if !defined(CORRADE_TARGET_NACL_NEWLIB) && !defined(CORRADE_TARGET_EMSCRIPTEN)
              &Test::dynamicPluginInitFini,
              #endif

              &Test::deletable,
              &Test::hierarchy,
              &Test::crossManagerDependencies,
              &Test::usedByZombies,
              &Test::reloadPluginDirectory,

              &Test::debug});

    initialize();
}
Esempio n. 2
0
ArrayTest::ArrayTest() {
    addTests({&ArrayTest::constructEmpty,
              &ArrayTest::constructNullptr,
              &ArrayTest::constructDefaultInit,
              &ArrayTest::constructValueInit,
              &ArrayTest::constructNoInit,
              &ArrayTest::constructDirectInit,
              &ArrayTest::construct,
              &ArrayTest::constructFromExisting,
              &ArrayTest::constructZeroSize,
              &ArrayTest::constructMove,
              &ArrayTest::constructFrom,
              &ArrayTest::constructFromChar,

              &ArrayTest::boolConversion,
              &ArrayTest::pointerConversion,

              &ArrayTest::emptyCheck,
              &ArrayTest::access,
              &ArrayTest::rvalueArrayAccess,
              &ArrayTest::rangeBasedFor,

              &ArrayTest::slice,
              &ArrayTest::sliceToStatic,
              &ArrayTest::release,

              &ArrayTest::customDeleter,
              &ArrayTest::customDeleterType});
}
Esempio n. 3
0
VersionTest::VersionTest() {
    addTests({&VersionTest::fromNumber,
              &VersionTest::toNumber,
              &VersionTest::compare,

              &VersionTest::debug});
}
AbstractTextureGLTest::AbstractTextureGLTest() {
    addTests({&AbstractTextureGLTest::construct,
              &AbstractTextureGLTest::constructCopy,
              &AbstractTextureGLTest::constructMove,

              &AbstractTextureGLTest::label});
}
AnyImageImporterTest::AnyImageImporterTest(): _manager{MAGNUM_PLUGINS_IMPORTER_DIR} {
    addTests({&AnyImageImporterTest::tga,
              &AnyImageImporterTest::jpeg,
              &AnyImageImporterTest::png,

              &AnyImageImporterTest::unknown});
}
Esempio n. 6
0
StaticArrayTest::StaticArrayTest() {
    addTests({&StaticArrayTest::construct,
              &StaticArrayTest::constructDefaultInit,
              &StaticArrayTest::constructValueInit,
              &StaticArrayTest::constructNoInit,
              &StaticArrayTest::constructDirectInit,
              &StaticArrayTest::constructInPlaceInit,
              &StaticArrayTest::constructNonCopyable,
              &StaticArrayTest::constructNoImplicitConstructor,
              &StaticArrayTest::constructDirectReferences,

              &StaticArrayTest::convertBool,
              &StaticArrayTest::convertPointer,
              &StaticArrayTest::convertView,
              &StaticArrayTest::convertViewDerived,
              &StaticArrayTest::convertStaticView,
              &StaticArrayTest::convertStaticViewDerived,
              &StaticArrayTest::convertVoid,

              &StaticArrayTest::access,
              &StaticArrayTest::rvalueArrayAccess,
              &StaticArrayTest::rangeBasedFor,

              &StaticArrayTest::slice,
              &StaticArrayTest::sliceToStatic});
}
MultisampleTextureGLTest::MultisampleTextureGLTest() {
    addTests({&MultisampleTextureGLTest::construct2D,
              &MultisampleTextureGLTest::construct2DArray,

              &MultisampleTextureGLTest::construct2DNoCreate,
              &MultisampleTextureGLTest::construct2DArrayNoCreate,

              &MultisampleTextureGLTest::wrap2D,
              &MultisampleTextureGLTest::wrap2DArray,

              &MultisampleTextureGLTest::bind2D,
              &MultisampleTextureGLTest::bind2DArray,

              &MultisampleTextureGLTest::bindImage2D,
              &MultisampleTextureGLTest::bindImage2DArray,

              &MultisampleTextureGLTest::storage2D,
              &MultisampleTextureGLTest::storage2DArray,

              &MultisampleTextureGLTest::invalidateImage2D,
              &MultisampleTextureGLTest::invalidateImage2DArray,

              &MultisampleTextureGLTest::invalidateSubImage2D,
              &MultisampleTextureGLTest::invalidateSubImage2DArray});
}
Esempio n. 8
0
BufferGLTest::BufferGLTest() {
    addTests({&BufferGLTest::construct,
              &BufferGLTest::constructCopy,
              &BufferGLTest::constructMove,
              &BufferGLTest::wrap,

              &BufferGLTest::label,

              #ifndef MAGNUM_TARGET_GLES2
              &BufferGLTest::bindBase,
              &BufferGLTest::bindRange,
              #endif

              &BufferGLTest::data,
              &BufferGLTest::map,
              #ifdef CORRADE_TARGET_NACL
              &BufferGLTest::mapSub,
              #endif
              &BufferGLTest::mapRange,
              &BufferGLTest::mapRangeExplicitFlush,
              #ifndef MAGNUM_TARGET_GLES2
              &BufferGLTest::copy,
              #endif
              &BufferGLTest::invalidate});
}
TgaImageConverterTest::TgaImageConverterTest() {
    addTests({&TgaImageConverterTest::wrongFormat,
              &TgaImageConverterTest::wrongType,

              &TgaImageConverterTest::data
             });
}
MultisampleTextureGLTest::MultisampleTextureGLTest() {
    addTests({&MultisampleTextureGLTest::construct2D,
              #ifndef MAGNUM_TARGET_GLES
              &MultisampleTextureGLTest::construct2DArray,
              #endif

              &MultisampleTextureGLTest::wrap2D,
              #ifndef MAGNUM_TARGET_GLES
              &MultisampleTextureGLTest::wrap2DArray,
              #endif

              &MultisampleTextureGLTest::bind2D,
              #ifndef MAGNUM_TARGET_GLES
              &MultisampleTextureGLTest::bind2DArray,
              #endif

              &MultisampleTextureGLTest::storage2D,
              #ifndef MAGNUM_TARGET_GLES
              &MultisampleTextureGLTest::storage2DArray,
              #endif

              &MultisampleTextureGLTest::invalidateImage2D,
              #ifndef MAGNUM_TARGET_GLES
              &MultisampleTextureGLTest::invalidateImage2DArray,
              #endif

              &MultisampleTextureGLTest::invalidateSubImage2D,
              #ifndef MAGNUM_TARGET_GLES
              &MultisampleTextureGLTest::invalidateSubImage2DArray
              #endif
              });
}
Esempio n. 11
0
DualComplexTest::DualComplexTest() {
    addTests({&DualComplexTest::construct,
              &DualComplexTest::constructDefault,
              &DualComplexTest::constructFromVector,
              &DualComplexTest::constructCopy,

              &DualComplexTest::isNormalized,

              &DualComplexTest::multiply,

              &DualComplexTest::lengthSquared,
              &DualComplexTest::length,
              &DualComplexTest::normalized,

              &DualComplexTest::complexConjugated,
              &DualComplexTest::dualConjugated,
              &DualComplexTest::conjugated,
              &DualComplexTest::inverted,
              &DualComplexTest::invertedNormalized,

              &DualComplexTest::rotation,
              &DualComplexTest::translation,
              &DualComplexTest::combinedTransformParts,
              &DualComplexTest::matrix,
              &DualComplexTest::transformPoint,

              &DualComplexTest::debug});
}
Esempio n. 12
0
AbstractImageTest::AbstractImageTest() {
    addTests({&AbstractImageTest::pixelSize,
              &AbstractImageTest::dataSize,

              &AbstractImageTest::debugFormat,
              &AbstractImageTest::debugType});
}
Esempio n. 13
0
ConfigurationTest::ConfigurationTest() {
    addTests({&ConfigurationTest::parse,
              &ConfigurationTest::parseHierarchic,

              &ConfigurationTest::groupIndex,
              &ConfigurationTest::valueIndex,

              &ConfigurationTest::names,

              &ConfigurationTest::invalid,
              &ConfigurationTest::readonly,
              &ConfigurationTest::nonexistentFile,
              &ConfigurationTest::truncate,

              &ConfigurationTest::whitespaces,
              &ConfigurationTest::types,
              &ConfigurationTest::typesScientific,
              &ConfigurationTest::eol,
              &ConfigurationTest::stripComments,

              &ConfigurationTest::multiLineValue,
              &ConfigurationTest::multiLineValueCrlf,

              &ConfigurationTest::standaloneGroup,
              &ConfigurationTest::copy,
              &ConfigurationTest::move});

    /* Create testing dir */
    Directory::mkpath(CONFIGURATION_WRITE_TEST_DIR);

    /* Remove everything there */
    Directory::rm(Directory::join(CONFIGURATION_WRITE_TEST_DIR, "parse.conf"));
    Directory::rm(Directory::join(CONFIGURATION_WRITE_TEST_DIR, "new.conf"));
    Directory::rm(Directory::join(CONFIGURATION_WRITE_TEST_DIR, "types.conf"));
}
Esempio n. 14
0
SphereTest::SphereTest() {
    addTests({&SphereTest::applyTransformation,
              &SphereTest::collisionPoint,
              &SphereTest::collisionLine,
              &SphereTest::collisionLineSegment,
              &SphereTest::collisionSphere});
}
Esempio n. 15
0
ShapeTest::ShapeTest() {
    addTests({&ShapeTest::clean,
              &ShapeTest::collides,
              &ShapeTest::collision,
              &ShapeTest::firstCollision,
              &ShapeTest::shapeGroup});
}
AbstractShaderProgramGLTest::AbstractShaderProgramGLTest() {
    addTests({&AbstractShaderProgramGLTest::construct,
              &AbstractShaderProgramGLTest::constructCopy,
              &AbstractShaderProgramGLTest::constructMove,

              &AbstractShaderProgramGLTest::label});
}
Esempio n. 17
0
TesterTest::TesterTest() {
    addTests({&TesterTest::test,
              &TesterTest::emptyTest,

              &TesterTest::compareAsOverload,
              &TesterTest::verifyExplicitBool});
}
Esempio n. 18
0
AbstractQueryGLTest::AbstractQueryGLTest() {
    addTests({&AbstractQueryGLTest::construct,
              &AbstractQueryGLTest::constructCopy,
              &AbstractQueryGLTest::constructMove,

              &AbstractQueryGLTest::label});
}
Esempio n. 19
0
ComplexTest::ComplexTest() {
    addTests({&ComplexTest::construct,
              &ComplexTest::constructIdentity,
              &ComplexTest::constructZero,
              &ComplexTest::constructNoInit,
              &ComplexTest::constructFromVector,
              &ComplexTest::constructConversion,
              &ComplexTest::constructCopy,
              &ComplexTest::convert,

              &ComplexTest::compare,
              &ComplexTest::isNormalized,

              &ComplexTest::addSubtract,
              &ComplexTest::negated,
              &ComplexTest::multiplyDivideScalar,
              &ComplexTest::multiply,

              &ComplexTest::dot,
              &ComplexTest::dotSelf,
              &ComplexTest::length,
              &ComplexTest::normalized,

              &ComplexTest::conjugated,
              &ComplexTest::inverted,
              &ComplexTest::invertedNormalized,

              &ComplexTest::angle,
              &ComplexTest::rotation,
              &ComplexTest::matrix,
              &ComplexTest::transformVector,

              &ComplexTest::debug});
}
Esempio n. 20
0
ContainerTest::ContainerTest() {
    addTests({&ContainerTest::same,
              &ContainerTest::outputActualSmaller,
              &ContainerTest::outputExpectedSmaller,
              &ContainerTest::output,
              &ContainerTest::sorted});
}
Esempio n. 21
0
RectangularMatrixTest::RectangularMatrixTest() {
    addTests({&RectangularMatrixTest::construct,
              &RectangularMatrixTest::constructDefault,
              &RectangularMatrixTest::constructConversion,
              &RectangularMatrixTest::constructFromData,
              &RectangularMatrixTest::constructFromDiagonal,
              &RectangularMatrixTest::constructCopy,

              &RectangularMatrixTest::convert,
              &RectangularMatrixTest::data,
              &RectangularMatrixTest::row,

              &RectangularMatrixTest::compare,

              &RectangularMatrixTest::negative,
              &RectangularMatrixTest::addSubtract,
              &RectangularMatrixTest::multiplyDivide,
              &RectangularMatrixTest::multiply,

              &RectangularMatrixTest::transposed,
              &RectangularMatrixTest::diagonal,

              &RectangularMatrixTest::vector,

              &RectangularMatrixTest::debug,
              &RectangularMatrixTest::configuration});
}
Esempio n. 22
0
FreeTypeFontTest::FreeTypeFontTest() {
    addTests({&FreeTypeFontTest::properties,
              &FreeTypeFontTest::layout,
              &FreeTypeFontTest::fillGlyphCache});

    FreeTypeFont::initialize();
}
Esempio n. 23
0
StanfordImporterTest::StanfordImporterTest() {
    addTests({&StanfordImporterTest::invalidSignature,

              &StanfordImporterTest::invalidFormat,
              &StanfordImporterTest::unsupportedFormat,
              &StanfordImporterTest::missingFormat,

              &StanfordImporterTest::unknownLine,
              &StanfordImporterTest::unknownElement,

              &StanfordImporterTest::unexpectedProperty,
              &StanfordImporterTest::invalidVertexProperty,
              &StanfordImporterTest::invalidVertexType,
              &StanfordImporterTest::unknownFaceProperty,
              &StanfordImporterTest::invalidFaceSizeType,
              &StanfordImporterTest::invalidFaceIndexType,

              &StanfordImporterTest::incompleteVertex,
              &StanfordImporterTest::incompleteFace,

              &StanfordImporterTest::invalidFaceSize,
              &StanfordImporterTest::shortFile,

              &StanfordImporterTest::empty,
              &StanfordImporterTest::common,
              &StanfordImporterTest::bigEndian,
              &StanfordImporterTest::crlf,
              &StanfordImporterTest::ignoredVertexComponents});
}
Esempio n. 24
0
AngleTest::AngleTest() {
    addTests({&AngleTest::construct,
              &AngleTest::literals,
              &AngleTest::conversion,

              &AngleTest::debugDeg,
              &AngleTest::debugRad});
}
Esempio n. 25
0
SampleQueryGLTest::SampleQueryGLTest() {
    addTests({
        &SampleQueryGLTest::querySamplesPassed,
        #ifndef MAGNUM_TARGET_GLES
        &SampleQueryGLTest::conditionalRender
        #endif
    });
}
PrimitiveQueryGLTest::PrimitiveQueryGLTest() {
    addTests({&PrimitiveQueryGLTest::wrap,

              #ifndef MAGNUM_TARGET_GLES
              &PrimitiveQueryGLTest::primitivesGenerated,
              #endif
              &PrimitiveQueryGLTest::transformFeedbackPrimitivesWritten});
}
Esempio n. 27
0
WavImporterTest::WavImporterTest() {
    addTests({&WavImporterTest::wrongSize,
              &WavImporterTest::wrongSignature,
              &WavImporterTest::unsupportedFormat,
              &WavImporterTest::unsupportedChannelCount,
              &WavImporterTest::mono16,
              &WavImporterTest::stereo8});
}
Esempio n. 28
0
MeshTest::MeshTest() {
    addTests({&MeshTest::indexSize,

              &MeshTest::debugPrimitive,
              &MeshTest::debugIndexType,
              &MeshTest::configurationPrimitive,
              &MeshTest::configurationIndexType});
}
Esempio n. 29
0
ImageDataTest::ImageDataTest() {
    addTests({&ImageDataTest::construct,
              &ImageDataTest::constructCopy,
              &ImageDataTest::constructMove,

              &ImageDataTest::toReference,
              &ImageDataTest::release});
}
Esempio n. 30
0
CompositionTest::CompositionTest() {
    addTests({&CompositionTest::negated,
              &CompositionTest::anded,
              &CompositionTest::ored,
              &CompositionTest::multipleUnary,
              &CompositionTest::hierarchy,
              &CompositionTest::empty});
}