94 Commits

Author SHA1 Message Date
Marco Vermeulen
95e28f616b Fix: extract the help command. 2012-12-20 12:31:45 +00:00
Marco Vermeulen
3522106d90 Update install and selfupdate to modular rework. 2012-12-20 12:16:24 +00:00
Marco Vermeulen
24318d08af Modularise gvm script. 2012-12-19 17:53:27 +00:00
Marco Vermeulen
51ad676a11 Revert "Add some useful console logging to tests."
This reverts commit 8843f15679.
2012-12-19 17:47:26 +00:00
Marco Vermeulen
03258d1a06 Optimisations on aeroplane mode. 2012-12-19 16:44:07 +00:00
Marco Vermeulen
8843f15679 Add some useful console logging to tests. 2012-12-19 16:30:14 +00:00
Marco Vermeulen
4ffed009f1 Bolster aeroplane list command cukes. 2012-12-18 14:37:39 +00:00
Marco Vermeulen
3d6098372c Upgrade version to 0.9.2 2012-12-17 17:33:54 +00:00
Marco Vermeulen
5f2240471a Some post aeroplane mode cleanup. 2012-12-17 17:30:08 +00:00
Marco Vermeulen
ad323dfcd1 Aeroplane mode introduced. 2012-12-17 16:57:49 +00:00
Marco Vermeulen
e8120268c7 Reformat cucumber feature files. 2012-12-17 16:57:49 +00:00
Marco Vermeulen
93a2589672 Allow tests to run in offline mode. Add internet availability background to cukes. 2012-12-17 16:57:49 +00:00
Marco Vermeulen
f2f448e727 Update cukes. Add new isolated shells feature. 2012-12-11 17:52:19 +00:00
Marco Vermeulen
f868f0fce3 Updated installation feature to include .zshrc scenario. 2012-12-11 15:58:12 +00:00
Marco Vermeulen
1b5e2841c2 Upgrade to version 0.9.1 2012-12-11 13:54:00 +00:00
Marco Vermeulen
734a251299 Re-initialise with isolated mode enabled by default. 2012-12-11 13:51:33 +00:00
Peter Ledbrook
927626b3ea Add some javadocs to BashEnv. 2012-12-07 14:31:03 +00:00
Marco Vermeulen
d29a2bc7fa Upgrade to 0.9.0 2012-12-07 13:56:29 +00:00
Marco Vermeulen
a51eb0ba66 Initialise config file on install. 2012-12-07 13:51:32 +00:00
Marco Vermeulen
70463aa7a2 Initialise config file on selfupdate. 2012-12-07 13:45:00 +00:00
Marco Vermeulen
b60b935ec7 Fix noinspection hint for idea. Moved clashing manual tag to scenario level. 2012-12-07 12:39:16 +00:00
Marco Vermeulen
3d34cac70f Fix typo in install gvm feature. 2012-12-07 12:22:37 +00:00
Marco Vermeulen
b782216def Ignore undefined cucumber steps for install gvm feature from inspection by idea. 2012-12-07 12:22:13 +00:00
Marco Vermeulen
56963f1c0b Upgrade version feature to 0.8.4 2012-12-07 11:35:53 +00:00
Peter Ledbrook
b4b787f1f1 Fix intermittent test errors with broadcast msg.
A bash prompt often crept into the output for one of the broadcast feature
tests, which then cause that test to fail. I have set the prompt to an empty
string, hence eliminating that source of problems :)
2012-12-07 10:31:48 +00:00
Peter Ledbrook
85f8e4879e Change path and name of gvm user config file.
This change also exposed a problem in the Cucumber tests with isolated mode,
so I have fixed the tests to handle separation of currently active version
and the default version of a candidate.
2012-12-07 10:31:48 +00:00
Peter Ledbrook
5952e17660 Fix cucumber tests for per-shell versions feature.
Since gvm is now a function that is sourced into the current shell, the old
Cucumber tests no longer work as they try to execute 'gvm' as a process. This
fix instead launches an external bash process for each scenario and pipes the
required commands to it.

A lot of the magic happens in the new BashEnv class which handles the piping
of commands and also managing the output correctly.

