Home
last modified time | relevance | path

Searched refs:testDir (Results 1 – 12 of 12) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBuildTestsZipUtilsTest.java43 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_notFound() local
45 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_notFound()
56 FileUtil.recursiveDelete(testDir); in testGetApkFile_notFound()
64 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir() local
66 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir()
67 File apkDir = new File(testDir, "TestApk"); in testGetApkFile_fromTestDir()
82 FileUtil.recursiveDelete(testDir); in testGetApkFile_fromTestDir()
93 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir_testCase() local
95 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir_testCase()
96 File testcasedir = new File(testDir, "testcases"); in testGetApkFile_fromTestDir_testCase()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DAllTestAppsInstallSetupTest.java78 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in testSetup() local
80 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetup()
81 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in testSetup()
82 FileUtil.createTempFile("notAnApk", ".txt", testDir); in testSetup()
83 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in testSetup()
86 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); in testSetup()
93 FileUtil.recursiveDelete(testDir); in testSetup()
DInstallAllTestZipAppsSetupTest.java89 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in setMockUnzipDir() local
91 FileUtil.createTempFile("fakeApk", ".apk", testDir); in setMockUnzipDir()
92 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in setMockUnzipDir()
93 FileUtil.createTempFile("notAnApk", ".txt", testDir); in setMockUnzipDir()
94 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in setMockUnzipDir()
96 mMockUnzipDir = testDir; in setMockUnzipDir()
DInstallApkSetupTest.java47 private File testDir = null; field in InstallApkSetupTest
59 testDir = FileUtil.createTempDir("TestApkDir"); in setUp()
60 testFile = FileUtil.createTempFile("File", ".apk", testDir); in setUp()
66 FileUtil.recursiveDelete(testDir); in tearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DLocalDeviceBuildProviderTest.java182 File testDir = buildInfo.getTestsDir(); in testSetTestsDir_givenTestDir() local
183 assertEquals(mTestDir, testDir); in testSetTestsDir_givenTestDir()
184 File extractedTestFile = new File(testDir, testFile.getName()); in testSetTestsDir_givenTestDir()
192 File testDir = FileUtil.createTempDir("test_dir", mBuildDir); in testSetTestsDir_givenTestDirPattern() local
193 mLocalDeviceBuildProvider.setTestDirPattern(testDir.getName()); in testSetTestsDir_givenTestDirPattern()
195 assertEquals(testDir, buildInfo.getTestsDir()); in testSetTestsDir_givenTestDirPattern()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstaller.java79 File testDir = deviceBuildInfo.getTestsDir(); in getApkFromBuildTestsDir() local
80 if (testDir != null && testDir.isDirectory()) { in getApkFromBuildTestsDir()
81 return FileUtil.findFile(testDir, apkFileName); in getApkFromBuildTestsDir()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DPushFilePreparer.java163 File testDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local
170 if (testDir != null) { in resolveRelativeFilePath()
171 scanDirs.add(testDir); in resolveRelativeFilePath()
176 if (testDir != null) { in resolveRelativeFilePath()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJarHostTestTest.java71 public HostTestable(File testDir) { in HostTestable() argument
72 mTestDir = testDir; in HostTestable()
237 public HostTestLoader(File testDir, File jar) { in HostTestLoader() argument
238 super(testDir); in HostTestLoader()
DHostGTestTest.java308 String testDir = mTestsDir.getAbsolutePath(); in testBeforeCmdError() local
309 Path errorScriptPath = Paths.get(testDir, "bad_cmd"); in testBeforeCmdError()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java278 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile() local
279 FileUtil.createTempFile("test1", ".txt", testDir); in testPushDir_childFile()
280 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childFile()
281 FileUtil.recursiveDelete(testDir); in testPushDir_childFile()
298 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir() local
299 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir()
301 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childDir()
302 FileUtil.recursiveDelete(testDir); in testPushDir_childDir()
308 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir_filtered() local
311 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/build/
DLocalDeviceBuildProvider.java290 void setTestDir(File testDir) { in setTestDir() argument
291 this.mTestDir = testDir; in setTestDir()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DHostTest.java1183 File testDir = deviceBuildInfo.getTestsDir(); in getJarFile() local
1184 jarFile = searchJarFile(testDir, jarName); in getJarFile()