mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Output to a log file. Simulate adjusting the androidmanifest
This commit is contained in:
@ -7,9 +7,15 @@ trace.enable();
|
|||||||
trace.addCategories(trace.categories.Test + "," + trace.categories.Error);
|
trace.addCategories(trace.categories.Test + "," + trace.categories.Error);
|
||||||
|
|
||||||
export function createPage() {
|
export function createPage() {
|
||||||
tests.runAll();
|
// tests.runAll();
|
||||||
|
|
||||||
var page = new Page();
|
var page = new Page();
|
||||||
page.content = new GridLayout();
|
page.on("navigatedTo", function() {
|
||||||
|
setTimeout(function() {
|
||||||
|
tests.runAll();
|
||||||
|
}, 3000);
|
||||||
|
});
|
||||||
|
// page.content = new GridLayout();
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
|
|
||||||
set timeout 600
|
set timeout 600
|
||||||
spawn adb logcat | tee __TESTRESULT__.txt
|
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
||||||
|
log_file -noappend ./__TESTRESULT__.txt
|
||||||
|
spawn adb logcat
|
||||||
expect '=== ALL TESTS COMPLETE ==='
|
expect '=== ALL TESTS COMPLETE ==='
|
||||||
send \003
|
send \003
|
||||||
|
@ -4,6 +4,8 @@ rm -rd $workingdir
|
|||||||
mkdir $workingdir
|
mkdir $workingdir
|
||||||
cd $workingdir
|
cd $workingdir
|
||||||
|
|
||||||
|
#android create avd -t "android-21" -n Api21 -b "default/x86"
|
||||||
|
|
||||||
#if [ 1 == 2 ] ; then
|
#if [ 1 == 2 ] ; then
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Killing the emulator..."
|
echo "Killing the emulator..."
|
||||||
@ -11,7 +13,7 @@ cd $workingdir
|
|||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Starting the emulator..."
|
echo "Starting the emulator..."
|
||||||
time emulator -avd Api19 -no-skin -no-audio &
|
time emulator -avd Api19 -no-skin -no-audio & # -gpu on
|
||||||
#emulator -avd Api19 -no-skin -no-audio -no-window &
|
#emulator -avd Api19 -no-skin -no-audio -no-window &
|
||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
@ -30,7 +32,9 @@ cd $workingdir
|
|||||||
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/
|
||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Building the application..."
|
echo "Building the application..."
|
||||||
|
Reference in New Issue
Block a user