Add alias test and basic gvm command test

This commit is contained in:
Joshua B. Bussdieker
2014-04-03 20:51:14 -07:00
parent 4b719612ef
commit dffb71a9b6
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
source $GVM_ROOT/scripts/gvm
## Cleanup test objects
gvm alias delete foo
gvm alias delete bar
#######################
gvm alias # status=0
gvm alias create foo go1.2 # status=0
gvm alias create bar go1.0.3 # status=0
gvm alias list # status=0; match=/gvm go aliases/; match=/foo \(go1\.2\)/; match=/bar \(go1\.0\.3\)/
gvm use foo # status=0
go version # status=0; match=/go1\.2/
gvm use bar # status=0
go version # status=0; match=/go1\.0\.3/
gvm alias delete foo
gvm alias list # status=0; match=/gvm go aliases/; match!=/foo \(go1\.2\)/; match=/bar \(go1\.0\.3\)/
gvm alias delete bar
gvm alias list # status=0; match=/gvm go aliases/; match!=/foo \(go1\.2\)/; match!=/bar \(go1\.0\.3\)/
+1
View File
@@ -0,0 +1 @@
gvm # status=0; match=/GVM is the Go Version Manager/