Created
March 20, 2012 18:04
-
-
Save mrosset/2138855 to your computer and use it in GitHub Desktop.
running command packages with go test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"testing" | |
) | |
func TestBuild(t *testing.T) { | |
args := []string{"build", "ccache"} | |
os.Args = append(os.Args, args...) | |
main() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment