Delete obsolete test
This commit is contained in:
-62
@@ -1,62 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2015 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.android.tests;
|
|
||||||
|
|
||||||
import org.jetbrains.kotlin.jps.build.BaseKotlinJpsBuildTestCase;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
@Ignore
|
|
||||||
public class AndroidJpsBuildTestCase extends BaseKotlinJpsBuildTestCase {
|
|
||||||
private static final String PROJECT_NAME = "android-module";
|
|
||||||
private static final String SDK_NAME = "Android_SDK";
|
|
||||||
|
|
||||||
private final File workDir = new File(AndroidRunner.getPathManager().getTmpFolder());
|
|
||||||
|
|
||||||
public void doTest() {
|
|
||||||
initProject();
|
|
||||||
rebuildAllModules();
|
|
||||||
buildAllModules().assertSuccessful();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected String getProjectName() {
|
|
||||||
return "android-module";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void runTest() {
|
|
||||||
doTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return "AndroidJpsTest";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected File doGetProjectDir() throws IOException {
|
|
||||||
return workDir;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initProject() {
|
|
||||||
addJdk(SDK_NAME, AndroidRunner.getPathManager().getPlatformFolderInAndroidSdk() + "/android.jar");
|
|
||||||
loadProject(workDir.getAbsolutePath() + File.separator + PROJECT_NAME + ".ipr");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -46,12 +46,8 @@ public class AndroidRunner {
|
|||||||
|
|
||||||
CodegenTestsOnAndroidGenerator.generate(pathManager);
|
CodegenTestsOnAndroidGenerator.generate(pathManager);
|
||||||
|
|
||||||
System.out.println("Run tests on android...");
|
System.out.println("Run tests on Android...");
|
||||||
TestSuite suite = CodegenTestsOnAndroidRunner.runTestsInEmulator(pathManager);
|
return CodegenTestsOnAndroidRunner.runTestsInEmulator(pathManager);
|
||||||
//AndroidJpsBuildTestCase indirectly depends on UsefulTestCase which compiled against java 8
|
|
||||||
//TODO: Need add separate run configuration for AndroidJpsBuildTestCase
|
|
||||||
//suite.addTest(new AndroidJpsBuildTestCase());
|
|
||||||
return suite;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user