2c368272c9
Provide plugins loading for runners and contexts, improve samples. Plugins now can be loaded from ~/.rally/plugins and /opt/rally/plugins and any it's subdirectories. Closes-Bug: #1320942 Change-Id: I213086e7eae17e297c398c301f5ed8d2331d951e
12 lines
471 B
Bash
Executable File
12 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
samples_unpacked_dir="$(dirname "${BASH_SOURCE[0]}" )"
|
|
dirs=( $(find "$samples_unpacked_dir" -maxdepth 1 -type d -printf '%P\n') )
|
|
samples=~/.rally/plugins/samples
|
|
mkdir -p "$samples"
|
|
for dir in "${dirs[@]}"; do
|
|
cp -r $samples_unpacked_dir/$dir $samples
|
|
printf "\nTo test $dir plugin run next command:\n"
|
|
printf "rally task start --task $samples/$dir/test_$dir.yaml\n"
|
|
printf "or \nrally task start --task $samples/$dir/test_$dir.json\n"
|
|
done
|