More regression debug
This commit is contained in:
@@ -545,7 +545,8 @@ int main(int argc, char* argv[])
|
||||
fps = (float)fps_count * 1000.0 / (tick - fps_start);
|
||||
fps_count = 0;
|
||||
fps_start = tick;
|
||||
__android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL REGRESSION BUILDDATE %s FPS: %f", BUILDDATE, fps);
|
||||
__android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL REGRESSION BUILDDATE %s FPS: %f SCREEN %dx%d balls %d",
|
||||
BUILDDATE, fps, SCREEN_W, SCREEN_H, BALLS);
|
||||
}
|
||||
print_num(screen, font, screen->w-37, screen->h-12, fps);
|
||||
++fps_count;
|
||||
|
||||
@@ -66,8 +66,9 @@ cd project
|
||||
nice -n19 ndk-build V=1 -j4 && ant debug && cp -f bin/DemoActivity-debug.apk ../regression/$CURFMT.apk
|
||||
cd ..
|
||||
adb install -r regression/$CURFMT.apk
|
||||
adb shell pm uninstall net.olofson.ballfield.regression
|
||||
adb shell am start -n net.olofson.ballfield.regression/.MainActivity
|
||||
sleep 15
|
||||
sleep 40
|
||||
echo BUILDDATE $CURFMT: "`git log -n 1 --format="%s"`" >> regression/regression.txt
|
||||
adb shell logcat -d -t 20 | grep "SDL REGRESSION BUILDDATE $CURFMT" >> regression/regression.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user