mirror of https://github.com/gogits/gogs.git
Unknown
12 years ago
2 changed files with 1 additions and 39 deletions
@ -1,38 +0,0 @@ |
|||||||
// Copyright (c) 2013 GPMGo Members. All rights reserved.
|
|
||||||
// Use of this source code is governed by a MIT-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
package main |
|
||||||
|
|
||||||
import ( |
|
||||||
"fmt" |
|
||||||
"testing" |
|
||||||
"time" |
|
||||||
) |
|
||||||
|
|
||||||
func TestGPM(t *testing.T) { |
|
||||||
fmt.Println("gopm v0.2.2 Build 0524") |
|
||||||
|
|
||||||
fmt.Println("\nBuilding gopm application...") |
|
||||||
// Build application.
|
|
||||||
var args []string |
|
||||||
args = append(args, "build") |
|
||||||
executeCommand("go", args) |
|
||||||
|
|
||||||
fmt.Println("\nStart testing command Install...") |
|
||||||
fmt.Println("This package depends on `install_test2`.") |
|
||||||
time.Sleep(2 * time.Second) |
|
||||||
args = make([]string, 0) |
|
||||||
args = append(args, "install") |
|
||||||
args = append(args, "github.com/GPMGoTest/install_test") |
|
||||||
executeCommand("gopm", args) |
|
||||||
|
|
||||||
fmt.Println("\nStart testing command Remove...") |
|
||||||
fmt.Println("Let's remove `install_test` and `install_test2`.") |
|
||||||
time.Sleep(2 * time.Second) |
|
||||||
args = make([]string, 0) |
|
||||||
args = append(args, "remove") |
|
||||||
args = append(args, "github.com/GPMGoTest/install_test") |
|
||||||
args = append(args, "github.com/GPMGoTest/install_test2") |
|
||||||
executeCommand("gopm", args) |
|
||||||
} |
|
Loading…
Reference in new issue