]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agolinux-yocto/4.9: -stable update to v4.9.2
Bruce Ashfield [Mon, 9 Jan 2017 15:09:48 +0000 (10:09 -0500)]
linux-yocto/4.9: -stable update to v4.9.2

The shortlog of changes follows:

   6f2fabab8d63 Linux 4.9.2
   8ed8791885aa drm/i915: Fix setting of boost freq tunable
   18a00ac6d7f1 drm/i915: skip the first 4k of stolen memory on everything >= gen8
   639641105443 drm/i915: Initialize dev_priv->atomic_cdclk_freq at init time
   159e2ea9ed49 drm/i915: Fix cdclk vs. dev_cdclk mess when not recomputing things
   d816da6f5766 drm/i915/dsi: Do not clear DPOUNIT_CLOCK_GATE_DISABLE from vlv_init_display_clock_gating
   6cb4179f97cf drm/i915/dsi: Fix chv_exec_gpio disabling the GPIOs it is setting
   2037b1b46cdb net: mvpp2: fix dma unmapping of TX buffers for fragments
   3f3a6bbe6f9f sg_write()/bsg_write() is not fit to be called under KERNEL_DS
   d024532a97db kconfig/nconf: Fix hang when editing symbol with a long prompt
   173fd37a3d21 target/user: Fix use-after-free of tcmu_cmds if they are expired
   630a2ef354bb libnvdimm, pfn: fix align attribute
   6838ac125324 of, numa: Return NUMA_NO_NODE from disable of_node_to_nid() if nid not possible.
   d5cf5ae25c95 powerpc/boot: Request no dynamic linker for boot wrapper
   efcb3d9442ff powerpc/ps3: Fix system hang with GCC 5 builds
   4b23132d6cf5 powerpc/64e: Convert cmpi to cmpwi in head_64.S
   369b330c9d82 SUNRPC: fix refcounting problems with auth_gss messages.
   ba15defe1807 pNFS: Fix a deadlock between read resends and layoutreturn
   e523ce8c99f9 pNFS: Clear NFS_LAYOUT_RETURN_REQUESTED when invalidating the layout stateid
   f32659df6e15 pNFS: Don't clear the layout stateid if a layout return is outstanding
   24b049fa0cd9 pNFS: On error, do not send LAYOUTGET until the LAYOUTRETURN has completed
   b775b86a5fe8 nfs_write_end(): fix handling of short copies
   fc6cb9c303e2 libceph: verify authorize reply on connect
   d8c34b0cc0be PCI: Check for PME in targeted sleep state
   7cc603e9a828 i40iw: Use correct src address in memcpy to rdma stats counters
   6195cd1a9628 bad_inode: add missing i_op initializers
   afd2a1994ea4 Input: drv260x - fix input device's parent assignment
   e5d92c0c84f3 v4l: tvp5150: Add missing break in set control handler
   7f89c1373637 media: solo6x10: fix lockup by avoiding delayed register write
   3fbe140e9d36 s5p-mfc: fix failure path of s5p_mfc_alloc_memdev()
   9fd64b830259 mn88473: fix chip id check on probe
   eb9afff9513d mn88472: fix chip id check on probe
   9aff8b170fe0 IB/cma: Fix a race condition in iboe_addr_get_sgid()
   476ed812c42d IB/rxe: Fix a memory leak in rxe_qp_cleanup()
   5984423bf7eb IB/multicast: Check ib_find_pkey() return value
   4187dfa67fa9 IPoIB: Avoid reading an uninitialized member variable
   382072e09f19 IB/mad: Fix an array index check
   239b40eb6189 fgraph: Handle a case where a tracer ignores set_graph_notrace
   a035dc674dd4 x86/smpboot: Make logical package management more robust
   3168762e8ad3 platform/x86: asus-nb-wmi.c: Add X45U quirk
   21be088c36c6 ftrace/x86_32: Set ftrace_stub to weak to prevent gcc from using short jumps to it
   e80ceb2da52e vsock/virtio: fix src/dst cid format
   d06485e0fcf5 fsnotify: Fix possible use-after-free in inode iteration on umount
   3f618a0b872f kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
   94107133ae81 KVM: PPC: Book3S HV: Don't lose hardware R/C bit updates in H_PROTECT
   75b1053c2b8c KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state
   483eeca2cf38 scsi: aacraid: remove wildcard for series 9 controllers
   8beb252f2be2 md/raid5: limit request size according to implementation limits
   a0357979d620 sc16is7xx: Drop bogus use of IRQF_ONESHOT
   7d5ec9eb3eea latent_entropy: fix ARM build error on earlier gcc
   959e95305f13 arm64: KVM: pmu: Reset PMSELR_EL0.SEL to a sane value before entering the guest
   111e0ccaf979 s390/kexec: use node 0 when re-adding crash kernel memory
   53bbee3348d8 s390/vmlogrdr: fix IUCV buffer allocation
   b3854cefe3d2 firmware: fix usermode helper fallback loading
   ce7ec3d7526c ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
   9d33a3995667 scsi: avoid a permanent stop of the scsi device's request queue
   2a940b853ef6 scsi: zfcp: fix rport unblock race with LUN recovery
   744807cb251f scsi: zfcp: do not trace pure benign residual HBA responses at default level
   2ce34d9da427 scsi: zfcp: fix use-after-"free" in FC ingress path after TMF
   8032a30081c1 iscsi-target: Return error if unable to add network portal
   113783ec1cdb scsi: megaraid_sas: Do not set MPI2_TYPE_CUDA for JBOD FP path for FW which does not support JBOD sequence map
   6089f8712dcb scsi: megaraid_sas: For SRIOV enabled firmware, ensure VF driver waits for 30secs before reset
   2d2914349286 stm class: Fix device leak in open error path
   fbb28e76454f vt: fix Scroll Lock LED trigger name
   11aa5c10102a block: protect iterate_bdevs() against concurrent close
   09c154920e77 mei: me: add lewisburg device ids
   0814c3ede27a mei: request async autosuspend at the end of enumeration
   66469319c01a drivers/gpu/drm/ast: Fix infinite loop if read fails
   8dbd6f709e62 drm/amdgpu: fix init save/restore list in gfx_v8.0
   f2d3d7f84cdf drm/amdgpu: fix enable_cp_power_gating in gfx_v8.0.
   326760ba1802 drm/amd/powerplay: bypass fan table setup if no fan connected
   aa286e88fd91 drm/gma500: Add compat ioctl
   6187f21f8c97 drm/radeon/si: load the proper firmware on 0x87 oland boards
   851bedd86b95 drm/radeon: add additional pci revision to dpm workaround
   126f676b087d drm/radeon: Hide the HW cursor while it's out of bounds
   45ec673dfe0f drm/radeon: Also call cursor_move_locked when the cursor size changes
   9195157f7d03 drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex
   64a5c4725fd3 drm/nouveau/i2c/gk110b,gm10x: use the correct implementation
   bfa563bae251 drm/nouveau/ttm: wait for bo fence to signal before unmapping vmas
   a5b4c77c92da drm/nouveau/ltc: protect clearing of comptags with mutex
   d95ef8af5425 drm/nouveau/bios: require checksum to match for fast acpi shadow method
   2c256b8e81bf drm/nouveau/kms: lvds panel strap moved again on maxwell
   42e5fd6bce5b drm/nouveau/gr: fallback to legacy paths during firmware lookup
   c2a51dd3138d drm/amd/amdgpu: enable GUI idle INT after enabling CGCG
   8e1b86f30bc1 drm/amdgpu: Also call cursor_move_locked when the cursor size changes
   2cea21516231 drm/amdgpu: Store CRTC relative amdgpu_crtc->cursor_x/y values
   eb0d743b4188 drm/amdgpu: add additional pci revision to dpm workaround
   f3dd47e0f683 drm/amdgpu/si: load the proper firmware on 0x87 oland boards
   a04465251f94 ACPI / video: Add force_native quirk for HP Pavilion dv6
   6d46601e6564 ACPI / video: Add force_native quirk for Dell XPS 17 L702X
   745f7d0d1951 staging: comedi: ni_mio_common: fix E series ni_ai_insn_read() data
   bd1692bed615 staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask
   3b2f287b7795 staging: lustre: ldlm: pl_recalc time handling is wrong
   38b2dc0b0f38 staging/lustre/osc: Revert erroneous list_for_each_entry_safe use
   bf6a9b31e8a9 hv: acquire vmbus_connection.channel_mutex in vmbus_free_channels()
   5bd6ccd9c95f docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
   fab303ba78ee thermal: hwmon: Properly report critical temperature in sysfs
   05bc2071b11b clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk
   b6d666315b99 arm64: tegra: Add VDD_GPU regulator to Jetson TX1
   5f654078b760 gpio: chardev: Return error for seek operations
   acd0993f8e97 gpio: stmpe: fix interrupt handling bug
   ca22975afa14 timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion
   efd16f76f4da mmc: sd: Meet alignment requirements for raw_ssr DMA
   dbcde92b1b44 regulator: stw481x-vmmc: fix ages old enable error
   cee935845420 mmc: sdhci: Fix recovery from tuning timeout
   5bb425033ef1 Revert "mmc: sdhci: Reset cmd and data circuits after tuning failure"
   71717a3ef900 ath9k: do not return early to fix rcu unlocking
   de5d62f892c3 ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.
   072ebf89ca23 ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success
   1976c7689a58 cfg80211/mac80211: fix BSS leaks when abandoning assoc attempts
   3f23f7f21ac5 rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
   19d55b9f32b6 perf/x86/intel/cstate: Prevent hotplug callback leak
   ba12b35fbd69 perf annotate: Don't throw error for zero length symbols
   54fa190d0a54 perf/x86: Fix exclusion of BTS and LBR for Goldmont
   98068574928f rtlwifi: Fix enter/exit power_save
   ea23fca0c600 ath10k: fix soft lockup during firmware crash/hw-restart
   b8425f413466 ssb: Fix error routine when fallback SPROM fails
   6437abdb624e Linux 4.9.1
   705df55bd0cf x86/kbuild: enable modversions for symbols exported from asm
   c728f2b5edf2 builddeb: fix cross-building to arm64 producing host-arch debs
   e12096297ea5 xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
   c11a13d6f527 xfs: fix up xfs_swap_extent_forks inline extent handling
   e67053ad4840 arm/xen: Use alloc_percpu rather than __alloc_percpu
   45394bf3e11e xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing
   b7bbf06c21aa tpm xen: Remove bogus tpm_chip_unregister
   f726f4f411f9 kernel/debug/debug_core.c: more properly delay for secondary CPUs
   9b78d6905424 watchdog: qcom: fix kernel panic due to external abort on non-linefetch
   2eccf0e0bcb1 watchdog: mei_wdt: request stop on reboot to prevent false positive event
   36b08b819713 kernel/watchdog: use nmi registers snapshot in hardlockup handler
   c954acc0007b CIFS: Fix a possible memory corruption in push locks
   9f9d98246e5f CIFS: Decrease verbosity of ioctl call
   46890ffba1d6 CIFS: Fix a possible double locking of mutex during reconnect
   69d13b69e79c CIFS: Fix missing nls unload in smb2_reconnect()
   48f9526f4dcb CIFS: Fix a possible memory corruption during reconnect
   7aa58e7ad53b cifs: Fix smbencrypt() to stop pointing a scatterlist at the stack
   41c856b32900 ASoC: intel: Fix crash at suspend/resume without card registration
   f5dca4881fac dm space map metadata: fix 'struct sm_metadata' leak on failed create
   461f272954cf dm raid: fix discard support regression
   e362c317ba76 dm rq: fix a race condition in rq_completed()
   2c017f77e13d dm crypt: mark key as invalid until properly loaded
   3fae2a9e994b dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
   e74fb822281e dm table: an 'all_blk_mq' table must be loaded for a blk-mq DM device
   470b6910f7c1 dm table: fix 'all_blk_mq' inconsistency when an empty table is loaded
   67b0069a5175 blk-mq: Do not invoke .queue_rq() for a stopped queue
   7ac62bcde2d4 PM / OPP: Don't use OPP structure outside of rcu protected section
   c7a8a0ac8fee PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()
   eab1c4e2d0ad usb: gadget: composite: always set ep->mult to a sensible value
   44919a2ac4c6 mm, page_alloc: keep pcp count and list contents in sync if struct page is corrupted
   04597beae7c2 mm/vmscan.c: set correct defer count for shrinker
   fe3d462821b0 nvmet: Fix possible infinite loop triggered on hot namespace removal
   890c39d35eb0 loop: return proper error from loop_queue_rq()
   01e15b3328c4 f2fs: fix to determine start_cp_addr by sbi->cur_cp_pack
   027611ef345d f2fs: fix overflow due to condition check order
   1134ef11ffff f2fs: set ->owner for debugfs status file's file_operations
   a43e1c459a3d Revert "f2fs: use percpu_counter for # of dirty pages in inode"
   9abce3ca80a7 ext4: do not perform data journaling when data is encrypted
   acf3efd6f003 ext4: return -ENOMEM instead of success
   3e4f8da9d177 ext4: reject inodes with negative size
   8084f57bc468 ext4: add sanity checking to count_overhead()
   956e2a0e6779 ext4: fix in-superblock mount options processing
   01772f4683a9 ext4: use more strict checks for inodes_per_block on mount
   b493c715cdce ext4: fix stack memory corruption with 64k block size
   c3881abae6e7 ext4: fix mballoc breakage with 64k block size
   24d1251a5d83 ext4: don't lock buffer in ext4_commit_super if holding spinlock
   21cc91554c3d crypto: caam - fix AEAD givenc descriptors
   e71b4e061c96 ptrace: Don't allow accessing an undumpable mm
   e747b4ae3b6b ptrace: Capture the ptracer's creds not PT_PTRACE_CAP
   48466c4772d2 vfs,mm: fix return value of read() at s_maxbytes
   694a95fa6dae mm: Add a user_ns owner to mm_struct and fix ptrace permission checks
   cfa2d65b2622 block_dev: don't test bdev->bd_contains when it is not stable
   b6cce9b8e813 splice: reinstate SIGPIPE/EPIPE handling
   c1df5a63716b fs: exec: apply CLOEXEC before changing dumpable task flags
   21245b8635e8 exec: Ensure mm->user_ns contains the execed files
   0de98eef9c11 clk: ti: omap36xx: Work around sprz319 advisory 2.1
   0ce4f00087b4 ALSA: hda: when comparing pin configurations, ignore assoc in addition to seq
   e029ef3a9c82 ALSA: hda - Gate the mic jack on HP Z1 Gen3 AiO
   0119d5d44034 ALSA: hda - fix headset-mic problem on a Dell laptop
   37b7c5db5a30 ALSA: hda - ignore the assoc and seq when comparing pin configurations
   0f1047be4a9f ALSA: hda/ca0132 - Add quirk for Alienware 15 R2 2016
   fa2e770f88bc ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
   205d3de9637f ALSA: usb-audio: Add QuickCam Communicate Deluxe/S7500 to volume_control_quirks
   77bd73ce21fa usbip: vudc: fix: Clear already_seen flag also for ep0
   420f170ce1ba USB: UHCI: report non-PME wakeup signalling for Intel hardware
   e0aa5ec40d6e usb: gadget: composite: correctly initialize ep->maxpacket
   5180169dae85 usb: gadget: f_uac2: fix error handling at afunc_bind
   eab169397ad6 usb: core: usbport: Use proper LED API to fix potential crash
   32a35351b7ec usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
   3666b6280351 usb: dwc3: gadget: set PCM1 field of isochronous-first TRBs
   20d7c1a68b5b USB: cdc-acm: add device id for GW Instek AFG-125
   c094cd32b0c7 USB: serial: kl5kusb105: fix open error path
   5e7c90bd53c6 USB: serial: option: add dlink dwm-158
   142513d6dc7c USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041
   1a5ec7dd17a9 Btrfs: fix qgroup rescan worker initialization
   a1e0e0476afb Btrfs: fix emptiness check for dirtied extent buffers at check_leaf()
   c01ea880e88a btrfs: store and load values of stripes_min/stripes_max in balance status item
   01f285fe1d88 Btrfs: fix relocation incorrectly dropping data references
   26dc52465f0d Btrfs: fix tree search logic when replaying directory entry deletes
   664b053c5363 Btrfs: fix deadlock caused by fsync when logging directory entries
   7d470f04e36c Btrfs: fix BUG_ON in btrfs_mark_buffer_dirty
   3bac322e18c3 btrfs: limit async_work allocation and worker func duration
   56eaecc8ecf3 hotplug: Make register and unregister notifier API symmetric

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-yocto: firewire and audio configuration updates
Bruce Ashfield [Sat, 7 Jan 2017 02:48:19 +0000 (21:48 -0500)]
kernel-yocto: firewire and audio configuration updates

