Revision control

1
#
2
# UITests and XCUITests run this as a post-build step, to copy all files from
3
# test-fixtures into the app bundle, so they can be loaded by Client.app under
4
# test, for instance for having pregenerated prefs or pregenerated browser.db.
5
#
6
# XCUITests in particular need this method of due to black-boxing of the host app.
7
# The Xcode-provided method to load test bundles does not work for App Groups.
8
#
9
10
echo "••• Populate test-fixtures dir in Client.app bundle •••"
11
fixtures="${SRCROOT}/test-fixtures"
12
[[ -e $fixtures ]] || exit 1
13
outpath="${TARGET_BUILD_DIR}/Client.app"
14
rsync -zvrt --update "$fixtures" "$outpath"