Commit Graph

967 Commits

Author SHA1 Message Date
Marco Vermeulen
0bcc28b7d7 Move step definitions to dedicated steps folder. 2013-04-08 08:54:54 +01:00
Marco Vermeulen
dce356c3c2 Move groovy templates to dedicated templates folder. 2013-04-08 08:39:07 +01:00
Marco Vermeulen
a56ff919fb Move server script into dedicated groovy folder. 2013-04-08 08:32:24 +01:00
Marco Vermeulen
c0e75619a5 Move bash scripts into dedicated bash folder. 2013-04-08 08:31:36 +01:00
Marco Vermeulen
1b745b982b Issue 137: Fixed broken current command. Platform specific hack for solaris now used gnu sed instead of default sed. Also check for gnu sed on installation. 2013-04-04 11:15:33 +01:00
Marco Vermeulen
6433c7bbc6 Tweaks to determining platform currently running on. 2013-04-03 08:27:45 +01:00
Marco Vermeulen
7289d253a3 Rename base directory to gvm base environment variable in test environment. 2013-03-28 21:48:53 +00:00
Marco Vermeulen
15655b7059 Rename base directory to build script directory for test environment. 2013-03-28 21:47:50 +00:00
Marco Vermeulen
24eb4c41e5 Remove *actual groovy binary* from test resources. Rework dummies and update specs accordingly. 2013-03-28 21:31:36 +00:00
Marco Vermeulen
f61394ff34 Clean up file instantiations. 2013-03-26 13:40:59 +00:00
Marco Vermeulen
61e20520ff Use universal sed switches. OSX specifics removed. 2013-03-25 08:16:04 +00:00
Marco Vermeulen
f7147623ea Perform os specific support checks using subshells. 2013-03-22 08:12:53 +00:00
Marco Vermeulen
abcba473a4 Fix defect: Incorrect usage of uname on OSX. 2013-03-22 08:05:32 +00:00
Marco Vermeulen
8c4466287a Revert source to earlier stable state at 38afc. 2013-03-21 08:32:29 +00:00
T. Bittermann
a903acaf85 prevent displaying which error message '/usr/bin/which: no gvm-init.sh in (...)' 2013-02-14 21:28:03 +01:00
Marco Vermeulen
52d307d063 Merge pull request #128 from dsyer/feature/testoutput
Add stdout from bash processes to test reports
2013-02-09 10:45:07 -08:00
Marco Vermeulen
9b534667a6 Merge branch 'master' of github.com:gvmtool/gvm 2013-02-09 18:39:56 +00:00
Marco Vermeulen
158a8ffe2e Merge pull request #131 from dsyer/feature/helpcandidates
Remove hard coded list of candidates from gvm-help
2013-02-09 10:39:10 -08:00
Marco Vermeulen
196761a37d Fix zsh compatibility issue when checking for --flush param on initialisation. 2013-02-09 18:31:32 +00:00
Marco Vermeulen
71c29c7847 Merge pull request #126 from dsyer/bug/defaultpath
Ensure /current/bin is on PATH if a default is set
2013-02-09 10:18:32 -08:00
Dave Syer
6ff47f5f48 Remove hard coded list of candidates from gvm-help 2013-02-08 14:29:40 +00:00
Marco Vermeulen
76ff6f5c83 Fix a typo in javadoc. 2013-02-07 15:14:06 +00:00
Dave Syer
04c775ce3e Add stdout from bash processes to test reports
Its quite hard to debug what went wrong if a test fails
so it would be very helpful to have a record somewhere of
the stdout from bash.  This patch appends it to the test
report.
2013-02-06 14:55:49 +00:00
Dave Syer
23a8872693 Ensure /current/bin is on PATH if a default is set 2013-02-05 15:43:39 +00:00
Dave Syer
7c9f9b6657 Re-instate /current/bin on PATH 2013-02-04 16:08:59 +00:00
Dave Syer
07a5fd416d Promote gvm-init.sh to be a first class function 2013-02-04 15:48:55 +00:00
Dave Syer
d316ec7857 Cache candidates per service and add option to flush 2013-02-01 06:44:33 -05:00
Dave Syer
cb0f9aae07 Fix bug in PATH accidentally introduce in previous rebase 2013-01-31 13:47:03 -05:00
Dave Syer
eaf40fd1e0 Move GVM_CANDIDATES building code to init script 2013-01-31 13:47:02 -05:00
Dave Syer
342b813d77 Remove hard-coded references to candidates
It seems wrong to hard-code the candidate names when they are
available from the server.  It also makes it hard to add new
candidates.  The scripts pretty much work with a really small
change to gvm-use.sh, but the tests also rely on the PATH being
set, so there is a change to the tests as well to make them pass.
2013-01-31 13:47:02 -05:00
Marco Vermeulen
3a36efc1da Upgrade to cucumber-jvm 1.1.1 2013-01-26 10:29:09 +00:00
Marco Vermeulen
16b1a624c6 Rename upgrade steps to selfupdate steps. 2013-01-26 10:02:40 +00:00
Marco Vermeulen
d2f60a1bcb Adds configuration of auto answer on install and selfupdate. 2013-01-26 09:57:50 +00:00
Marco Vermeulen
edf9d79155 Upgrade feature renamed to Self Update. 2013-01-26 07:36:40 +00:00
Marco Vermeulen
22cec73231 Minor tweaks to auto install configuration and cukes. 2013-01-26 07:11:47 +00:00
Dave Syer
0fea0aea4d Rename auto var to gvm_auto_answer 2013-01-24 12:26:03 +00:00
Dave Syer
93121e907d Use a single flag 'gvm_auto' instead of separate use/install 2013-01-23 13:50:25 +00:00
Dave Syer
9574046bfe Add gvm_auto_{install,use} in $GVM_DIR/etc/config
Fixes #101.

