macos-clean-build-test.sh 859 B

123456789101112131415161718192021222324
  1. # Cleans, builds, and runs integration tests on macOS.
  2. # Can be used by `git bisect run` to automatically find the commit which introduced a problem.
  3. arch="x64"
  4. if [[ $(uname -m) == 'arm64' ]]; then
  5. arch="arm64"
  6. fi
  7. SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
  8. cd "$SCRIPT_DIR"/../.. || exit
  9. git clean -xdf
  10. pkill node
  11. appium &
  12. pkill IntegrationTestApp
  13. ./build.sh CompileNative
  14. rm -rf $(osascript -e "POSIX path of (path to application id \"net.avaloniaui.avalonia.integrationtestapp\")")
  15. pkill IntegrationTestApp
  16. ./samples/IntegrationTestApp/bundle.sh
  17. open -n ./samples/IntegrationTestApp/bin/Debug/net8.0/osx-$arch/publish/IntegrationTestApp.app
  18. pkill IntegrationTestApp
  19. open -b net.avaloniaui.avalonia.integrationtestapp
  20. dotnet test tests/Avalonia.IntegrationTests.Appium/ -l "console;verbosity=detailed"
  21. pkill IntegrationTestApp
  22. pkill node