浏览代码

tests/loader: deal with special cases for tools/starpu_perfmodel_display and tools/starpu_perfmodel_plot which need a argument

Nathalie Furmento 13 年之前
父节点
当前提交
285239d9f5
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tests/loader.c

+ 11 - 0
tests/loader.c

@@ -165,6 +165,17 @@ int main(int argc, char *argv[])
 		sprintf(test_args, "%s/examples/spmv/matrix_market/examples/fidapm05.mtx", STARPU_SRC_DIR);
 	}
 
+	if (strstr(test_name, "starpu_perfmodel_display"))
+	{
+		test_args = (char *) malloc(5*sizeof(char));
+		sprintf(test_args, "-l");
+	}
+	if (strstr(test_name, "starpu_perfmodel_plot"))
+	{
+		test_args = (char *) malloc(5*sizeof(char));
+		sprintf(test_args, "-l");
+	}
+
 	/* get launcher program */
 	launcher=getenv("STARPU_CHECK_LAUNCHER");
 	launcher_args=getenv("STARPU_CHECK_LAUNCHER_ARGS");