PythonBinaryHostTest
  public
  
  
  
  class
  PythonBinaryHostTest
  
    extends Object
  
  
  
  
  
      implements
      
        IRemoteTest, 
      
        ITestFilterReceiver
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.python.PythonBinaryHostTest | 
Android ビルドシステム(Soong)から Python バイナリ ファイルを実行することを目的としたホストテスト
テストランナーは、include-filter と exclude-filter をサポートしています。exclude-filter は、実際のテストではなくテスト結果を無視することで機能します。exclude-filter で指定されたテストは引き続き実行されます。
概要
ネストされたクラス | |
|---|---|
        
        
        
        
        class | 
      
        PythonBinaryHostTest.PythonForwarder
        実行名をバイナリ名に置き換える結果転送元。  | 
    
フィールド | |
|---|---|
    protected
    static
    final
    String | 
    
      ANDROID_SERIAL_VAR
      
  | 
  
    protected
    static
    final
    String | 
    
      LD_LIBRARY_PATH
      
  | 
  
パブリック コンストラクタ | |
|---|---|
      
      PythonBinaryHostTest()
      
      
     | 
  |
パブリック メソッド | |
|---|---|
        
        
        
        
        
        void
     | 
  
    
      
      addAllExcludeFilters(
      
        除外するテストのフィルタの   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      addAllIncludeFilters(
      
        含めるテストのフィルタの   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      addExcludeFilter(String filter)
      
      
        除外するテストのフィルタを追加します。  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      addIncludeFilter(String filter)
      
      
        含めるテストのフィルタを追加します。  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      clearExcludeFilters()
      
      
        現在トラッキングされている除外フィルタをすべて削除します。  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      clearIncludeFilters()
      
      
        現在トラッキングされている除外フィルタをすべて削除します。  | 
  
        
        
        
        
        
        
     | 
  
    
      
      getExcludeFilters()
      
      
        除外フィルタの現在の   | 
  
        
        
        
        
        
        
     | 
  
    
      
      getIncludeFilters()
      
      
        包含フィルタの現在の   | 
  
        
        
        
        final
        
        void
     | 
  
    
      
      run(TestInformation testInfo, ITestInvocationListener listener)
      
      
        テストを実行し、結果をリスナーに報告します。  | 
  
フィールド
ANDROID_SERIAL_VAR
protected static final String ANDROID_SERIAL_VAR
LD_LIBRARY_PATH
protected static final String LD_LIBRARY_PATH
パブリック コンストラクタ
PythonBinaryHostTest
public PythonBinaryHostTest ()
パブリック メソッド
addAllExcludeFilters
public void addAllExcludeFilters (filters) 
除外するテストのフィルタの ERROR(/Set) を追加します。
| パラメータ | |
|---|---|
filters | 
        
            | 
      
addAllIncludeFilters
public void addAllIncludeFilters (filters) 
含めるテストのフィルタの ERROR(/Set) を追加します。
| パラメータ | |
|---|---|
filters | 
        
            | 
      
addExcludeFilter
public void addExcludeFilter (String filter)
除外するテストのフィルタを追加します。
| パラメータ | |
|---|---|
filter | 
        
          String  | 
      
addIncludeFilter
public void addIncludeFilter (String filter)
含めるテストのフィルタを追加します。
| パラメータ | |
|---|---|
filter | 
        
          String  | 
      
clearExcludeFilters
public void clearExcludeFilters ()
現在トラッキングされている除外フィルタをすべて削除します。
clearIncludeFilters
public void clearIncludeFilters ()
現在トラッキングされている含めるフィルタをすべて削除します。
ホームラン
public final void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
| パラメータ | |
|---|---|
testInfo | 
        
          TestInformation: テストの実行に役立つ情報が含まれる TestInformation オブジェクト。 | 
      
listener | 
        
          ITestInvocationListener: テスト結果の ITestInvocationListener | 
      
| 例外 | |
|---|---|
DeviceNotAvailableException | 
          |