This is further work on issue #52.
2012-12-07 10:31:47 +00:00
Peter Ledbrook
ab94125c35 Add initial support for per-shell versions: issue #52
In order to make version changes only apply to the current shell, I had to make
the `gvm-init.sh` script source the `gvm` one. This meant replacing all `exit`
calls in the latter with `return`s and changing the name of the functions by
prefixing them with `__gvmtool_` (to avoid the functions appearing in bash
auto-completion by accident).

Note that this feature is not enabled by default. The user must create a
~/.gvm/gvmconfig file and add 'isolated_mode=1' to it in order to enable the
feature.

To help with some of the internals, `gvm-init.sh` now exports the `GVM_DIR`
variable if it hasn't already been set by the user. This makes it available to
`gvm` and any plugin scripts that get executed in sub-shells.

`gvm-init.sh` also sources any scripts in `$GVM_DIR/ext` whose name begins
with `sourced-`, allowing users to extend the system with extra functionality
implemented via bash functions. They are required to name their functions with
`__gvmtool_<command>`. Plugins can also be implemented as straight
`gvm-<command>.sh` scripts, but these manually need to source the `gvm` script
if they want access to its internal functions, such as `__gvmtool_help`.

In this 'isolated mode', users need some way of setting the default version of
candidates for new shells. So I have also added a new 'set-default' command
that updates the 'current' symlink to the specified candidate version.
2012-12-07 10:28:18 +00:00
Marco Vermeulen
cb2ab48638 Upgrade test and VertxUtils to 0.8.4. 2012-12-05 14:05:08 +00:00
Marco Vermeulen
e43cfb636e Clean up step definitions: package declarations, imports and code formatting. 2012-12-05 11:41:51 +00:00
Marco Vermeulen
265df38f75 Moved current candidate features to own feature file. Change output format on gvm current. 2012-12-03 20:48:30 +00:00
Matt Hurne
39cb44d6c9 'gvm current' without candidate specified lists current versions of all installed candidates 2012-12-01 22:22:32 -05:00
Marco Vermeulen
87eae69672 Source the initialisation script once only. 2012-11-26 22:19:11 +00:00
Marco Vermeulen
35c4b866d9 Remove build.sh. Gradle now runs -directly. 2012-11-21 10:29:06 +00:00
Marco Vermeulen
217b3b3106 Mark upgrade feature as manual. Remove related resources. 2012-11-20 17:24:05 +00:00
Marco Vermeulen
27409ad12a Move gtpl templates to src tree, gradle build copies to build folder. Serverside updates. 2012-11-20 14:15:36 +00:00
Marco Vermeulen
2cd3ab91e5 Update tests to 0.8.3 2012-11-17 14:31:55 +00:00
Marco Vermeulen
cd797bb30d Use prepared scripts from build folder in tests. 2012-11-17 10:41:07 +00:00
Marco Vermeulen
0e53e59ecc Bug fix: Choose not to install on using a candidate version that is not installed. 2012-11-05 16:25:35 +00:00
Marco Vermeulen
cbdd892681 Issue #27: Install command invoked after installation. Refactor install and link into functions. 2012-11-02 11:29:19 +00:00
Marco Vermeulen
3cf3d7c85d Some command invokation tweaks from witin cucumber step defs. 2012-11-01 21:26:40 +00:00
Marco Vermeulen
7eecae89a8 Remove unused step defs. 2012-11-01 17:50:49 +00:00
Marco Vermeulen
db6818e3ba Correct versioning to 0.8.2 2012-11-01 17:18:37 +00:00
Marco Vermeulen
92ded1e6aa Clean up Cucumber Feature files and step defs. 2012-11-01 17:06:31 +00:00
Marco Vermeulen
c688b1836a Set version to 0.81. 2012-10-29 13:46:42 +00:00
Marco Vermeulen
f1aece7dd4 Removed obsolete gvm-selfupdate script. 2012-10-28 15:38:01 +00:00
Marco Vermeulen
fbc8f1896b Update cucumber scenario to handle new selfupdate. 2012-10-28 14:57:10 +00:00
Marco Vermeulen
bb8707f075 Change broadcast endpoint in stub ws. 2012-10-27 11:41:31 +01:00
Marco Vermeulen
c0d8576ece Up stub version to 0.85 2012-10-25 21:12:05 +01:00
Marco Vermeulen
c5e2d37169 Merge pull request #48 from pledbrook/patch-03
Add cucumber test for 'version' command.
2012-10-24 09:44:28 -07:00