Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(gnovm): "*_filetest.gno" instructions #1023

Merged
merged 9 commits into from
Aug 12, 2023

Commits on Aug 11, 2023

  1. test(gnovm): "*_filetest.gno" instructions

    Add tests for Output, Error and Realm instructions
    
    The change introduces a new test dependency
    github.com/rogpeppe/go-internal/testscripts, which allows to create
    tests bases on txtar files. This is very handy for this kind of tests,
    because:
    - you can easily creates a set of files that can be used for a command
      (here the `gno test` command)
    - you can assert stderr and stdout expectations in a very readable and
      maintainable way
    - you can compare files using the `cmp` command, which is very useful to
      assert of the `-update-golden-tests` behavior.
    
    These tests were added to help work on gnolang#1015, which will potentially
    alter the behavior of "*filetest.gno" instructions updates.
    tbruyelle committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    1e460ae View commit details
    Browse the repository at this point in the history
  2. various fixes

    - rename txt to txtar
    - add comment for '!stdout .+' instruction
    - use filepath instead of path
    tbruyelle committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    14b0418 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6113257 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5446309 View commit details
    Browse the repository at this point in the history
  5. refac: move testscript in cmd/gno

    - use a custom command for "gno" instead of env var
    - rebase on master so we can use "GNOROOT" instead of "-root-dir"
    tbruyelle committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    1b1fddf View commit details
    Browse the repository at this point in the history
  6. turn function private

    tbruyelle committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    891929d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e2ff5f2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e553f79 View commit details
    Browse the repository at this point in the history
  9. fix lint

    tbruyelle committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    5382a93 View commit details
    Browse the repository at this point in the history