github.com/mutagen-io/mutagen@v0.18.0-rc1/scripts/ci/test_386.sh (about)

     1  #!/bin/bash
     2  
     3  # Exit immediately on failure.
     4  set -e
     5  
     6  # Load test parameters.
     7  source scripts/ci/test_parameters.sh
     8  
     9  # Disable Docker tests for 386.
    10  export MUTAGEN_TEST_DOCKER="false"
    11  
    12  # Perform a local-only build so that we have an agent bundle for testing.
    13  if [[ "${MUTAGEN_TEST_ENABLE_SSPL}" == "true" ]]; then
    14      GOARCH=386 go run scripts/build.go --mode=local --sspl
    15  else
    16      GOARCH=386 go run scripts/build.go --mode=local
    17  fi
    18  
    19  # Run tests.
    20  if [[ "${MUTAGEN_TEST_ENABLE_SSPL}" == "true" ]]; then
    21      GOARCH=386 go test -tags mutagensspl -p 1 ./pkg/...
    22  else
    23      GOARCH=386 go test -p 1 ./pkg/...
    24  fi
    25  
    26  # Run tests on SSPL code. We perform this test on all platforms, regardless of
    27  # whether or not SSPL-licensed enhancements are enabled for regular tests.
    28  GOARCH=386 go test -v -tags mutagensspl ./sspl/...