mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +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);
|
||||
|
||||
export function createPage() {
|
||||
tests.runAll();
|
||||
// tests.runAll();
|
||||
|
||||
var page = new Page();
|
||||
page.content = new GridLayout();
|
||||
page.on("navigatedTo", function() {
|
||||
setTimeout(function() {
|
||||
tests.runAll();
|
||||
}, 3000);
|
||||
});
|
||||
// page.content = new GridLayout();
|
||||
return page;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
|
||||
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 ==='
|
||||
send \003
|
||||
|
@ -4,6 +4,8 @@ rm -rd $workingdir
|
||||
mkdir $workingdir
|
||||
cd $workingdir
|
||||
|
||||
#android create avd -t "android-21" -n Api21 -b "default/x86"
|
||||
|
||||
#if [ 1 == 2 ] ; then
|
||||
echo "------------------------------------------------"
|
||||
echo "Killing the emulator..."
|
||||
@ -11,7 +13,7 @@ cd $workingdir
|
||||
|
||||
echo "------------------------------------------------"
|
||||
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 &
|
||||
|
||||
echo "------------------------------------------------"
|
||||
@ -30,7 +32,9 @@ cd $workingdir
|
||||
echo "------------------------------------------------"
|
||||
echo "Adding the android platform..."
|
||||
time tns platform add android #--frameworkPath=/Users/erjan/tns-android.tgz
|
||||
|
||||
# #DO THE REPLACEMENTS IN THE Info.plist and AndroidManifest.xml
|
||||
cp /Users/erjan/work/spikes/__DEL__/AndroidManifest.xml platforms/android/src/main/
|
||||
|
||||
echo "------------------------------------------------"
|
||||
echo "Building the application..."
|
||||
|
Reference in New Issue
Block a user