summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Ogden <bernie.ogden@linaro.org>2014-07-03 08:47:28 +0100
committerBernard Ogden <bernie.ogden@linaro.org>2014-07-03 08:47:28 +0100
commit0dc1a447c8d3a5ae6fb6f3706b8a06b62b6ae0d8 (patch)
tree8882309e7906e1ad5034b48986c3af5f6e11ccb3
parent29a5143f7cb7d1e04749566e6b2d1ae7f62ad1b3 (diff)
Allow job def to include arbitrary bench.py CLI
-rwxr-xr-xcortex-strings-bench.sh2
-rw-r--r--cortex-strings-bench.yaml3
2 files changed, 3 insertions, 2 deletions
diff --git a/cortex-strings-bench.sh b/cortex-strings-bench.sh
index dfbb9e7..0c82603 100755
--- a/cortex-strings-bench.sh
+++ b/cortex-strings-bench.sh
@@ -29,6 +29,6 @@ run "git clone git://git.linaro.org/people/bernie.ogden/kernel_module"
run "cd kernel_module && make ARCH=arm EXTRA_CFLAGS=\"$3\" -C /usr/src/linux-headers-$(uname -r) SUBDIRS=\$PWD modules && insmod modex.ko"
run "mkdir cortex-strings-build"
run "cd cortex-strings-build && CFLAGS=\"$3\" ../cortex-strings/configure && make -j -l $cores"
-run "${topdir}/controlled_run.sh \"date && cat /dev/modex && cd ${topdir}/cortex-strings-build && python ../cortex-strings/scripts/bench.py -f $1 -v $2 && cat /dev/modex && date\" 2>&1 | tee controlled_output"
+run "${topdir}/controlled_run.sh \"date && cat /dev/modex && cd ${topdir}/cortex-strings-build && python ../cortex-strings/scripts/bench.py -f $1 -v $2 $4 && cat /dev/modex && date\" 2>&1 | tee controlled_output"
run "rmmod modex"
diff --git a/cortex-strings-bench.yaml b/cortex-strings-bench.yaml
index 173206e..1cbf658 100644
--- a/cortex-strings-bench.yaml
+++ b/cortex-strings-bench.yaml
@@ -7,6 +7,7 @@ metadata:
params:
CORTEX_STRINGS_LIBRARIES: all
CORTEX_STRINGS_FUNCTIONS: all
+ CORTEX_STRINGS_CLI: ""
CORTEX_STRINGS_CFLAGS: "-g -O2"
install:
@@ -22,6 +23,6 @@ install:
- cpufrequtils
run:
steps:
- - ./cortex-strings-bench.sh "$CORTEX_STRINGS_FUNCTIONS" "$CORTEX_STRINGS_LIBRARIES" "$CORTEX_STRINGS_CFLAGS"
+ - ./cortex-strings-bench.sh "$CORTEX_STRINGS_FUNCTIONS" "$CORTEX_STRINGS_LIBRARIES" "$CORTEX_STRINGS_CFLAGS" "$CORTEX_STRINGS_CLI"
- "lava-test-run-attach controlled_output text/plain"
- "lava-test-run-attach cortex-strings-build/cache.txt text/plain"