Running Multiple Instances of Fennec Reftests

I’ve been running multiple instances of fennec reftest concurrently from the same computer. This is useful when testing OpenGL Layers on mobile for consistency across devices.

  1. Use ‘adb devices’ to get each device’s serial number.
  2. Set the environment variable ANDROID_SERIALS to the serial number.
  3. Run reftests by using a unique http and ssl port for each instance: EXTRA_TEST_ARGS=”–http-port=$ANDROID_REFTEST_HTTP –ssl-port=$ANDROID_REFTEST_SSL”

Here are the scripts I use:

device_xoom.sh

export ANDROID_REFTEST_HTTP=38888
export ANDROID_REFTEST_SSL=30443
export ANDROID_SERIAL=03abd624740a0d057
export ANDROID_DEVICE_NAME=XOOM

fennec_reftest.sh

echo $(cat ~/.config/moz_tree)/$1
cd $(cat ~/.config/moz_tree)
install_fennec.sh
EXTRA_TEST_ARGS="--http-port=$ANDROID_REFTEST_HTTP 
--ssl-port=$ANDROID_REFTEST_SSL --setpref=layers.acceleration.force-enabled=true" 
MOZ_HOST_BIN="../obj-fn-opt_para/dist/bin/" make -C $(cat ~/.config/moz_tree)/$1 
reftest-remote | tee ~/mozilla/reftestlogs/fennec_reftest_log_$ANDROID_DEVICE_NAME.txt
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s