Skip to contentSkip to conversation

make check: Tests for platform coreboot using temporary files fail

DISCUSSION Paul Menzel 2 participants 2 messages Apr 11, 2015

lore
Share & tools
lore
#0 lore raw

Dear GRUB developers,

using Debian Sid/unstable, building GRUB from commit f11db3c (core:
avoid NULL derefrence in grub_divmod64s) and running make check, all the tests using temporary files fail.

        $ ./autogen.sh
        $ ./configure --with-platform=coreboot --enable-boot-time --enable-cache-stats --enable-dependency-tracking
        $ make -j
        $ LANG=C make check
        […]
        ============================================================================
        Testsuite summary for GRUB 2.02~beta2
        ============================================================================
        # TOTAL: 81
        # PASS:  20
        # SKIP:  17
        # XFAIL: 0
        # FAIL:  44
        # XPASS: 0
        # ERROR: 0
        ============================================================================
        See ./test-suite.log
        Please report to [email protected]
        ============================================================================
        […]
        $ more test-suite.log
        […]
        FAIL: grub_cmd_echo
        ===================

cp: cannot stat '': No such file or directory […]

The temporary files are present in the temporary directory, /tmp in my case. Is that expected?

test-suite.log is attached.

Thanks,

Paul

=======================================
GRUB 2.02~beta2: ./test-suite.log
=======================================

# TOTAL: 81
# PASS: 20
# SKIP: 17
# XFAIL: 0
# FAIL: 44
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: ext234_test
=================

SKIP: squashfs_test
===================

mksquashfs not installed; cannot test squashfs.

FAIL: iso9660_test
==================

xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/tmp/tmp.efW4BPK9tJ/joliet_512_512_1_0.img' Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 9593m free
xorriso : WARNING : -volid text problematic as automatic mount point name xorriso : WARNING : -volid text is too long for Joliet (32 > 16) xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules Added to ISO image: directory '/'='/tmp/tmp.efW4BPK9tJ/master'
xorriso : UPDATE : 231 files added in 1 seconds
xorriso : UPDATE : 231 files added in 1 seconds
xorriso : UPDATE : 26.49% done
xorriso : UPDATE : 65.45% done
xorriso : UPDATE : 97.88% done
ISO image produced: 21561 sectors
Written to medium : 21561 sectors at LBA 0
Writing to 'stdio:/tmp/tmp.efW4BPK9tJ/joliet_512_512_1_0.img' completed successfully.

Device proc: Filesystem type procfs - Sector size 512B - Total size 0KiB
Device loop0: Filesystem type iso9660 - Label `g;/_____________' - Last modification time 2015-04-11 07:05:23 Saturday, UUID 2015-04-11-07-05-23-00 - Sector size 512B - Total size 43122KiB Device host: Filesystem type hostfs - Sector size 512B - Total size 0KiB

ILIST FAIL

DIR          20150411070523 ./
DIR          20150411070523 ../
5242880      20150411070523 .!"#%@$%&'()+,-.<=>^{_}[]`|~.
DIR          20150411070522 0/
5242880      20150411070522 1.img
5242880      20150411070523 CaSe
5242880      20150411070523 __________________________________________________________________
938848       20150411070523 american-english
5242880      20150411070523 cAsE
5242880      20150411070522 hard
5242880      20150411070523 qwertzuiopasdfghjklyxcvbnm1234567890qwertzuiopasdfghjklyxcvbnm1234567890oiewqfiewioqoiqoiurqruewqoiuwoi
DIR          20150411070522 sdir/

total 31671
drwxr-xr-x 3 paul paul 72 20150411070522.000000000 0
-rw-r--r-- 2 paul paul 5242880 20150411070522.000000000 1.img
-rw-r--r-- 1 paul paul 5242880 20150411070523.000000000 CaSe
-rw-r--r-- 1 paul paul 938848 20150411070523.000000000 american-english
-rw-r--r-- 1 paul paul 5242880 20150411070523.000000000 cAsE
-rw-r--r-- 2 paul paul 5242880 20150411070522.000000000 hard
-rw-r--r-- 1 paul paul 5242880 20150411070523.000000000 qwertzuiopasdfghjklyxcvbnm1234567890qwertzuiopasdfghjklyxcvbnm1234567890oiewqfiewioqoiqoiurqruewqoiuwoi
drwxr-xr-x 2 paul paul 72 20150411070522.000000000 sdir
-rw-r--r-- 1 paul paul 5242880 20150411070523.000000000 éàèüöäëñкирилица䏌䐓䏕Ελληνικά䏌䐓䏕

SKIP: hfsplus_test
==================

SKIP: ntfs_test
===============

SKIP: reiserfs_test
===================

SKIP: fat_test
==============

SKIP: minixfs_test
==================

SKIP: xfs_test
==============

SKIP: nilfs2_test
=================

SKIP: romfs_test
================

genromfs not installed; cannot test romfs.

SKIP: exfat_test
================

SKIP: udf_test
==============

SKIP: hfs_test
==============

SKIP: jfs_test
==============

SKIP: btrfs_test
================

SKIP: zfs_test
==============

FAIL: gettext_strings_test
==========================

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-04-11 09:06+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n"

#: grub-core/bus/emu/pci.c:58
#, c-format
msgid "mapping 0x%llx failed (error %d)\n"
msgstr ""