Integrating firewire and audio configuration updates from Jussi:

    Add support for IEEE-1394 (Firewire)

    Adds support for IEEE-1394 aka Firewire bus and some commonly used
    devices.

Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>
    Update audio support

    Updates audio support to work with modern audio hardware while
    dropping some legacy parts.

Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>
Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.4/4.8/4.9: netfilter: iptables: enable NAT tables
Bruce Ashfield [Fri, 30 Dec 2016 03:38:07 +0000 (22:38 -0500)]
linux-yocto/4.4/4.8/4.9: netfilter: iptables: enable NAT tables

This changes adds 'nat' table in iptables. The netfilter side
is already configured for NAT but iptables config was missing.

Further, CONFIG_IP_NF_TARGET* configured below depend on
CONFIG_IP_NF_NAT but remain disabled unless CONFIG_IP_NF_NAT
is explicitly enabled.

CONFIG_IP_NF_TARGET_MASQUERADE is needed by Connman to
support tethering.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-yocto: tiny features aka Link Time Optimization
Bruce Ashfield [Tue, 27 Dec 2016 03:39:11 +0000 (22:39 -0500)]
kernel-yocto: tiny features aka Link Time Optimization

Integrating the following patches for the 4.4/4.8 and 4.9
kernel to enable LTO for linux-yocto-tiny configurations
(i.e. poky-tiny).

