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

Run tests with race flag #1013

Closed
wants to merge 4 commits into from
Closed

Run tests with race flag #1013

wants to merge 4 commits into from

Commits on Apr 4, 2015

  1. test: add GOFLAGS variable to the Makefile

    This makes it possible to build binaries with
    different flags.
    
    The content of the GOFLAGS variable is stored
    in a IPFS-BUILD-OPTIONS file, so that if GOFLAGS
    changes a rebuild of the binaries with the new
    flags is forced.
    
    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Apr 4, 2015
    Configuration menu
    Copy the full SHA
    39886ca View commit details
    Browse the repository at this point in the history
  2. test: add test_race target to Makefile

    This builds go binaries using the -race flag
    and then runs all the tests.
    
    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Apr 4, 2015
    Configuration menu
    Copy the full SHA
    bdebace View commit details
    Browse the repository at this point in the history
  3. test: add IPFS-BUILD-OPTIONS to .gitignore

    ...and remove bin/* stuff from the .gitignore
    as /test/bin is already in the root .gitignore.
    
    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Apr 4, 2015
    Configuration menu
    Copy the full SHA
    d57a65b View commit details
    Browse the repository at this point in the history
  4. test/sharness: add GOFLAGS variable and race target

    The GOFLAGS variable makes it possible to run all sharness
    tests with go binaries built with some special flags.
    
    The "race" target makes it easy run the sharness tests
    with go binaries built with the -race flag.
    
    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Apr 4, 2015
    Configuration menu
    Copy the full SHA
    c328054 View commit details
    Browse the repository at this point in the history