diff options
author | Bernard Ogden <bernard.ogden@arm.com> | 2014-11-11 10:27:52 +0000 |
---|---|---|
committer | Bernard Ogden <bernard.ogden@arm.com> | 2014-11-11 15:41:31 +0000 |
commit | 2f3334002f542d8dafc2c720cb41c0a7c2a2f3b1 (patch) | |
tree | 4e4f3840d2a6ac917437d50f7744dc3ff99006ed | |
parent | 49999cb707cd216c8d95a812fe804f9f28f66bdc (diff) |
Example of how a linarobench.sh should look
-rwxr-xr-x | linarobench.sh | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/linarobench.sh b/linarobench.sh index d8730e3..86485f1 100755 --- a/linarobench.sh +++ b/linarobench.sh @@ -1,4 +1,36 @@ #!/bin/bash +#These scripts take two sets of parameters, separated by -- +#When invoked through cbuild2:scripts/benchmark.sh: +#The lhs (board_benchargs) comes from the board config file (e.g. cbuild2:config/boards/bench/juno-a57.conf) +#The rhs (run_benchargs) comes from the CLI of benchmark.sh +#The lhs is processed by this script +#The rhs is passed through to whatever this script invokes +#There is some wiggle room, depending on the behaviour of the benchmark under control of linarobench.sh -make -C fake check > linarobenchlog +for x in "$@"; do + shift + if test x"$x" = 'x--'; then + break + fi + board_benchargs=("${board_benchargs[@]}" "$x") +done +if test $# -eq 0; then + run_benchargs=('default') +else + run_benchargs=("$@") +fi + +rm -f linarobenchlog + +echo "LHS" >> linarobenchlog +for x in "${board_benchargs[@]}" thing="`uname -a`"; do + echo "$x" >> linarobenchlog +done + +echo "RHS" >> linarobenchlog +for x in "${run_benchargs[@]}"; do + echo "$x" >> linarobenchlog +done + +make -C fake check >> linarobenchlog |