forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cpp
35 lines (30 loc) · 759 Bytes
/
Main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#define CATCH_CONFIG_RUNNER
#include <MaterialXTest/Catch/catch.hpp>
int main(int argc, char* const argv[])
{
Catch::Session session;
#ifndef _DEBUG
session.configData().showDurations = Catch::ShowDurations::Always;
#endif
#ifdef CATCH_PLATFORM_WINDOWS
BOOL inDebugger = IsDebuggerPresent();
if (inDebugger)
{
session.configData().outputFilename = "%debug";
}
else
{
session.configData().outputFilename = "";
}
#endif
int returnCode = session.applyCommandLine(argc, argv);
if (returnCode != 0)
{
return returnCode;
}
return session.run();
}