# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Tests that require the updater binary.

[DEFAULT]
tags = appupdate
head = head_update.js
skip-if =
  (os == 'win' && (ccov || msix)) # Our updater is disabled in MSIX builds
support-files =
  ../data/shared.js
  ../data/sharedUpdateXML.js
  ../data/xpcshellUtilsAUS.js

[invalidArgCallbackFileNotInInstallDirFailure.js]
[invalidArgCallbackFilePathTooLongFailure.js]
[invalidArgInstallDirPathTooLongFailure.js]
[invalidArgInstallDirPathTraversalFailure.js]
[invalidArgInstallWorkingDirPathNotSameFailure_win.js]
skip-if = os != 'win'
reason = Windows only test
[invalidArgPatchDirPathTraversalFailure.js]
[invalidArgStageDirNotInInstallDirFailure_win.js]
skip-if = os != 'win'
reason = Windows only test
[invalidArgWorkingDirPathLocalUNCFailure_win.js]
skip-if = os != 'win'
reason = Windows only test
[invalidArgWorkingDirPathRelativeFailure.js]
[marSuccessComplete.js]
[marSuccessPartial.js]
[marSuccessPartialWhileBackgroundTaskRunning.js]
skip-if =
  apple_silicon  # Bug 1754931
  apple_catalina # Bug 1754931
[marFailurePartial.js]
[marStageSuccessComplete.js]
skip-if =
  apple_silicon  # bug 1707753
  apple_catalina # Bug 1713329
[marStageSuccessPartial.js]
skip-if =
  apple_silicon  # bug 1707753
  apple_catalina # Bug 1713329
[marVersionDowngrade.js]
[marMissingUpdateSettings.js]
[marMissingUpdateSettingsStage.js]
[marWrongChannel.js]
[marWrongChannelStage.js]
[marStageFailurePartial.js]
[marCallbackAppSuccessComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marCallbackAppSuccessPartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marCallbackAppStageSuccessComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marCallbackAppStageSuccessPartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marCallbackUmask_unix.js]
skip-if =
  os == 'win'  # not a Windows test
reason = Unix only test
[marAppInUseBackgroundTaskFailure_win.js]
skip-if = os != 'win'
reason = Windows only test
[marAppInUseSuccessComplete.js]
[marAppInUseStageSuccessComplete_unix.js]
skip-if =
  os == 'win'  # not a Windows test
  apple_silicon  # bug 1707753
  apple_catalina # Bug 1713329
[marAppInUseStageFailureComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileLockedFailureComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileLockedFailurePartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileLockedStageFailureComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileLockedStageFailurePartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileInUseSuccessComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileInUseSuccessPartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marRMRFDirFileInUseSuccessComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marRMRFDirFileInUseSuccessPartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileInUseStageFailureComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marFileInUseStageFailurePartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marRMRFDirFileInUseStageFailureComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marRMRFDirFileInUseStageFailurePartial_win.js]
skip-if = os != 'win'
reason = Windows only test
[marPIDPersistsSuccessComplete_win.js]
skip-if = os != 'win'
reason = Windows only test
[marAppApplyDirLockedStageFailure_win.js]
skip-if = os != 'win'
reason = Windows only test
[marAppApplyUpdateAppBinInUseStageSuccess_win.js]
skip-if = os != 'win'
reason = Windows only test
[marAppApplyUpdateSuccess.js]
skip-if =
  apple_silicon  # bug 1724579
[marAppApplyUpdateStageSuccess.js]
skip-if =
  apple_silicon  # bug 1707753
  apple_catalina # Bug 1713329
[marAppApplyUpdateStageOldVersionFailure.js]
[marAppApplyUpdateSkippedWriteAccess_win.js]
skip-if = os != 'win'
reason = Windows only test
