Reduce the timeout of the test run. Start in no-window

This commit is contained in:
Erjan Gavalji
2015-10-15 10:37:18 +03:00
parent d4a702409d
commit 2c42783907
2 changed files with 34 additions and 36 deletions

View File

@ -9,7 +9,7 @@
#send \003 #send \003
set timeout 1200 set timeout 600
#spawn (adb logcat | tee ./__TESTRESULT__.txt) #spawn (adb logcat | tee ./__TESTRESULT__.txt)
log_file -noappend ./__TESTRESULT__.txt log_file -noappend ./__TESTRESULT__.txt
spawn adb logcat spawn adb logcat

View File

@ -4,52 +4,48 @@ rm -rd $workingdir
mkdir $workingdir mkdir $workingdir
cd $workingdir cd $workingdir
# Creating the emulator with:
#android create avd -t "android-21" -n Api21 -b "default/x86" #android create avd -t "android-21" -n Api21 -b "default/x86"
#if [ 1 == 2 ] ; then echo "------------------------------------------------"
echo "------------------------------------------------" echo "Killing the emulator..."
echo "Killing the emulator..." time pkill ".*emulator64-x86" && true
time pkill ".*emulator64-x86" && true
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Starting the emulator..." echo "Starting the emulator..."
#time emulator -avd Api19 -no-skin -no-audio & # -gpu on time emulator -avd Api19 -no-audio --no-window &
time emulator -avd Api19 -no-audio & # -gpu on
#emulator -avd Api19 -no-skin -no-audio -no-window &
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Creating the app..." echo "Creating the app..."
time tns create TestsApp time tns create TestsApp
cd TestsApp cd TestsApp
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Removing the original template files..." echo "Removing the original template files..."
time rm app/*.* time rm app/*.*
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Copying the test app files..." echo "Copying the test app files..."
time cp -r ../../bin/dist/apps/tests/* ./app/ time cp -r ../../bin/dist/apps/tests/* ./app/
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Adding the android platform..." echo "Adding the android platform..."
time tns platform add android #--frameworkPath=/Users/erjan/tns-android.tgz time tns platform add android #--frameworkPath=/Users/erjan/tns-android.tgz
# #DO THE REPLACEMENTS IN THE Info.plist and AndroidManifest.xml # #DO THE REPLACEMENTS IN THE Info.plist and AndroidManifest.xml
cp /Users/erjan/work/spikes/__DEL__/AndroidManifest.xml platforms/android/src/main/ cp /Users/erjan/work/spikes/__DEL__/AndroidManifest.xml platforms/android/src/main/
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Building the application..." echo "Building the application..."
time tns build android time tns build android
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Killing the adb server..." echo "Killing the adb server..."
time adb kill-server time adb kill-server
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Starting the adb server..." echo "Starting the adb server..."
time adb start-server time adb start-server
#fi
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Uninstalling the app..." echo "Uninstalling the app..."
@ -68,3 +64,5 @@ cd $startdir
echo "------------------------------------------------" echo "------------------------------------------------"
echo "Waiting for the tests to finish executing..." echo "Waiting for the tests to finish executing..."
time ./expect.exp time ./expect.exp
#pkill ".*emulator64-x86" && true