The Mer Wiki now uses your Mer user account and password (create account on

Quality/Tutorials/Testing with SDK to VM

From Mer Wiki
< Quality
Revision as of 13:21, 7 October 2012 by Siteshwar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See .ks file at bottom of page :

In .ks file following lines add repositories for QA packages :

repo --name=mer-tools --baseurl= --save repo --name=testing-tools --baseurl= --save repo --name=qa-tools --baseurl= --save

Following packages needs to be installed on VM to enable automated testing :

testrunner-lite eat-device testrunner-lite-hwinfo-meego

Following package will enable X11 blts tests :


in packages

In %post section, following lines install device test enablers for both user and root : su -c /usr/bin/eat-add-device-key root su -c /usr/bin/eat-add-device-key nemo


Add following repositories with zypper :

sudo zypper addrepo mer-tools sudo zypper addrepo tools-testing sudo zypper addrepo qa-tests

Update package list : sudo zypper ref

Now install following packages: eat-host testrunner-lite

Enable execute permissions for /usr/bin/eat-install-host-key Execute eat-install-host-key

ssh to localhost 5555 to check whether it's working

Install fonts required by testrunner-lite application with :

sudo zypper in liberation*fonts*

Start testrunner :

go into test run -> settings

username=nemo host= /home/situ/.ssh/id_eat_dsa

Save thesettings.

file -> open test definition, find /usr/share/blts-x11-tests/ and tests.xml there

test run -> run all tests

.ks file to generate testable image :

  1. -*-mic2-options-*- -f livecd --record-pkgs=name --pkgmgr=yum --arch=i486 -*-mic2-options-*-
  2. Do not Edit! Generated by:

lang en_US.UTF-8 keyboard us timezone --utc UTC part / --size 3000 --ondisk sda --fstype=ext3 rootpw nemo xconfig --startxonboot bootloader --timeout=0 --append="console=ttyS0,115200n8" user --name nemo --groups audio,video --password nemo

repo --name=mer-core --baseurl= --save --debuginfo repo --name=ce-adaptation-x86-generic --baseurl= --save repo --name=ce-apps --baseurl= --save repo --name=ce-mw-shared --baseurl= --save repo --name=ce-ux-mtf --baseurl= --save repo --name=mer-tools --baseurl= --save repo --name=testing-tools --baseurl= --save repo --name=qa-tools --baseurl= --save

%packages @Intel x86 VM Support @Mer Minimal Xorg @Nemo Middleware Shared @Nemo Apps @MTF Handset UX @Mer Graphics Common @Mer Minimal Xorg @Mer Connectivity @Mer Core


openssh-clients openssh-server ce-backgrounds plymouth-lite vim-enhanced xorg-x11-drv-vesa testrunner-lite testrunner-lite-hwinfo-meego eat-device blts-x11-tests %end


  1. Hack to fix the plymouth based splash screen on N900

mv /usr/bin/ply-image /usr/bin/ply-image-real cat > /usr/bin/ply-image << EOF

  1. !/bin/sh

echo 32 > /sys/class/graphics/fb0/bits_per_pixel exec /usr/bin/ply-image-real $@ EOF chmod +x /usr/bin/ply-image

  1. Set symlink pointing to .desktop file

ln -sf X-MEEGO-HS.desktop /usr/share/xsessions/default.desktop

    1. from mer-kickstarter-configs package
  1. Rebuild db using target's rpm

echo -n "Rebuilding db using target rpm.." rm -f /var/lib/rpm/__db* rpm --rebuilddb echo "done"

    1. end
    1. from mer-kickstarter-configs package
  1. Prelink can reduce boot time

if [ -x /usr/sbin/prelink ]; then

  echo -n "Running prelink.."
  /usr/sbin/prelink -aRqm
  echo "done"


    1. end

su -c /usr/bin/eat-add-device-key root su -c /usr/bin/eat-add-device-key nemo %end

%post --nochroot if [ -n "$IMG_NAME" ]; then

   echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release



Personal tools