Browse Source

tools: skip fxt tools when no files are provided, and revert 7223 as we want tools to be tested when running make check

Nathalie Furmento 13 years ago
parent
commit
237b099447
3 changed files with 7 additions and 2 deletions
  1. 1 0
      tools/Makefile.am
  2. 2 2
      tools/starpu_fxt_stats.c
  3. 4 0
      tools/starpu_fxt_tool.c

+ 1 - 0
tools/Makefile.am

@@ -36,6 +36,7 @@ CLEANFILES = *.gcno *.gcda *.linkinfo
 #####################################
 
 STARPU_TOOLS	=
+TESTS		= $(STARPU_TOOLS)
 
 if STARPU_HAVE_WINDOWS
 check_PROGRAMS	=	$(STARPU_TOOLS)

+ 2 - 2
tools/starpu_fxt_stats.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
 
 	if (argc < 2) {
 	        fprintf(stderr, "Usage : %s input_filename [-o output_filename]\n", argv[0]);
-	        exit(-1);
+	        exit(77);
 	}
 	
 	filename = argv[1];

+ 4 - 0
tools/starpu_fxt_tool.c

@@ -1,6 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2011-2012  Université de Bordeaux 1
+ * Copyright (C) 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -84,6 +85,9 @@ int main(int argc, char **argv)
 {
 	parse_args(argc, argv);
 
+	if (options.ninputfiles == 0)
+	     return 77;
+
 	starpu_fxt_generate_trace(&options);
 
 	return 0;