-
Notifications
You must be signed in to change notification settings - Fork 8
/
check_memory_leaks
executable file
·33 lines (29 loc) · 1.05 KB
/
check_memory_leaks
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
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_NAME="BxTextField"
APP_UI_TEST_SCHEME="BxTextFieldUITests"
APP_RUNNER_NAME="$APP_UI_TEST_SCHEME-Runner"
APP_DIR="$SCRIPT_DIR"
APP_WORKSPACE="$APP_DIR/BxTextField.xcworkspace"
APP_UI_TEST_PRINCIPAL_CLASS="PrincipalClass"
APP_UI_TEST_PRINCIPAL_CLASS_FILE="$APP_DIR/$APP_UI_TEST_SCHEME/$APP_UI_TEST_PRINCIPAL_CLASS.swift"
APP_UI_TEST_NAMES=( \
"$APP_UI_TEST_SCHEME/BxTextFieldUITests" \
)
SIMULATOR_NAME="iPhone Xs" # Here fill your simulator name
if [ -z "$SIMULATOR_NAME" ]
then
echo 'Error: Please, fill name of simulator in `SIMULATOR_NAME` variable inside `check_memory_leaks` script.'
exit 1
fi
bash "$SCRIPT_DIR/memory-leak-tester/start" \
"$APP_NAME" \
"$APP_RUNNER_NAME" \
"$APP_WORKSPACE" \
"$APP_UI_TEST_SCHEME" \
".memory-leak-tester-reports" \
".memory-leak-tester-build" \
"$SIMULATOR_NAME" \
"$APP_UI_TEST_PRINCIPAL_CLASS_FILE" \
"$APP_UI_TEST_PRINCIPAL_CLASS" \
"$APP_UI_TEST_NAMES"