final String appId = "ZFPK8xqL5F";
final String copiedTpkName = "copied.tpk";
- test_installUninstall(tpkName, copiedTpkName, appId);
+ if(SdbTestUtil.isNativePluginInstalled()) {
+ test_installUninstall(tpkName, copiedTpkName, appId);
+ }
}
/**
static final String LOOPBACK_IP = "127.0.0.1";
static final int MAX_TRIAL = 10;
static final char CTRL_C = '\u0003';
+ static String SDK_PATH;
static String SDB_PATH;
static {
- SDB_PATH = System.getProperty("TIZEN_SDK");
+ SDK_PATH = System.getProperty("TIZEN_SDK");
- if(StringUtil.isEmpty(SDB_PATH)) {
+ if(StringUtil.isEmpty(SDK_PATH)) {
SDB_PATH = "sdb";
}
else {
- SDB_PATH = FileUtil.appendPath(SDB_PATH, "tools/sdb");
+ SDB_PATH = FileUtil.appendPath(SDK_PATH, "tools/sdb");
}
}
return resultPorts;
}
+ static boolean isNativePluginInstalled() throws Exception {
+ if(StringUtil.isEmpty(SDK_PATH)) {
+ return false;
+ }
+
+ String toolChainPath = FileUtil.appendPath(SDK_PATH, "tools/smart-build-interface");
+
+ return new File(toolChainPath).exists();
+ }
+
/**
* Get serial numbers of connected targets
*