Skip to content
Snippets Groups Projects
Select Git revision
  • aee4a535fc9200aea7d8b709acae697845f1a4db
  • release default protected
  • master protected
  • hotfix/GrpcParameters
  • XX-4441
  • tls-websockets
  • hotfix/allow-web-creds
  • hotfix/nilCert
  • XX-3566_const_time_token_compare
  • AceVentura/AccountBackup
  • dev
  • waitingRoundsRewrite
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • XX-3563/DisableTlsCheck
  • notls
  • url-repo-rename
  • perftuning
  • Anne/CI2
  • AddedGossipLogging
  • hotfix/connectionReduction
  • v0.0.6
  • v0.0.4
  • v0.0.5
  • v0.0.3
  • v0.0.2
  • v0.0.1
27 results

host_test.go

Blame
  • run-tests.sh 1.03 KiB
    #!/bin/sh
    set -e
    
    if [ "$1" = "macos" ]; then
    
      echo "\n\033[1;32m▶ Running package tests on macOS...\033[0m"
      set -o pipefail && swift test | ./xcbeautify
    
    elif [ "$1" = "ios" ]; then
    
      echo "\n\033[1;32m▶ Running package tests on iOS Simulator...\033[0m"
      set -o pipefail && xcodebuild -scheme 'elixxir-dapps-sdk-swift-Package' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14' test | ./xcbeautify
    
    elif [ "$1" = "examples-ios" ]; then
    
      echo "\n\033[1;32m▶ Running XXMessenger example tests on iOS Simulator...\033[0m"
      set -o pipefail && xcodebuild -workspace 'Examples/xx-messenger/XXMessenger.xcworkspace' -scheme 'XXMessenger' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14' test | ./xcbeautify
    
    else
    
      echo "\n\033[1;31m▶ Invalid option.\033[0m Usage:"
      echo "  run-tests.sh macos        - Run package tests on macOS"
      echo "  run-tests.sh ios          - Run package tests on iOS Simulator"
      echo "  run-tests.sh examples-ios - Run iOS examples tests"
      exit 1
    
    fi