forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: gnolang#1242 In favor of `gno precompile --build`
- Loading branch information
Showing
22 changed files
with
220 additions
and
262 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
package main | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
|
||
func TestPrecompileApp(t *testing.T) { | ||
tc := []testMainCase{ | ||
{ | ||
args: []string{"precompile"}, | ||
errShouldBe: "flag: help requested", | ||
}, | ||
"github.com/rogpeppe/go-internal/testscript" | ||
) | ||
|
||
// {args: []string{"precompile", "..."}, stdoutShouldContain: "..."}, | ||
// TODO: recursive | ||
// TODO: valid files | ||
// TODO: invalid files | ||
} | ||
testMainCaseRun(t, tc) | ||
func TestPrecompile(t *testing.T) { | ||
testscript.Run(t, setupTestScript(t, "testdata/gno_precompile")) | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Run gno precompile without args | ||
|
||
! gno precompile | ||
|
||
! stdout .+ | ||
stderr 'flag: help requested' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Run gno precompile on an empty dir | ||
|
||
gno precompile . | ||
|
||
! stdout .+ | ||
! stderr .+ |
Oops, something went wrong.