-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathCommandLine.h
More file actions
49 lines (36 loc) · 1.62 KB
/
CommandLine.h
File metadata and controls
49 lines (36 loc) · 1.62 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*==============================================================================
Copyright 2018 by Tracktion Corporation.
For more information visit www.tracktion.com
You may also use this code under the terms of the GPL v3 (see
www.gnu.org/licenses).
pluginval IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
DISCLAIMED.
==============================================================================*/
#pragma once
#include <JuceHeader.h>
#include "PluginTestResult.h"
#include "Validator.h"
#include "JUnitListener.h"
struct CommandLineValidator : private ChangeListener,
private Validator::Listener
{
CommandLineValidator();
~CommandLineValidator() override;
void validate (const StringArray& fileOrIDs, PluginTests::Options, bool validateInProcess);
private:
Validator validator;
JUnitListener junitListener;
String currentID;
std::atomic<int> numFailures { 0 };
void changeListenerCallback (ChangeBroadcaster*) override;
void validationStarted (const String&) override;
void logMessage (const String& m) override;
void itemComplete (const String&, int numItemFailures, const PluginTestResultArray&) override;
void allItemsComplete() override;
void connectionLost() override;
};
//==============================================================================
void performCommandLine (CommandLineValidator&, const String& commandLine);
bool shouldPerformCommandLine (const String& commandLine);
enum { commandLineNotPerformed = 0x72346231 };