Suppress VC2013 warnings.
Update AppVeyor script.
This commit is contained in:
@@ -32,7 +32,7 @@ cflags = {
|
||||
|
||||
cxxflags = {
|
||||
"gnu" : [ "-O2", "-g" ]
|
||||
, "msvc" : [ "/O2" ]
|
||||
, "msvc" : [ "/O2", "/W4", "/EHsc"]
|
||||
, "clang" : [ "-O2", "-g", "-fsanitize=address" ]
|
||||
}
|
||||
|
||||
|
||||
@@ -300,6 +300,29 @@ TEST_CASE("cornell_box", "[Loader]") {
|
||||
REQUIRE(true == TestLoadObj("../models/cornell_box.obj", gMtlBasePath));
|
||||
}
|
||||
|
||||
TEST_CASE("catmark_torus_creases0", "[Loader]") {
|
||||
|
||||
tinyobj::attrib_t attrib;
|
||||
std::vector<tinyobj::shape_t> shapes;
|
||||
std::vector<tinyobj::material_t> materials;
|
||||
|
||||
std::string err;
|
||||
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &err, "../models/catmark_torus_creases0.obj", gMtlBasePath, /*triangulate*/false);
|
||||
|
||||
if (!err.empty()) {
|
||||
std::cerr << err << std::endl;
|
||||
}
|
||||
|
||||
REQUIRE(true == ret);
|
||||
|
||||
REQUIRE(1 == shapes.size());
|
||||
REQUIRE(8 == shapes[0].mesh.tags.size());
|
||||
}
|
||||
|
||||
TEST_CASE("stream_load", "[Stream]") {
|
||||
REQUIRE(true == TestStreamLoadObj());
|
||||
}
|
||||
|
||||
#if 0
|
||||
int
|
||||
main(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
chcp 437
|
||||
python kuroga.py config-msvc.py
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
|
||||
ninja
|
||||
|
||||
Reference in New Issue
Block a user