14 Commits

Author SHA1 Message Date
Sergio Cazzolato
26cdae2315 Fix 2 failing tests installing local snaps 2021-05-05 10:40:07 -03:00
Sergio Cazzolato
01a36fa43a Fix tests which are editing the snaps before install them 2021-04-30 12:41:42 -03:00
Sergio Cazzolato
ebe85ba8a3 Moving to tests directories snaps built locally - part 1
Script being used to detect which snaps can be moved to

for snap in $(ls tests/lib/snaps); do
    count=0
    last=
    for test in $(find tests/ -name task.yaml); do
    	if $(grep -q $snap $test); then
    	    count=$((count+1))
    	    last=$test
    	fi
    done
    echo "$snap -> $count times"
    if [ $count = 1 ]; then
	echo "mv tests/lib/snaps/$snap $(dirname $last)"
    fi
done
2021-04-22 16:49:33 -03:00
Michael Vogt
e33e7db93f tests: enable interfaces-framebuffer everywhere
The test itself will now check for /dev/fb0 so there is no need
to blacklist/whitelist it.
2018-08-06 10:37:23 +02:00
Michael Vogt
9982d8a1d4 tests: skip interfaces-framebuffer when no /dev/fb0 is found 2018-07-05 10:08:18 +02:00
Michael Vogt
f6ef942422 Merge remote-tracking branch 'upstream/master' into core18-test-tweaks 2018-06-23 10:17:35 +02:00
Maciej Borzecki
d3bc0fcf8f tests: make the match pattern for unconnected interface more specific
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-06-20 07:47:01 +02:00
Maciej Borzecki
f9a4d91cbb tests/main/interfaces-framebuffer: blacklist systems without framebuffer device
Blacklist systems in which the framebuffer device node does not appear when
running a cloud image in GCE.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-06-19 17:04:30 +02:00
Maciej Borzecki
11104812ef tests/main/interfaces-framebuffer: fail when framebuffer device is missing
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-06-19 15:40:07 +02:00
Maciej Borzecki
e0592c22a3 tests: drop unnecessary "${PWD}" in touched tests
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-06-19 15:39:40 +02:00
Maciej Borzecki
e5affe0d85 tests: shellchecks part 4
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2018-06-18 15:32:02 +02:00
sergio-j-cazzolato
90c6f913fa Checking interfaces declaring the specific interface
This is done in the tests which are checking the interfaces information
in order to make them more robusts, making the test independent of other
plug:slots declared such it is happening in gadgets.
2018-04-24 08:59:15 -03:00
sergio-j-cazzolato
20c8ab9e1c Update interface tests to remove extra checks and normalize tests
This change includes:
. Remove all the checks that are done after a connection and
disconnection (this is already checked as part of the snap_connect and
snap_disconnect tests).
. install_local function used to pack and install local snaps
. Remove not needed echo
. Change the check of interfaces default behaviour for the
autoconnection to support the scenario when there are other snaps also
connected to the interface (that happens when testing caracalla gadget)
. Add new lines between task tags
2018-02-22 11:30:19 -03:00
sergio-j-cazzolato
70c2bede0e Adding test for interface frame buffer 2017-11-15 19:54:35 -03:00