From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AH5tFGTtnWQGEgEASxT56A (envelope-from ) for ; Thu, 29 Jun 2023 22:45:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WD6RFGTtnWSyWgEAauVa8A (envelope-from ) for ; Thu, 29 Jun 2023 22:45:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE22AB047 for ; Thu, 29 Jun 2023 22:45:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEyVp-0006Ho-BH; Thu, 29 Jun 2023 16:45:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEyVj-0006G5-EC for guix-patches@gnu.org; Thu, 29 Jun 2023 16:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEyVj-0007ZE-5L for guix-patches@gnu.org; Thu, 29 Jun 2023 16:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEyVj-0006Gp-1J for guix-patches@gnu.org; Thu, 29 Jun 2023 16:45:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64356] [PATCH 4/4] tests: xvnc: Group up GDM test. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Jun 2023 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64356 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64356@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 64356-submit@debbugs.gnu.org id=B64356.168807148824040 (code B ref 64356); Thu, 29 Jun 2023 20:45:02 +0000 Received: (at 64356) by debbugs.gnu.org; 29 Jun 2023 20:44:48 +0000 Received: from localhost ([127.0.0.1]:54139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEyVU-0006Ff-4T for submit@debbugs.gnu.org; Thu, 29 Jun 2023 16:44:48 -0400 Received: from smtpmciv5.myservices.hosting ([185.26.107.241]:59024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEyVT-0006FY-11 for 64356@debbugs.gnu.org; Thu, 29 Jun 2023 16:44:47 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv5.myservices.hosting (Postfix) with ESMTP id 923D120D6C for <64356@debbugs.gnu.org>; Thu, 29 Jun 2023 22:44:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 03C3A80097; Thu, 29 Jun 2023 22:44:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id g_7QZNZhQVLQ; Thu, 29 Jun 2023 22:44:45 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 7319280060; Thu, 29 Jun 2023 22:44:45 +0200 (CEST) From: Bruno Victal Date: Thu, 29 Jun 2023 21:44:22 +0100 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688071524; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=KEX6EZdBoPs6uaW2BOP0Hjwkt4vayJXOsCTUJD1S18w=; b=ccDTaK0wXF83M0RYr/aVHR3gNseEOqGhT7Ii5nqk/UpT1F9R9GiTjTumcmKPZ6ifcmmNih gxlS0sYGyT5GJuDTF76FZpzfs0tCoSGgbao7VUzXQF1/nIikI7VIaIq5FmLdJpvz2k0W/7 IWo0Q6XRZi/u9mXRhNbyjXAxBhBhlTqns53R3+63xmMdlmxZwjq9wnQM2z4b2BGY3benHT jmUKf0dk2COU2mWGNig1OGUk4j1ZXtEt7XkUCKh7qfSdOPDXqQOJcxKowenBiBz9urd+Og vGFKn5uUs4xBa8Gf7t81bvFmV2TTiqb8b91aTaljhXF+wxzmZbTlDwjo0LzYmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688071524; a=rsa-sha256; cv=none; b=XDK23FjOe9RJavhXjCBfQ0mTVsK/vkNAZgMg/LmxUCliM5CZWC3L/c+Yf2V/50poo/8etY 7dePH2hrH1k3R7ODDgQYymf9lSSB+DUImhQ8zJXpYctj1Rbz+C1ZMzTW04Pt7T/0SF9o89 lWBNgDmpdY/ozy8uqCyYcOsyDLGEyhS9hZHS/W1XhlhyGacIiZV4zpIAXOC5nSHvkyQ6Zy uzl7kWzddsZJmpPfy6nCSOceEYKpd2mSwEp3XL3jD4hURVdNsMLSCGss0y1r65b59/2KDZ K3d+6tS9NdBcZtqgjKzXJqNOo741SyJaZha15JWHRhop6esRI075N1yPvo05ew== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.76 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DE22AB047 X-Spam-Score: -1.76 X-TUID: wzNO7ua8K4Iz * gnu/tests/vnc.scm (run-xvnc-test): Group up GDM test. Use GNU Ocrad when possible. --- gnu/tests/vnc.scm | 52 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/gnu/tests/vnc.scm b/gnu/tests/vnc.scm index e59972eee4..504cb544b1 100644 --- a/gnu/tests/vnc.scm +++ b/gnu/tests/vnc.scm @@ -152,43 +152,43 @@ (define (run-xvnc-test) | grep -Fq nothing")) marionette)) - (test-assert "vnc lands on the gdm login screen" + (test-group "vnc lands on the gdm login screen" ;; This test runs vncviewer on the local VM and verifies that it ;; manages to access the GDM login screen (via XDMCP). - (begin - (define (ratpoison-abort) - (marionette-control "sendkey ctrl-g" marionette)) - - (define (ratpoison-help) - (marionette-control "sendkey ctrl-t" marionette) - (marionette-type "?" marionette) - (sleep 1)) ;wait for help screen to appear - - (define (ratpoison-exec command) - (marionette-control "sendkey ctrl-t" marionette) - (marionette-type "!" marionette) - (marionette-type (string-append command "\n") marionette)) - - ;; Wait until the ratpoison help screen can be displayed; this - ;; means the window manager is ready. + (define (ratpoison-abort) + (marionette-control "sendkey ctrl-g" marionette)) + + (define (ratpoison-help) + (marionette-control "sendkey ctrl-t" marionette) + (marionette-type "?" marionette) + (sleep 1)) ;wait for help screen to appear + + (define (ratpoison-exec command) + (marionette-control "sendkey ctrl-t" marionette) + (marionette-type "!" marionette) + (marionette-type (string-append command "\n") marionette)) + + ;; Wait until the ratpoison help screen can be displayed; this + ;; means the window manager is ready. + ;; XXX: GNU Ocrad 0.28 yields poor results here, use tesseract + ;; instead. + (test-assert "window manager is ready" (wait-for-screen-text marionette (cut string-contains <> "key bindings") #:ocr #$(file-append tesseract-ocr "/bin/tesseract") #:pre-action ratpoison-help - #:post-action ratpoison-abort) + #:post-action ratpoison-abort)) ;; Run vncviewer and expect the GDM login screen (accessed via ;; XDMCP). This can take a while to appear on slower machines. - (ratpoison-exec "vncviewer localhost:5905") - ;; XXX: tesseract narrowly recognizes "Guix" as "uix" from the - ;; background image; ocrad fares worst. Sadly, 'Username' is - ;; not recognized at all. + (ratpoison-exec "vncviewer localhost:5905") + + (test-assert "GDM login screen ready" (wait-for-screen-text marionette - (cut string-contains <> "uix") - #:ocr #$(file-append tesseract-ocr - "/bin/tesseract") - #:timeout 120))) + (cut string-contains <> "Guix") + #:ocr #$(file-append ocrad "/bin/ocrad") + #:ocr-arguments "--invert"))) (test-end))))) -- 2.39.2