Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jb350-0001QT-LU for mharc-grub-devel@gnu.org; Tue, 19 May 2020 10:18:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb34z-0001Oo-8H for grub-devel@gnu.org; Tue, 19 May 2020 10:18:49 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:45614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb34y-0003QS-Bf for grub-devel@gnu.org; Tue, 19 May 2020 10:18:48 -0400 Received: by mail-pg1-x52d.google.com with SMTP id r22so6449946pga.12 for ; Tue, 19 May 2020 07:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=1DpgtLNyuJQ3/AaLHtAl6l0ovR0ENwcUZL6Pl+uKylY=; b=JkAP49TDY2OQ6icxIQK1cZoeLlLiEajhXkhrE2j36VTpCR6Gl+sF16TQBwT9BHlgiE GnmHRWpPij2zqdSvathockpuSlEitTpK64f/R8SLJx+6QCtFlTrQuketiUm9ZNDAvxat UZedC3RLc1xK+SGYiIJ5weEYn22x9WJc3n9I0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=1DpgtLNyuJQ3/AaLHtAl6l0ovR0ENwcUZL6Pl+uKylY=; b=ojbBr8gjJrIszCal1ykJcfuW6aNJTTy8eiGrwOsw3KZ9e9+tCWUst+hiCqjI1DSHSl m+bTrRI6NbqfyisbT4kADmxMF6HfvplN57Cz2Jy5cnlSHQfG9VsA3aJSiPOUMfJwe9kO jIxWNKTBdFYFTE/SgHnZJ9odpEwUZq1twkBeuEsMMjPcVKDLxHtEQ8ky2+JmWdGdqiUn yKKQpyvDg1i/WSg/BM84HYKXJKMJzcqDfn0j25DfDo2pwr9fkVWbMT41+hhxe3AwFc3+ PdTfbqi/Y9FhtEiimLz17zNOS3zubzxQVZOgQGaBJgbJsuNpJ9urrbQu7AimOSDWiWZV yg4Q== X-Gm-Message-State: AOAM5328VNCM2Nb9CttyLYJfRirDlt/Ds0Yxdoi96vvja5x5aAZ9l534 IqvxgT1Ks5ojyR3PD4Ki5X0HdVwCSt/1Fg== X-Google-Smtp-Source: ABdhPJzuMzEgK3U0RN+rJI5QXxgap4wyXjVlZvwbVT868GoWyEzq/2WzZ2jr/6mCROZcOCjIizXttA== X-Received: by 2002:a63:3545:: with SMTP id c66mr5686433pga.82.1589897926202; Tue, 19 May 2020 07:18:46 -0700 (PDT) Received: from localhost (2001-44b8-111e-5c00-b5ed-d3ff-25d3-7e68.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:b5ed:d3ff:25d3:7e68]) by smtp.gmail.com with ESMTPSA id y7sm580357pjn.13.2020.05.19.07.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 07:18:45 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org, phcoder@gmail.com Subject: Re: make check / grub_func_test issues In-Reply-To: <871rnmroj2.fsf@dja-thinkpad.axtens.net> References: <871rnmroj2.fsf@dja-thinkpad.axtens.net> Date: Wed, 20 May 2020 00:18:42 +1000 Message-ID: <87mu64hut9.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=dja@axtens.net; helo=mail-pg1-x52d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2020 14:18:49 -0000 Hi, I've made a little progress on this. > I keep having failures with the cmdline_cat test and the gfxmenu tests > within grub_func_test - the video checksums don't match. The images all > look OK to me, so I'm not quite sure what the problem is, and we don't > ship known-good images for me to compare against. > > Is this supposed to work? If so are there any tricks to getting it to > work? I looked through the git history for unifont, which I noticed was mentioned in commit 061258a05edd ("Regenerate checksum.h with newer unifont.") This allowed me to determine that the tests were run with a debian-packaged version of unifont, so I recreated that environment. I then noticed that if I checked out that commit, the cmdline_cat test started to pass, as well as a number of (but not all of!) the gfxmenu tests. Bisecting from that commit to grub-2.04 (where cmdline_cat is broken), I was able to find that the commit that breaks it is 94d9926a6640 ("Release 2.04~rc1") - which simply bumps the version number. That breaks things because the screenshots contain the version number. That understanding is reinforced by looking at git log ./grub-core/tests/checksums.h which contains a number of commits regenerating the checksums. I'm still trying to figure out why some checksums are broken for me in a Debian Stretch environment with exactly the same Unifont, but it looks like we need to regenerate the checksums for the more recent version. phcoder, how do we do that? `git grep checksum` isn't especially revealing, nor is the commit history... Regards, Daniel