GoogleTradefedSandbox

public class GoogleTradefedSandbox
extends TradefedSandbox

java.lang.Object
   ↳ com.android.tradefed.sandbox.TradefedSandbox
     ↳ com.google.android.tradefed.sandbox.GoogleTradefedSandbox


Spécialisation interne de TradefedSandbox à utiliser dans l'infrastructure de l'atelier. Cela répond au besoin de télécharger la version appropriée associée à la compilation. Nous pourrons peut-être le déplacer vers AOSP si nous pouvons un jour nous appuyer sur l'API AOSP pour télécharger les compilations.

Résumé

Constructeurs publics

GoogleTradefedSandbox()

Méthodes publiques

String createClasspath(File workingDir)

Le bac à sable Google Tradefed n'utilise que les fichiers JAR du répertoire de travail.

IConfiguration createThinLauncherConfig(String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig)

Mode spécial déconnecté de l'exécution principale : lorsqu'une configuration ne semble pas exister dans le parent, nous revenons au lanceur fin où nous essayons de configurer le bac à sable avec les informations actuellement connues et de remplir le répertoire de travail pour créer la configuration entièrement dans le répertoire versionné.

Map<String, List<String>> discoverTests(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger)
IFolderBuildInfo fetchSandboxExtraArtifacts(IInvocationContext context, IConfiguration nonVersionedConfig, String[] args)
File getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger, String[] args)
void tearDown()

Nettoyez tous les états, fichiers ou environnements qui ont pu être modifiés.

Méthodes protégées

File dumpGlobalConfig(IConfiguration config, Set<String> exclusionPatterns)

Dumps the global configuration filtered from some objects.

File prepareContext(IInvocationContext context, IConfiguration config)

Préparez et sérialisez le IInvocationContext.

Constructeurs publics

GoogleTradefedSandbox

public GoogleTradefedSandbox ()

Méthodes publiques

createClasspath

public String createClasspath (File workingDir)

Le bac à sable Google Tradefed n'utilise que les fichiers JAR du répertoire de travail.

Paramètres
workingDir File : répertoire de travail actuel du bac à sable.

Renvoie
String Chemin d'accès à utiliser.

Génère
ConfigurationException

createThinLauncherConfig

public IConfiguration createThinLauncherConfig (String[] args, 
                IKeyStoreClient keyStoreClient, 
                IRunUtil runUtil, 
                File globalConfig)

Mode spécial déconnecté de l'exécution principale : lorsqu'une configuration ne semble pas exister dans le parent, nous revenons au lanceur fin où nous essayons de configurer le bac à sable avec les informations actuellement connues et de remplir le répertoire de travail pour créer la configuration entièrement dans le répertoire versionné.

Paramètres
args String : arguments de ligne de commande d'origine.

keyStoreClient IKeyStoreClient : client Keystore actuel à utiliser pour créer des configurations.

runUtil IRunUtil : IRunUtil actuel pour exécuter les commandes de l'hôte.

globalConfig File : configuration globale à utiliser pour exécuter les sous-processus de TF.

Renvoie
IConfiguration Fichier pointant vers le fichier XML de configuration de TF pour les objets NON_VERSIONED. Renvoie la valeur "null" si aucune configuration de lanceur léger n'a pu être créée.

discoverTests

public Map<String, List<String>> discoverTests (IInvocationContext context, 
                IConfiguration nonVersionedConfig, 
                ITestLogger logger)

Paramètres
context IInvocationContext

nonVersionedConfig IConfiguration

logger ITestLogger

Renvoie
Map<String, List<String>>

fetchSandboxExtraArtifacts

public IFolderBuildInfo fetchSandboxExtraArtifacts (IInvocationContext context, 
                IConfiguration nonVersionedConfig, 
                String[] args)

Paramètres
context IInvocationContext

nonVersionedConfig IConfiguration

args String

Renvoie
IFolderBuildInfo

Génère
BuildRetrievalError
ConfigurationException
IOException

getTradefedSandboxEnvironment

public File getTradefedSandboxEnvironment (IInvocationContext context, 
                IConfiguration nonVersionedConfig, 
                ITestLogger logger, 
                String[] args)

Paramètres
context IInvocationContext

nonVersionedConfig IConfiguration

logger ITestLogger

args String

Renvoie
File

Génère
Exception

tearDown

public void tearDown ()

Nettoyez tous les états, fichiers ou environnements qui ont pu être modifiés.

Méthodes protégées

dumpGlobalConfig

protected File dumpGlobalConfig (IConfiguration config, 
                Set<String> exclusionPatterns)

Dumps the global configuration filtered from some objects.

Paramètres
config IConfiguration

exclusionPatterns Set

Renvoie
File

Génère
ConfigurationException
IOException

prepareContext

protected File prepareContext (IInvocationContext context, 
                IConfiguration config)

Préparez et sérialisez le IInvocationContext.

Paramètres
context IInvocationContext : IInvocationContext à préparer.

config IConfiguration : IConfiguration du bac à sable.

Renvoie
File IInvocationContext sérialisé.

Génère
IOException