#: grub-core/osdep/linux/platform.c:73
msgid "/sys/firmware/efi/fw_platform_size"
msgstr ""

FAIL: pata_test
===============

tar: Removing leading `/' from member names
cp: cannot stat '': No such file or directory

FAIL: ahci_test
===============

tar: Removing leading `/' from member names
cp: cannot stat '': No such file or directory

FAIL: uhci_test
===============

tar: Removing leading `/' from member names
cp: cannot stat '': No such file or directory

FAIL: ohci_test
===============

tar: Removing leading `/' from member names
cp: cannot stat '': No such file or directory

FAIL: ehci_test
===============

tar: Removing leading `/' from member names
cp: cannot stat '': No such file or directory

FAIL: example_grub_script_test
==============================

cp: cannot stat '': No such file or directory

FAIL: grub_script_eval
======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_test
======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_echo1
=======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_leading_whitespace
====================================

cp: cannot stat '': No such file or directory

FAIL: grub_script_echo_keywords
===============================

cp: cannot stat '': No such file or directory

FAIL: grub_script_vars1
=======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_for1
======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_while1
========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_if
====================

cp: cannot stat '': No such file or directory

FAIL: grub_script_comments
==========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_functions
===========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_break
=======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_continue
==========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_shift
=======================

cp: cannot stat '': No such file or directory

FAIL: grub_script_blockarg
==========================

cp: cannot stat '': No such file or directory
[] != [{ true }]

FAIL: grub_script_setparams
===========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_return
========================

cp: cannot stat '': No such file or directory

FAIL: grub_cmd_regexp
=====================

cp: cannot stat '': No such file or directory

FAIL: grub_cmd_date
===================

cp: cannot stat '': No such file or directory

FAIL: grub_cmd_set_date
=======================

cp: cannot stat '': No such file or directory

FAIL: grub_cmd_sleep
====================

cp: cannot stat '': No such file or directory

FAIL: grub_script_expansion
===========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_not
=====================

cp: cannot stat '': No such file or directory

FAIL: partmap_test
==================

Checking MSDOS partition types...
1+0 records in
1+0 records out
./partmap_test: line 106: parted: command not found

FAIL: xzcompress_test
=====================

cp: cannot stat '': No such file or directory

FAIL: gzcompress_test
=====================

cp: cannot stat '': No such file or directory

SKIP: lzocompress_test
======================

lzop not installed; cannot test lzo compression.

FAIL: grub_cmd_echo
===================

cp: cannot stat '': No such file or directory

FAIL: help_test
===============

cp: cannot stat '': No such file or directory

FAIL: grub_script_gettext
=========================

cp: cannot stat '': No such file or directory

FAIL: grub_script_escape_comma
==============================

cp: cannot stat '': No such file or directory

FAIL: grub_script_strcmp
========================

cp: cannot stat '': No such file or directory

FAIL: test_sha512sum
====================

cp: cannot stat '': No such file or directory GRUB sha512sum output did not match sha512sum output. See diff -u /tmp/tmp.ucGVpmctpi /tmp/tmp.hI9gjSgDH8

FAIL: test_unset
================

cp: cannot stat '': No such file or directory

FAIL: grub_func_test
====================

cp: cannot stat '': No such file or directory

FAIL: grub_cmd_tr
=================

cp: cannot stat '': No such file or directory

FAIL: file_filter_test
======================

cp: cannot stat '': No such file or directory

#1 lore raw

В Sat, 11 Apr 2015 09:33:31 +0200
Paul Menzel <[email protected]> пишет:

Quoted 32 lines

Dear GRUB developers,

using Debian Sid/unstable, building GRUB from commit f11db3c (core:
avoid NULL derefrence in grub_divmod64s) and running make check, all the tests using temporary files fail.

        $ ./autogen.sh
        $ ./configure --with-platform=coreboot --enable-boot-time --enable-cache-stats --enable-dependency-tracking
        $ make -j
        $ LANG=C make check
        […]
        ============================================================================
        Testsuite summary for GRUB 2.02~beta2
        ============================================================================
        # TOTAL: 81
        # PASS:  20
        # SKIP:  17
        # XFAIL: 0
        # FAIL:  44
        # XPASS: 0
        # ERROR: 0
        ============================================================================
        See ./test-suite.log
        Please report to [email protected]
        ============================================================================
        […]
        $ more test-suite.log
        […]
        FAIL: grub_cmd_echo
        ===================
Quoted 1 line

cp: cannot stat '': No such file or directory

it is due to

if [ x$boot = xcoreboot ]; then

    imgfile=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
    cp "${GRUB_COREBOOT_ROM}" "${imgfile}"

According to docs/grub.texi

Following variables must be defined:

@multitable @columnfractions .30 .65
@item GRUB_PAYLOADS_DIR @tab directory containing the required kernels @item GRUB_CBFSTOOL @tab cbfstoll from Coreboot package (for coreboot platform only) @item GRUB_COREBOOT_ROM @tab empty Coreboot ROM
@item GRUB_QEMU_OPTS @tab additional options to be supplied to QEMU @end multitable

I have no experience with coreboot so I do not know what "empty Coreboot ROM" is.

Quoted 11 lines
        […]

The temporary files are present in the temporary directory, /tmp in my case. Is that expected?

test-suite.log is attached.

Thanks,

Paul