Ticket #132 (closed enhancement: fixed)
Enable output format option in run scripts
| Reported by: | weeks@… | Owned by: | xteruel |
|---|---|---|---|
| Priority: | trivial | Milestone: | version 1.2 |
| Component: | run-scripts | Version: | version 1.1.1 |
| Keywords: | Cc: | ||
| Application Version: | all | Blocked By: | |
| Blocking: | Sensitive: | no | |
| Needs experiment: | no | ||
| Experimental observations: | |||
Description
When invoking a run script with the "-h" option to get the usage information,
it lists the output format ("-of") option as a TODO:
$ ./run-fib.sh -h ./run-fib.sh [options] Where options are: -c cpus_list List of number of cpus to use for executions -C class_list List of execution classes to use -check Enable verification -debug Show extra messages -h Prints this help -i inputs_list List of inputs to use for executions -l label_list List of labels (compilers) to use for executions -v versions_list List of versions of the benchmark to use for execution -verbose 0|1|2 Set application verbosity -of Output format (TODO)
One way of implementing the "-of" option is the following:
--- run/run.common.orig 2011-06-23 19:39:54.000000000 -0500
+++ run/run.common 2011-06-23 19:16:24.000000000 -0500
@@ -15,7 +15,7 @@
echo "-l label_list List of labels (compilers) to use for executions"
echo "-v versions_list List of versions of the benchmark to use for execution"
echo "-verbose 0|1|2 Set application verbosity"
- echo "-of Output format (TODO)"
+ echo "-of 0|1|2|3|4 Output format (0: no output, default: 1)"
}
parse_args ()
@@ -42,6 +42,8 @@
"-verbose")
shift; EXTRA="$EXTRA -v $1"
;;
+ "-of") shift; EXTRA="$EXTRA -o $1"
+ ;;
*)
echo "Unkown option $1"; print_help $0; exit
;;
Change History
Note: See
TracTickets for help on using
tickets.
