Testing integration:

This commit is contained in:
Halim Qarroum
2023-03-14 18:58:48 +00:00
parent 7a3b901e16
commit e4b86970cf
+10 -8
View File
@@ -31,17 +31,19 @@ echo no | avdmanager create avd \
--package "$PACKAGE_PATH" \ --package "$PACKAGE_PATH" \
--device "$DEVICE_ID" --device "$DEVICE_ID"
export DISPLAY=":0.0"
# If GPU acceleration is enabled, we create a virtual framebuffer # If GPU acceleration is enabled, we create a virtual framebuffer
# to be used by the emulator when running with GPU acceleration. # to be used by the emulator when running with GPU acceleration.
# We also set the GPU mode to `host` to force the emulator to use # We also set the GPU mode to `host` to force the emulator to use
# GPU acceleration. # GPU acceleration.
if [ "$GPU_ACCELERATED" == "true" ]; then # if [ "$GPU_ACCELERATED" == "true" ]; then
export DISPLAY=":0.0"
export GPU_MODE="host" # export GPU_MODE="host"
Xvfb "$DISPLAY" -screen 0 1920x1080x16 -nolisten tcp & # Xvfb "$DISPLAY" -screen 0 1920x1080x16 -nolisten tcp &
else # else
export GPU_MODE="swiftshader_indirect" # export GPU_MODE="swiftshader_indirect"
fi # fi
# Asynchronously write updates on the standard output # Asynchronously write updates on the standard output
# about the state of the boot sequence. # about the state of the boot sequence.
@@ -51,7 +53,7 @@ wait_for_boot &
echo "Starting the emulator ..." echo "Starting the emulator ..."
emulator \ emulator \
-avd android \ -avd android \
-gpu "$GPU_MODE" \ -gpu "swiftshader_indirect" \
-no-boot-anim \ -no-boot-anim \
-no-window \ -no-window \
-no-snapshot || update_state "ANDROID_STOPPED" -no-snapshot || update_state "ANDROID_STOPPED"