These flags are consulted when gvm is asked to use an uninstalled version
or to install an unused version.  User is prompted for a response
by default but this can be overridden by adding these flags to
the confg, e.g.

$ echo gvm_auto_install=Y >> $GVM_DIR/etc/config
$ echo gvm_auto_use=Y >> $GVM_DIR/etc/config
$ gvm use groovy 1.8.8
... (installs and uses without prompting)
2013-01-23 12:52:38 +00:00
Marco Vermeulen
9c3902e4c3 Issue 106 108: which command breaks zsh in init snippet. 2013-01-22 22:10:33 +00:00
Marco Vermeulen
b8c279fe16 Strip out isolated_mode configuration. 2013-01-22 20:52:18 +00:00
Marco Vermeulen
d806733cce Improve instantiation of mongo.json file. 2013-01-22 19:59:24 +00:00
Marco Vermeulen
679366954e Tweak install function for zsh compatibility. 2013-01-21 14:33:07 +00:00
Marco Vermeulen
90b04751f3 Upgrade version to 0.9.5, add mongo release script. 2013-01-21 13:52:21 +00:00
Marco Vermeulen
3524e000c5 Remove separator in list template. 2013-01-20 21:36:16 +00:00
Marco Vermeulen
e8b8c96b8a Add list functionality for local candidate versions. 2013-01-20 14:09:06 +00:00
Marco Vermeulen
8d69e63069 Bug fix on defaulting candidates after installation. 2013-01-20 14:09:06 +00:00
Peter Ledbrook
f995b891b1 Fix problem switching from local version to standard.
In isolated mode, attempting to switch from a locally installed version to a
standard one would fail if the label for the local version did not start with
a number, e.g. 'dev'. One of the regular expressions in gvm-use.sh was still
assuming that versions always began with a number, which of course is no longer
the case.

I fixed the regular expression and added a corresponding Cucumber scenario.
2013-01-18 15:00:01 +00:00
Marco Vermeulen
ac948a6a33 Improvement on platform specific hacks for cygwin. 2013-01-18 14:18:50 +00:00
Marco Vermeulen
a9ccc82431 Remove obsolete unsets from install and selfupdate scripts. 2013-01-18 14:15:55 +00:00
Marco Vermeulen
48d1b582b0 Ensure that etc/config is primed on initial installation. 2013-01-14 22:51:07 +00:00