From f2116cf01c394f4b065033c7d08746e1ffaf4dcd Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Thu, 28 Feb 2013 15:01:36 +0100 Subject: [PATCH] Also commit custom plugins (but do not pull on upstream) --- .gitignore | 3 -- custom/plugins/intelbuildbot/_launch_trial.sh | 28 +++++++++++++++++++ .../intelbuildbot/intelbuildbot.plugin.zsh | 1 + 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 custom/plugins/intelbuildbot/_launch_trial.sh create mode 100644 custom/plugins/intelbuildbot/intelbuildbot.plugin.zsh diff --git a/.gitignore b/.gitignore index dc97fb6b0..d395a2127 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ locals.zsh log/.zsh_history projects.zsh -custom/* -!custom/example -!custom/example.zsh *.swp *.un~ cache/ diff --git a/custom/plugins/intelbuildbot/_launch_trial.sh b/custom/plugins/intelbuildbot/_launch_trial.sh new file mode 100644 index 000000000..268e5082d --- /dev/null +++ b/custom/plugins/intelbuildbot/_launch_trial.sh @@ -0,0 +1,28 @@ +#compdef -P (|./)launch_trial.sh + +__launch_trial_list_tests() +{ + tests=($(./launch_trial.sh --list-tests)) + _describe -t tests 'Select test to run' tests +} + +_launch_trial() +{ + typeset -A opt_args + local context state line curcontext="$curcontext" + + local ret=1 + + _arguments -C : \ + '(- 1 *)--help[show usage]'\ + '(- 1 *)--htmlcov[generate html coverage report in htmlcov surbdirectory]'\ + '(- 1 *)--list-tests[list all tests]'\ + ':projects:__launch_trial_list_tests' \ + && ret=0 + + return $ret +} + +_launch_trial "$@" +return $? + diff --git a/custom/plugins/intelbuildbot/intelbuildbot.plugin.zsh b/custom/plugins/intelbuildbot/intelbuildbot.plugin.zsh new file mode 100644 index 000000000..1487a25f2 --- /dev/null +++ b/custom/plugins/intelbuildbot/intelbuildbot.plugin.zsh @@ -0,0 +1 @@ +# Aliases \ No newline at end of file