b9735c0b4235 intel-quark: Remove support for serial-all
ce02da2e7833 features/usb/serial: Add new usb serial feature
f5b00d3a7e68 soc/x1000: Remove 'default policy' features
ca2dc186ff32 soc/x1000: Remove unnecessary features
90061752cbb5 soc/x1000: Remove bsp/common-pc/*
00b26ed213c4 meta/intel-common: Have intel-quark-tiny use common-drivers-32-essential
7ce24a2c497b meta/intel-common: Add intel-common-drivers-32-essential feature
ef711e0ab70e meta: Add lto-debug feature
1ca570817bf3 meta: Add lto-disable feature
45e5c2e9118e meta: Add lto (Link-Time Optimization) enablement feature

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto-rt/4.9: add -rt specific patches
Bruce Ashfield [Mon, 26 Dec 2016 02:44:30 +0000 (21:44 -0500)]
linux-yocto-rt/4.9: add -rt specific patches

The 4.9-rt kernel has been released, and this commit integrates
the 286 patches in that series.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel: introduce linux-yocto v4.9 recipes
Bruce Ashfield [Thu, 22 Dec 2016 14:49:20 +0000 (09:49 -0500)]
kernel: introduce linux-yocto v4.9 recipes

Introducing the 4.9 kernel recipes. 4.9 will be a LTSI kernel, so we
introduce these recipes with the intent that they'll replace 4.1 as
the LTSI kernel, and other older kernels (i.e 4.4/4.8)  once 4.9
shown to be stable.

linux-yocto-tiny and linux-yocto-rt are also part of this commit, but
are placeholders while we wait for their content to be available. They
will build, but provide nothing above the standard kernel at the
moment.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: Upgrade to 2.7.1
Aníbal Limón [Fri, 20 Jan 2017 22:15:57 +0000 (16:15 -0600)]
qemu: Upgrade to 2.7.1

Minor upgrade contains fixes from 2.7.0.

Removed patches (already in upstream):

- 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
- 0001-virtio-zero-vq-inuse-in-virtio_reset.patch
- 0002-fix-CVE-2016-7423.patch

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/selftest: Adds test case for sdk-update eSDK
Francisco Pedraza [Wed, 18 Jan 2017 02:09:02 +0000 (20:09 -0600)]
oeqa/selftest: Adds test case for sdk-update eSDK

1. Test case adds perl recipe before build eSDK.
2. After this added recipe, the script verifies the update:

    ${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh
    oe-publish-sdk [esdk] [path-to-http]
    CORE_IMAGE_EXTRA_INSTALL = "perl"
    bitbake -c populate-sdk-ext [some-image]
    devtool sdk-update

This should fix [YOCTO #9369]

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: automatically add the meta-selftest layer
Benjamin Esquivel [Thu, 19 Jan 2017 15:55:52 +0000 (15:55 +0000)]
selftest: automatically add the meta-selftest layer

adding the meta-selftest layer is a small bump you always encounter
when you want to run selftest. Adding an automatic procedure to include
the layer if it is not yet present.

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-firmware: relocate ath9k_htc blobs to correct package
Saul Wold [Thu, 19 Jan 2017 17:42:47 +0000 (09:42 -0800)]
linux-firmware: relocate ath9k_htc blobs to correct package

The newer firmware blobs were versioned and landing in the default
package so move them to their appropriately named package.

[YOCTO #10942]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocreate-pull-request: fix for OE cgit URL change
Paul Eggleton [Thu, 19 Jan 2017 20:37:08 +0000 (09:37 +1300)]
create-pull-request: fix for OE cgit URL change

The /cgit.cgi/ part is no longer valid in cgit URLs on
git.openembedded.org as of recent infrastructure changes.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: check locale and refuse to start if it isn't UTF-8
Paul Eggleton [Thu, 19 Jan 2017 20:36:00 +0000 (09:36 +1300)]
devtool: check locale and refuse to start if it isn't UTF-8

We need to ensure the locale is UTF-8 or otherwise strange errors will
occur later on during execution - the same reason we check this in
BitBake itself. Unfortunately this check has to be before command line
parsing and therefore showing the help text in response to --help, since
that relies upon parsing bitbake's configuration (as we need to load
plugins in other layers).

Fixes [YOCTO #10908].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemuboot.bbclass: add blank lines in comments
Robert Yang [Tue, 6 Dec 2016 08:33:22 +0000 (00:33 -0800)]
qemuboot.bbclass: add blank lines in comments

Add blank lines in comments to make it easy for readind and updating.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
8 years agorunqemu: fixes for slirp, network device and hostfwd
Robert Yang [Tue, 29 Nov 2016 06:02:05 +0000 (22:02 -0800)]
runqemu: fixes for slirp, network device and hostfwd

Fixed:
- Add QB_NETWORK_DEVICE to set network device, it will be used by both
  slirp and tap.
- Set QB_NETWORK_DEVICE to "-device virtio-net-pci" in qemuboot.bbclass
  but runqemu will default to "-device e1000" when QB_NETWORK_DEVICE is
  not set, this is because oe-core's qemu targets support
  virtio-net-pci, but the one outside of oe-core may not,
  "-device e1000" is more common.
- Set hostfwd by default: 2222 -> 22, 2323 -> 23, and it will choose a
  usable port when the one like 222 is being used. This can avoid
  conflicts when multilib slirp qemus are running. We can forward more
  ports by default if needed, and bsp.conf can custom it.
- Use different mac sections for slirp and tap to fix conflicts when
  running both of them on the same host.

[YOCTO #7887]

CC: Nathan Rossi <nathan@nathanrossi.com>
CC: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
8 years agorunqemu: support multiple qemus running when nfs
Robert Yang [Wed, 23 Nov 2016 08:57:39 +0000 (00:57 -0800)]
runqemu: support multiple qemus running when nfs

Fixed:
* In build1:
  $ runqemu nfs qemux86-64
  In build2:
  $ runqemu nfs qemux86-64

  It would fail before since the port numerbs and conf files are
  conflicted, now make runqemu-export-rootfs work together with runqemu to
  fix the problem.

* And we don't need export PSEUDO_LOCALSTATEDIR in runqemu, the
  runqemu-export-rootfs can handle it well based on NFS_EXPORT_DIR.

* Remove "async" option from unfsd to fix warning in syslog:
  Warning: unknown exports option `async' ignored

* Fixed typos

Both slirp and tap can work.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
8 years agou-boot: Update to 2017.01 release
Marek Vasut [Thu, 19 Jan 2017 15:21:51 +0000 (16:21 +0100)]
u-boot: Update to 2017.01 release

Upgrade U-Boot to the latest version.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_manager: default to have scriptlet output captured in log
Chen Qi [Fri, 23 Dec 2016 02:59:21 +0000 (10:59 +0800)]
package_manager: default to have scriptlet output captured in log

We need to have scriptlet output captured in log. If we don't do so,
some useful information from scriptlets (especially postinstall script)
would be missing. In case a script has a warning message but it does not
necessarily have to fail, the message should be captured.

Opkg has already done that. Change for rpm and dpkg so that scriptlet
output is captured and no warning message is missing.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-compare: derive PV from SRCPV
Joe Slater [Wed, 18 Jan 2017 22:07:01 +0000 (14:07 -0800)]
build-compare: derive PV from SRCPV

Currently, PV is "git" and contains no version information.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglibc: Upgrade to 2.25 snapshot
Khem Raj [Thu, 12 Jan 2017 20:20:50 +0000 (12:20 -0800)]
glibc: Upgrade to 2.25 snapshot

glibc 2.25 release is in freeze stage now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: store measurements as a dict (object) in the JSON report
Markus Lehtonen [Thu, 19 Jan 2017 10:16:45 +0000 (12:16 +0200)]
oeqa.buildperf: store measurements as a dict (object) in the JSON report

Store measurements as a dict, instead of an array, in the JSON report.
This change makes traversing of the report much easier. The change also
disallows identically named measurements under one test, as a sanity
check for the test cases.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: change sorting in json report
Markus Lehtonen [Fri, 13 Jan 2017 14:00:37 +0000 (16:00 +0200)]
oeqa.buildperf: change sorting in json report

Use OrderedDict() instead of sort_keys=True (of json.dump()). Makes for
more logical sorting of the values in the report.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: remove unused imports and fix indent
Markus Lehtonen [Wed, 28 Dec 2016 15:04:02 +0000 (17:04 +0200)]
oe-build-perf-test: remove unused imports and fix indent

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: save test metadata in a separate file
Markus Lehtonen [Wed, 28 Dec 2016 14:01:21 +0000 (16:01 +0200)]
oe-build-perf-test: save test metadata in a separate file

The patch introduces a new metadata (.json or .xml) file in the output
directory. All test meta data, e.g. git revision information and tester
host information is now stored there. The JSON report format is slightly
changed as the metadata is not present in results.json anymore.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: report results in chronological order
Markus Lehtonen [Wed, 23 Nov 2016 09:58:21 +0000 (11:58 +0200)]
oeqa.buildperf: report results in chronological order

Write results in the report file in chronological order, instead of
random order dependent on test statuses.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: extend xml report format with test description
Markus Lehtonen [Mon, 14 Nov 2016 10:54:06 +0000 (12:54 +0200)]
oeqa.buildperf: extend xml report format with test description

Add test description as an attribute to the <testcase> element.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: extend xml format to contain measurement data
Markus Lehtonen [Fri, 28 Oct 2016 07:19:45 +0000 (10:19 +0300)]
oeqa.buildperf: extend xml format to contain measurement data

Make the xml report format slightly non-standard by incorporating
measurement data into it.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: enable xml reporting
Markus Lehtonen [Thu, 27 Oct 2016 14:52:37 +0000 (17:52 +0300)]
oe-build-perf-test: enable xml reporting

Add --xml command line option to oe-build-perf-test script for producing
a test report in JUnit XML format instead of JSON.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: include error details in json report
Markus Lehtonen [Thu, 3 Nov 2016 08:41:34 +0000 (10:41 +0200)]
oeqa.buildperf: include error details in json report

This will typically mean assert message and exception type plus a
traceback. In case of skipped tests the reason (i.e. skip message) is
included.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: sync test status names with JUnit
Markus Lehtonen [Thu, 27 Oct 2016 17:07:14 +0000 (20:07 +0300)]
oeqa.buildperf: sync test status names with JUnit

Use 'failure' instead of 'fail'. Also, use 'expected' instead of 'exp'.

[YOCTO #10590]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: prevent a crash on unexpected success
Markus Lehtonen [Thu, 27 Oct 2016 15:20:46 +0000 (18:20 +0300)]
oeqa.buildperf: prevent a crash on unexpected success

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokern-tools: kconf_check: flag CONFIG options with invalid spaces
Bruce Ashfield [Sun, 15 Jan 2017 00:20:21 +0000 (19:20 -0500)]
kern-tools: kconf_check: flag CONFIG options with invalid spaces

Options with spacs around = signs will be droped/ignored by the
kernel.

The audit phase can detect this and warn the user:

    % kconf_check --report -o .kernel-meta/cfg/ \
      linux-qemux86-standard-build/.config `pwd` $cfgs

     [errors (3): .kernel-meta/cfg/fragment_errors.txt
       There are errors withing the config fragments.

    % cat .kernel-meta/cfg/fragment_errors.txt
       Warning: Ignoring "CONFIG_PARAVIRTT_CLOCK =y" -- spaces around equals are invalid
       Warning: Ignoring "CONFIG_PARAVIRTTT_CLOCK = y" -- spaces around equals are invalid
       Warning: Ignoring "CONFIG_PARAVIRTTTT_CLOCK= y" -- spaces around equals are invalid

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokern-tools: scc: Fix process_file error check
Bruce Ashfield [Fri, 13 Jan 2017 20:40:38 +0000 (15:40 -0500)]
kern-tools: scc: Fix process_file error check

    Commit 626ceac135fa66277c2fa53197be33cc9d4d7614 broke the error
    check in process_file by adding in three lines that stomp on $? which
    print the output file when verbose is set.

    Move output file on verbose print to an elif after the error check.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: refresh the flock patch
Maxin B. John [Tue, 17 Jan 2017 16:20:34 +0000 (18:20 +0200)]
busybox: refresh the flock patch

Upstream accepted the flock fix with some improvements. Backport those
changes.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoalsa-tools: 1.1.0 -> 1.1.3
Tanu Kaskinen [Fri, 20 Jan 2017 09:26:28 +0000 (11:26 +0200)]
alsa-tools: 1.1.0 -> 1.1.3

Drop 0001-Cus428Midi-Explicitly-cast-constant-to-char-type.patch,
because the new release has an equivalent fix (and that's actually the
only change in the new release).

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoalsa-utils(-scripts): fix compile on build machines with python-docutils installed
Andreas Müller [Wed, 4 Jan 2017 17:55:54 +0000 (18:55 +0100)]
alsa-utils(-scripts): fix compile on build machines with python-docutils installed

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoalsa-utils-scripts: update 1.1.2 -> 1.1.3
Andreas Müller [Sun, 1 Jan 2017 19:53:13 +0000 (20:53 +0100)]
alsa-utils-scripts: update 1.1.2 -> 1.1.3

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoalsa-utils: update 1.1.2 -> 1.1.3
Andreas Müller [Sun, 1 Jan 2017 19:53:12 +0000 (20:53 +0100)]
alsa-utils: update 1.1.2 -> 1.1.3

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoflac: 1.3.1 -> 1.3.2
Tanu Kaskinen [Fri, 20 Jan 2017 09:26:29 +0000 (11:26 +0200)]
flac: 1.3.1 -> 1.3.2

Changelog: https://xiph.org/flac/changelog.html

The license checksum changes are due to simple copyright year updates.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3: Add upstream random.c fixes for recent glibc
Richard Purdie [Sun, 22 Jan 2017 11:17:26 +0000 (11:17 +0000)]
python3: Add upstream random.c fixes for recent glibc

python3 fails to work with recent glibc versions on older hosts, giving
errors like:

Fatal Python error: getentropy() failed
Aborted

This breaks buildtools-tarball and hence eSDK. This patch backports the
changes to random.c from upstream that address the problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/runtime-test.py: Adapt test to use new runtime framework
Mariano Lopez [Thu, 19 Jan 2017 12:38:06 +0000 (12:38 +0000)]
selftest/runtime-test.py: Adapt test to use new runtime framework

This adapt the current runtime selftest to use the new runtime
framework.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agotestexport.bbclass: Migrate testexport to use new framework
Mariano Lopez [Wed, 18 Jan 2017 13:23:59 +0000 (13:23 +0000)]
testexport.bbclass: Migrate testexport to use new framework

This migrates current testexport implmentation to use the
new OEQA framework.

[YOCTO #10686]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime/context.py: Add defaults for runtime context
Mariano Lopez [Wed, 18 Jan 2017 13:19:52 +0000 (13:19 +0000)]
oeqa/runtime/context.py: Add defaults for runtime context

This adds default values to OERuntimeTestContextExecutor class in
order to make easier the execution of exported test that were
generated with testexport class.

[YOCTO #10686]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agotestimage.bbclass: Add package install feature
Mariano Lopez [Fri, 13 Jan 2017 10:47:53 +0000 (10:47 +0000)]
testimage.bbclass: Add package install feature

This allows to use the package install feature with
the new OEQA framework.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agotestimage.bbclass: Add support for package extraction
Mariano Lopez [Mon, 9 Jan 2017 14:49:57 +0000 (14:49 +0000)]
testimage.bbclass: Add support for package extraction

testimage support the installation of packages without a package
manager in the target. This adds support for package extraction
required to support the installation feature.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/utils/test.py: Add functions to get module path
Mariano Lopez [Mon, 9 Jan 2017 14:42:48 +0000 (14:42 +0000)]
oeqa/core/utils/test.py: Add functions to get module path

This will add functions to get module file path from a test
case or a complete suite.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agoruntime/cases/smart.py: Migrate smart tests
Mariano Lopez [Tue, 3 Jan 2017 08:18:00 +0000 (08:18 +0000)]
runtime/cases/smart.py: Migrate smart tests

This migrates the smart test from the old framework to
the new one. This has its own commit because smart
test was using bb and oe libraries that are available
when exporting the test cases to run in a different host.

Because of the removal of bb and oe libraries index and
packages feeds creation will be managed in testimage bbclass.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime/cases: Migrate runtime tests.
Mariano Lopez [Tue, 1 Nov 2016 07:48:16 +0000 (07:48 +0000)]
oeqa/runtime/cases: Migrate runtime tests.

This migrates current runtime test suite to be used with the new framework.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agotestimage.bbclass: Migrate class to use new runtime framework
Mariano Lopez [Thu, 5 Jan 2017 13:33:07 +0000 (13:33 +0000)]
testimage.bbclass: Migrate class to use new runtime framework

This migrates testimage class to use the new framework. Most of
the code added here is to get rid off the data store dependency.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agocore/target/qemu.py Adds qemu target
Mariano Lopez [Tue, 3 Jan 2017 13:58:36 +0000 (13:58 +0000)]
core/target/qemu.py Adds qemu target

This adds qemu target to be used in testimage.
It uses the current QemuRunner class in order
to boot and control qemu.

[YOCTO #10231]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime/context.py: Add logger to getTarget
Mariano Lopez [Wed, 21 Dec 2016 13:08:25 +0000 (13:08 +0000)]
oeqa/runtime/context.py: Add logger to getTarget

Current targets (ssh and qemu) require a logger in their
constructors, so in order to get a new target we need
to provide the logger.

[YOCTO #10686]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime/context.py: Prepare for qemu
Aníbal Limón [Tue, 3 Jan 2017 12:51:12 +0000 (12:51 +0000)]
oeqa/runtime/context.py: Prepare for qemu

This commit will prepare context to use qemu and not just
simpleremote.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class
Aníbal Limón [Mon, 5 Dec 2016 17:43:21 +0000 (11:43 -0600)]
oeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class

To avoid getVar calls inside a utils module, also moves
get_host_dumper import inside testexport isn't needed.

[YOCTO #10231]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/runtime/context: Move helper functions for process args to executor
Aníbal Limón [Fri, 2 Dec 2016 20:57:09 +0000 (14:57 -0600)]
oeqa/runtime/context: Move helper functions for process args to executor

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/runtime/context: Add runtime option group and options for target type and server ip.
Aníbal Limón [Fri, 2 Dec 2016 20:47:33 +0000 (14:47 -0600)]
oeqa/runtime/context: Add runtime option group and options for target type and server ip.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/core/context: Add option to select tests to run
Mariano Lopez [Tue, 13 Dec 2016 12:27:52 +0000 (12:27 +0000)]
oeqa/core/context: Add option to select tests to run

This add the option to select what tests to run in the
<module>[.<class>[.<test>]] format.

Currently it just support modules

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/decorator: Add skipIfNotDataVar and skipIfNotInDataVar
Mariano Lopez [Mon, 12 Dec 2016 10:12:15 +0000 (10:12 +0000)]
oeqa/core/decorator: Add skipIfNotDataVar and skipIfNotInDataVar

skipIfNotDataVar will skip a test if a variable doesn't have certain value.

skipIfNotInDataVar will skip a test if a value is not in a certain variable.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line
Mariano Lopez [Wed, 7 Dec 2016 13:41:39 +0000 (13:41 +0000)]
oeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime/files: Move runtime files from old directory
Mariano Lopez [Wed, 7 Dec 2016 13:35:43 +0000 (13:35 +0000)]
oeqa/runtime/files: Move runtime files from old directory

As part of the refactor we require to move the files used
in runtime testing to the new directory. This also adds
the path to the runtime test context.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/decorator/data.py: Add skipIfNotFeature decorator
Mariano Lopez [Fri, 2 Dec 2016 22:05:44 +0000 (16:05 -0600)]
oeqa/core/decorator/data.py: Add skipIfNotFeature decorator

This adds a new decorator to check if image under tests has
certain DISTRO_FEATURE or IMAGE_FEATURE.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime: Add OEHasPackage decorator
Mariano Lopez [Wed, 2 Nov 2016 12:02:01 +0000 (12:02 +0000)]
oeqa/runtime: Add OEHasPackage decorator

This new decorator will be used to skip the test
if the image under test doesn't have the required
packages installed.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime: Add case, context and loader classes for runtime testing
Mariano Lopez [Mon, 31 Oct 2016 13:15:02 +0000 (13:15 +0000)]
oeqa/runtime: Add case, context and loader classes for runtime testing

This adds OERuntimeTestCase, OERuntimeTestContext, and OERuntimeTestLoader
to be used for runtime testing.

As expected there are some changes in runtime context:

- Adds the target to be used for runtime testing, the default
is a SSH connection to the device under test running a OE image.
- Runtime context requires image manifest because several
tests are skipped if a package is missing or installed.
- Several tests require the output of the ps command and it changes
its output and arguments if busybox o procps is installed, so the
case must use the correct ps command.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/target Add OESSHTarget to sent commands to targets using SSH
Mariano Lopez [Mon, 31 Oct 2016 12:58:38 +0000 (12:58 +0000)]
oeqa/core/target Add OESSHTarget to sent commands to targets using SSH

With this commit now it is possible to add targets with SSH for testing.
Most of it was imported for existing code, with improvements in log
handling.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/runtime: Move to runtime_cases
Aníbal Limón [Thu, 27 Oct 2016 21:39:47 +0000 (16:39 -0500)]
oeqa/runtime: Move to runtime_cases

The new oeqa core framework will modify the structure of the runtime
folder the new runtime folder will have python code inside to support
runtime test cases.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa: Fix files handling on runtime tests.
Aníbal Limón [Mon, 5 Dec 2016 23:04:42 +0000 (17:04 -0600)]
oeqa: Fix files handling on runtime tests.

Common files was move to oeqa/files from oeqa/runtime/files
because the same files are used across Runtime,SDK,eSDK tests.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/runtime: Fix TargetBuildProject instances
Aníbal Limón [Mon, 5 Dec 2016 22:10:12 +0000 (16:10 -0600)]
oeqa/runtime: Fix TargetBuildProject instances

TargetBuildProject was refactored to avoid bitbake dependency so
the instance don't allow to pass data store anymore.

classes/testimage: Export proxies before run tests

The TargetBuildProject based tests download archives from network.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/sdkext/cases: Migrate test case to new OEQA framework
Aníbal Limón [Wed, 30 Nov 2016 21:12:15 +0000 (15:12 -0600)]
oeqa/sdkext/cases: Migrate test case to new OEQA framework

Summary,

- Changes base case class to OESDKExtTest.
- Changes decorator classes to new ones.
- Chnages variable names sdktestdir -> sdk_dir.
- Added missing license to MIT.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agoclasses/testsdk: Migrate to use the new OESDKExtTestContext
Aníbal Limón [Wed, 30 Nov 2016 21:11:40 +0000 (15:11 -0600)]
classes/testsdk: Migrate to use the new OESDKExtTestContext

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/sdkext: Adds case and context modules.
Aníbal Limón [Wed, 30 Nov 2016 17:33:26 +0000 (11:33 -0600)]
oeqa/sdkext: Adds case and context modules.

The extensible sdk context and case modules extends the sdk ones,
this means that the tests from sdk are run also the sdkext tests.

Enables support in context for use oe-test esdk command for run
the test suites, the same options of sdk are required for run esdk tests.

Removes old related to case and context inside oetest.py.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/sdkext: Move test cases inside cases directory
Aníbal Limón [Wed, 30 Nov 2016 16:35:52 +0000 (10:35 -0600)]
oeqa/sdkext: Move test cases inside cases directory

For match with the new structure of the OEQA framework.

In the new framework Test component base directory in this case
sdk module will contain case and context implementations.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agoclasses/testsdk: Remove the need of TEST_LOG_DIR variable
Aníbal Limón [Wed, 30 Nov 2016 00:12:49 +0000 (18:12 -0600)]
classes/testsdk: Remove the need of TEST_LOG_DIR variable

The TEST_LOG_DIR was used for store sdk_target_log this log
contains the output of the run of build commands now that information
could be found also on log.do_testsdk under WORKDIR.

The log will continue to store into SDK_DIR instead of TEST_LOG_DIR.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/sdk/cases: Migrate tests to the new OEQA framework
Aníbal Limón [Sun, 27 Nov 2016 23:51:53 +0000 (17:51 -0600)]
oeqa/sdk/cases: Migrate tests to the new OEQA framework

Summary of the changes:

- Remove auto extend_path using pkgutil at __init__, is not needed.
- Change base class to OESDKTestCase.
- Add td_vars attr to set dependencies of certain variables in test
data.
- Change skips from module level to class level because Test context
  (tc)
now isn't at module level.
- Variable names changes to be consistent (i.e. sdktestdir ->
  sdk_dir).

[YOCTO #10599]

- Don't use bb.utils functions use instead remove_safe and shutil
  for copy files.
- SDKBuildProject pass test data variables instead of call getVar
  inside.

[YOCTO #10231]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/utils: {Target,SDK,}BuildProject remove dependency of bb
Aníbal Limón [Wed, 2 Nov 2016 19:42:01 +0000 (13:42 -0600)]
oeqa/utils: {Target,SDK,}BuildProject remove dependency of bb

Don't use bitbake references inside utils modules, in order todo
that changes getVar calls for arguments in the __init__ method like
dl_dir for all the classes and testlogdir, builddatetime in
SDKBUildProject.

Also don't export proxies inside _download_archive method, a good
practice is to setup the proxies at init of the process instead of
do it in this helper module.

[YOCTO #10231]
[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/utils: Move targetbuild to buildproject module
Aníbal Limón [Wed, 2 Nov 2016 19:04:28 +0000 (13:04 -0600)]
oeqa/utils: Move targetbuild to buildproject module

The new buildproject module will contain only BuildProject class
a helper class for build source code.

The remaining classes TargetBuildProject and SDKBuildProject was
move to runtime and sdk respectively.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agoclasses/testsdk: Migrates testsdk.bbclass to use new OESDKTestContext
Aníbal Limón [Wed, 30 Nov 2016 16:56:09 +0000 (10:56 -0600)]
classes/testsdk: Migrates testsdk.bbclass to use new OESDKTestContext

The functionality provided is the same with imporvements on code
reuse and better interfaces.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/sdk: Add case and context modules for the SDK component
Aníbal Limón [Mon, 31 Oct 2016 23:24:25 +0000 (17:24 -0600)]
oeqa/sdk: Add case and context modules for the SDK component

Adds case and context modules for SDK based on oetest.py old code.

Enables SDK Test component usage with oe-test, the SDK Test component
adds command line options for specify sdk installed dir, sdk environment
and target/hosts maniftest.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/{runtime,sdk}/files: Move testsdkmakefile from runtime to sdk module
Aníbal Limón [Wed, 9 Nov 2016 21:03:52 +0000 (15:03 -0600)]
oeqa/{runtime,sdk}/files: Move testsdkmakefile from runtime to sdk module

It doesn't make sense to have files related to sdk module into runtime
module.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/sdk: Move test cases inside cases directory
Aníbal Limón [Mon, 31 Oct 2016 23:20:48 +0000 (17:20 -0600)]
oeqa/sdk: Move test cases inside cases directory

For match with the new structure of the OEQA framework.

In the new framework Test component base directory in this case
sdk module will contain case and context implementations.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa: Move common files to oeqa/files instead of runtime only
Aníbal Limón [Wed, 9 Nov 2016 20:57:40 +0000 (14:57 -0600)]
oeqa: Move common files to oeqa/files instead of runtime only

Those files are used by runtime and sdk test cases, so move to
base directory of oeqa module.

[YOCTO #10599]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/utils/__init__.py: Adds compatibility with bitbake logger
Mariano Lopez [Wed, 21 Dec 2016 13:14:00 +0000 (13:14 +0000)]
oeqa/utils/__init__.py: Adds compatibility with bitbake logger

The bitbake logger changes the way debug is logged and adds
different levels within debug, this is passed as argument
to the function and breaks compatibility with vanilla loggers.

This implements a way to handle this adding a new function for
debug, that will dispatch the correct logging method signature.

Also overrides info method to use logging.INFO + 1 in order to
see plain data.

Also this commit fix the issue of not showing the test summary
and results when running from bitbake.

[YOCTO #10686]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agoclasses/populate_sdk_base: Add write_sdk_test_data to postprocess
Aníbal Limón [Fri, 25 Nov 2016 18:30:12 +0000 (12:30 -0600)]
classes/populate_sdk_base: Add write_sdk_test_data to postprocess

This function will generates testdata.json per SDK type.

[YOCTO #10231]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agoclasses/rootfs-postcommands: Add write_image_test_data
Aníbal Limón [Fri, 25 Nov 2016 17:37:06 +0000 (11:37 -0600)]
classes/rootfs-postcommands: Add write_image_test_data

This function will generates testdata.json by image type.

[YOCTO #10231]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooe/data: Add export2json function
Aníbal Limón [Fri, 25 Nov 2016 17:36:06 +0000 (11:36 -0600)]
oe/data: Add export2json function

The export2json function export the variables contained in
the data store to JSON format, the main usage for now will be
to provide test data to QA framework.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/core: Add README
Aníbal Limón [Wed, 9 Nov 2016 18:03:01 +0000 (12:03 -0600)]
oeqa/core: Add README

The README has an introduction and explains how to run the test suite
and creates a new Test component.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/cases: Add example test cases
Aníbal Limón [Wed, 9 Nov 2016 17:57:54 +0000 (11:57 -0600)]
oeqa/core/cases: Add example test cases

Serves as an first input of how to the OEQA framework works.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/context: Add support of OETestContextExecutor
Aníbal Limón [Wed, 9 Nov 2016 17:50:46 +0000 (11:50 -0600)]
oeqa/core/context: Add support of OETestContextExecutor

The OETestContextExecutor class supports to use oe-test for run core
test component also is a base class for the other test components
(runtime, sdk, selftest).

Te principal functionality is to support cmdline parsing and execution
of OETestContext, the test components could extend the common options
to provide specific ones. The common options between test components
are test data file, output log and test cases path's to scan.

Also it initializes the logger to be passed to the whole OEQA framework.

[YOCTO #10230]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agoscripts/oe-test: Add new oe-test script
Aníbal Limón [Mon, 31 Oct 2016 20:42:30 +0000 (14:42 -0600)]
scripts/oe-test: Add new oe-test script

The new oe-test script will be use to run test components with
one single script.

The oe-test script search for test components inside meta/lib/oeqa,
the test components needs to implement OETestContextExecutor inside
context module in order to be supported by oe-test.

[YOCTO #10230]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core: Add tests for the OEQA framework
Mariano Lopez [Wed, 9 Nov 2016 17:26:59 +0000 (11:26 -0600)]
oeqa/core: Add tests for the OEQA framework

This test suite covers the current functionality for the OEQA
framework.

For run certain test suite,

$ cd meta/lib/oeqa/core/tests
$ ./test_data.py

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/decorator: Add support for OETestDataDepends and skipIfDataVar
Aníbal Limón [Wed, 9 Nov 2016 17:24:57 +0000 (11:24 -0600)]
oeqa/core/decorator: Add support for OETestDataDepends and skipIfDataVar

The OETestDataDepends decorator skips a test case if a variable
isn't into test data (d).

The skipIfDataVar decorator skips a test case if a variable
has certain value.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core/decorator: Add support for OETimeout decorator
Mariano Lopez [Wed, 9 Nov 2016 17:19:07 +0000 (11:19 -0600)]
oeqa/core/decorator: Add support for OETimeout decorator

The OETimeout provides support for specify certain timeout
in seconds for a test case, if the timeout is reach the SIGALRM
is sent and an exception is raised to notify the timeout.

[YOCTO #10235]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/core/decorator: Add support for OETestID and OETestTag
Mariano Lopez [Wed, 9 Nov 2016 17:14:23 +0000 (11:14 -0600)]
oeqa/core/decorator: Add support for OETestID and OETestTag

These two decorators stores certain TAG or ID for the test case
also provides support for filtering in loading step.

[YOCTO #10236]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/core/decorator: Add support for OETestDepends
Aníbal Limón [Wed, 9 Nov 2016 17:09:07 +0000 (11:09 -0600)]
oeqa/core/decorator: Add support for OETestDepends

The OETestDepends decorator could be used over test cases to
define some dependency between them.

At loading time sorting the tests to grauntee that a test case
executes before also raise an exception if found a circular
dependency between test cases.

At before test case run reviews if the dependency if meet, in the
case of don't it skips the test case run.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core: Add loader, context and decorator modules
Aníbal Limón [Wed, 9 Nov 2016 16:38:37 +0000 (10:38 -0600)]
oeqa/core: Add loader, context and decorator modules

loader: Implements OETestLoader handling OETestDecorator
and filtering support when load tests. The OETestLoader is
responsible to set custom methods, attrs of the OEQA
frameowork.

[YOCTO #10231]
[YOCTO #10317]
[YOCTO #10353]

decorator: Add base class OETestDecorator to provide a common
way to define decorators to be used over OETestCase's, every
decorator has a method to be called when loading tests and
before test execution starts. Special decorators could be
implemented for filter tests on loading phase.

context: Provides HIGH level API for loadTests and runTests
of certain test component (i.e. runtime, sdk, selftest).

[YOCTO #10230]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agooeqa/core: Add utils module for OEQA framework
Mariano Lopez [Wed, 9 Nov 2016 16:33:42 +0000 (10:33 -0600)]
oeqa/core: Add utils module for OEQA framework

misc: Functions for transform object to other types.
path: Functions for path handling.
test: Functions for operations related to test cases and suites.

[YOCTO #10232]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
8 years agooeqa/core: Add base OEQA framework
Aníbal Limón [Tue, 8 Nov 2016 23:57:43 +0000 (17:57 -0600)]
oeqa/core: Add base OEQA framework

case: Defines OETestCase base class that provides custom
    methods/attrs defined by the framework.
    Every OETestCase instance contains a reference to the test
    data (d), the test context (tc) and the logger.
    Also implements _oe{SetUp,TearDown}Class for make special
    handling of OEQA decorators and validations.

runner: Defines OETestRunner/OETestResult with support for RAW
    and XML result logs.

exception: Custom exceptions related to the OEQA framework based
    on class OEQAException.

[YOCTO #10230]
[YOCTO #10233]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
8 years agowic: bootimg-pcbios: use wic-tools target
Ed Bartosh [Thu, 19 Jan 2017 13:53:46 +0000 (15:53 +0200)]
wic: bootimg-pcbios: use wic-tools target

Used wic-tools target to get location of syslinux.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: rebuild wic-tools if its sysroot doesn't exist
Ed Bartosh [Thu, 19 Jan 2017 14:01:34 +0000 (16:01 +0200)]
wic: rebuild wic-tools if its sysroot doesn't exist

Rebuild wic-tools if its native sysroot doesn't exist to ensure
that all required tools are available.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: misc.py: add parameter 'cache' to get_bitbake_vars
Ed Bartosh [Thu, 19 Jan 2017 14:18:28 +0000 (16:18 +0200)]
wic: misc.py: add parameter 'cache' to get_bitbake_vars

This parameter will be used to allow or prevent variable caching.

For example, we don't want to cache value of RECIPE_SYSROOT_NATIVE
wic-tools variable as we may decide to rebuild wic-tools.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest: fixed 3 wic test cases
Ed Bartosh [Wed, 18 Jan 2017 17:32:16 +0000 (19:32 +0200)]
selftest: fixed 3 wic test cases

Fixed test_systemd_bootdisk, test_wic_image_type and test_qemu
test cases by building core-image-minimal with correct configuration.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest: wic: don't set WKS_FILE
Ed Bartosh [Wed, 18 Jan 2017 17:24:27 +0000 (19:24 +0200)]
selftest: wic: don't set WKS_FILE

Setting WKS_FILE variable should be done only when
wic image is expected to be built by bitbake.
If it's set for all images it breaks image building in
some cases.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: fixed test_iso_image test case
Ed Bartosh [Wed, 18 Jan 2017 17:21:17 +0000 (19:21 +0200)]
wic: fixed test_iso_image test case

Fixed isoimage-isohybrid plulgin and correspondent wic tet case:
- used wic-tools target when getting varlue of STAGING_LIBDIR variable
- ensured that image is built with efi and hddimg enabled

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>