mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
// 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) |
|
}
|
|
|