-
Notifications
You must be signed in to change notification settings - Fork 3
/
test_run.sh
executable file
·35 lines (30 loc) · 953 Bytes
/
test_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Tell bash to completely bail on any error
set -e
# Clean out the results directory. Sometimes instruments gets confused and
# reports a "(null)" error. Clean this directory. Then sacrifice a small goat.
rm -rf automation_results
mkdir -p automation_results
xcodebuild \
clean build \
-project Schedule.xcodeproj \
-configuration Release \
-scheme ScheduleUITests \
-sdk iphonesimulator \
CONFIGURATION_BUILD_DIR="/tmp/Schedule"
# Simulator
bin/unix_instruments \
-t automation/Template.tracetemplate \
-D automation_results/Trace \
/tmp/Schedule/Schedule.app \
-e UIARESULTSPATH automation_results \
-e UIASCRIPT automation/test_favorites.js \
-e UI_TESTS 1
# Device
bin/unix_instruments \
-w `bin/device_uuid` \
-t automation/Template.tracetemplate \
-D automation_results/Trace \
/tmp/Schedule/Schedule.app \
-e UIARESULTSPATH automation_results \
-e UIASCRIPT automation/test_favorites.js \
-e UI_TESTS 1