Line |
Branch |
Exec |
Source |
1 |
|
|
// Copyright (c) 2021-2024 ChilliBits. All rights reserved. |
2 |
|
|
|
3 |
|
|
#pragma once |
4 |
|
|
|
5 |
|
|
#include "../../lib/cli11/CLI11.hpp" |
6 |
|
|
|
7 |
|
|
// GCOV_EXCL_START |
8 |
|
|
|
9 |
|
|
/** |
10 |
|
|
* Helper class to setup the cli interface and command line parser |
11 |
|
|
*/ |
12 |
|
|
class Driver { |
13 |
|
|
public: |
14 |
|
|
// Constructors |
15 |
|
− |
explicit Driver() = default; |
16 |
|
|
|
17 |
|
|
// Public methods |
18 |
|
|
void createInterface(); |
19 |
|
|
void addOptions(bool &updateRefs, bool &runBenchmarks, bool &enableLeakDetection, bool &skipNonGitHubTests); |
20 |
|
|
int parse(int argc, char **argv); |
21 |
|
|
|
22 |
|
|
private: |
23 |
|
|
// Private members |
24 |
|
|
CLI::App app = CLI::App{"Spice Test Runner", "spice"}; |
25 |
|
|
}; |
26 |
|
|
|
27 |
|
|
// GCOV_EXCL_STOP |
28 |
|
|
|