1 /**
2 Copyright: Copyright (c) 2017, Joakim Brännström. All rights reserved.
3 License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
4 Author: Joakim Brännström (joakim.brannstrom@gmx.com)
5 */
6 module dextool_test.utility;
7 
8 import std.typecons : Flag, Yes, No;
9 
10 public import scriptlike;
11 public import unit_threaded;
12 
13 public import dextool_test;
14 public import dextool_test.config;
15 
16 auto makeDextool(const ref TestEnv env) {
17     return dextool_test.makeDextool(env).args(["cpptestdouble", "-d", "--gmock"]);
18 }
19 
20 auto makeCompile(const ref TestEnv env) {
21     return dextool_test.makeCompile(env, "g++")
22         .addArg(testData ~ "main_dev.cpp").outputToDefaultBinary;
23 }
24 
25 auto makeCompile(const ref TestEnv env, Path srcdir) {
26     return dextool_test.makeCompile(env, "g++").addInclude(srcdir)
27         .addArg(testData ~ "main_dev.cpp").outputToDefaultBinary;
28 }