diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/ptest_wrapper.sh')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/ptest_wrapper.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/ptest_wrapper.sh b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/ptest_wrapper.sh new file mode 100644 index 0000000..92d0156 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/ptest_wrapper.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | # Simple OE specific wrapper for bcc python tests | ||
3 | |||
4 | name=$1 | ||
5 | kind=$2 | ||
6 | cmd=$3 | ||
7 | shift 3 | ||
8 | |||
9 | case $kind in | ||
10 | simple|sudo) | ||
11 | $cmd "$@" | ||
12 | ;; | ||
13 | *) | ||
14 | echo "Invalid kind $kind of test $name" | ||
15 | exit 1 | ||
16 | esac | ||