Suppress VC2013 warnings.

Update AppVeyor script.
This commit is contained in:
Syoyo Fujita
2016-04-19 13:11:55 +09:00
parent f4695de408
commit a55247574c
6 changed files with 40 additions and 41 deletions

View File

@@ -32,7 +32,7 @@ cflags = {
cxxflags = {
"gnu" : [ "-O2", "-g" ]
, "msvc" : [ "/O2" ]
, "msvc" : [ "/O2", "/W4", "/EHsc"]
, "clang" : [ "-O2", "-g", "-fsanitize=address" ]
}

View File

@@ -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(

View File

@@ -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