From patchwork Sat Oct 31 07:59:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1391429 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=fN/ti1Zq; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CNWmc17PRz9sPB for ; Sat, 31 Oct 2020 18:59:44 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C89B81BEB; Sat, 31 Oct 2020 08:59:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="fN/ti1Zq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6408882242; Sat, 31 Oct 2020 08:59:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CB7CE808F1 for ; Sat, 31 Oct 2020 08:59:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604131172; bh=ueCfS+mpH45Bpp0X7A9gq+CR8hbs0R0NmY3DgxuhCmE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=fN/ti1ZqMxYe/xMg9frJf+k8Q0TljFQiOGB1Sy38srrDDGm1iFzBFeORT/FvCD9j8 lWcRzrc1naF41IsrOeYOBVKnLNqVpppgCzJwnopAhL/JDmUo1W7IbwRM7aZjZossZ/ RUvwU6XN6v5oQfBWRg1wkzQ87gcevHF7Zx7jELzY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from rpi4.fritz.box ([178.202.41.107]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MAfYm-1kfOYt3aRc-00B0h7; Sat, 31 Oct 2020 08:59:31 +0100 From: Heinrich Schuchardt To: Simon Glass Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 1/1] test: linking test/compression.c fails Date: Sat, 31 Oct 2020 08:59:25 +0100 Message-Id: <20201031075925.6877-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:IzWS6pwK2Dr1YzB/WozSN2c5HA+iewBLXKodCvIt69k4LkFrV5i ufq3kX9GuZknpUIdsLl2bGN9iWiOIErrAZtoeoxgSQOeW4HgB/dKktnTZ6lQJnNY+Z1166q rXx2hw+JXHsB+NafayvLqs9pcTnZ+NV/xuKM3siT3dyRo3l9Z8ymxNYUUXOY9dZZcx0k2WP d5CIot2eRKVxgWE1HJiaQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:8lrylwc2A6I=:SPIi0SodK9pITwXiZ96FcI qKEwHejsbte8No9TJssIpxDPmcLkCztKFIW1T61pNUOwra4fu2JXvAAqmsRma3BSOmTttwIiX unqyMjs497WP2oKOz0Se646iardt8Hv6E3qFKdpYhCaKCKymmtEFrGqte+z6CjkUAFMm2upSi Q05L4h5P6EM8fNquC86i1tx71z1RlHHbwO6T/XyLe1AScFkhbstcQSMBHDSiUvRr73PQIjcZG h4nMED3HvQpIlPo8ngeumzY2LGe96cfXwfyMtiAXfib3kX+rCZveFKm42RQtYwLn2KRBFA4X7 jrTeolrAQmWnA2pGlmoNb5Uj5GIp3nT9KyuDGcT9ALBxkobujWi+GCjzFbmg17QERmhHyPyh5 5PAyDowIxVa15FF3nizehGHZig6fTwQnmutv9G22snwfOq46FDJTBN6dYtJcq2448dgOK01mH oEdVofCznj9WBSb7MHDqYk+7KjVBQJX/vG8qnP8BbSOOojc2McusRoQ8Yf8YpmBTPZ03qFhEH Ayg4LgU70vrcl0EpM/Ajjwu1CWnNcX0fi0X2mNfTg9VmZVwmO5q99/BYuItFKWlNuxbGZIhfq goaLZxoQXb+zd3NpVZTxJy7xb7iFU5JLITotfU7ra7+ZwRE91yeMyPXIp6WiWVKSIqFeqFOmL 4teSEuWAYud7PJ6UUnYmnUHijtOxVcGnwuL62cfluiwn9/OUQz1n18SlNCs5H8gyuOU3Ajltd JB62odMhRf91k4nnpoUD7oIKMemwtsVlOo406tcmnMgLBsroslHbiLbn3Jp7uei+925HGJNd+ aDA3RZd8SFEgM8pTRR4gluSdj0gRr3yDl32cb+uN9vBpO1/mufNa6YL7OYTKMh7MG7xFtr/ze G966K0wNSkQ+wPW0wpIw== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Building U-Boot with unit tests on a non-sandbox systems fails: ld.bfd: test/built-in.o: in function `compress_using_gzip': test/compression.c:138: undefined reference to `gzip' ld.bfd: test/built-in.o: in function `uncompress_using_bzip2': test/compression.c:187: undefined reference to `BZ2_bzBuffToBuffDecompress' ld.bfd: test/built-in.o: in function `uncompress_using_lzma': test/compression.c:222: undefined reference to `lzmaBuffToBuffDecompress' ld.bfd: test/built-in.o: in function `uncompress_using_lzo': test/compression.c:257: undefined reference to `lzop_decompress' ld.bfd: test/built-in.o: in function `uncompress_using_lz4': test/compression.c:292: undefined reference to `ulz4fn Add the missing dependencies. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass Reviewed-by: Simon Glass --- test/Kconfig | 9 +++++++++ test/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/test/Kconfig b/test/Kconfig index 2646e7d825..ab3ac54a1b 100644 --- a/test/Kconfig +++ b/test/Kconfig @@ -50,6 +50,15 @@ config UT_LIB_RSA endif +config UT_COMPRESSION + bool "Unit test for compression" + depends on UNIT_TEST + depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 + default y + help + Enables tests for compression and decompression routines for simple + sanity and for buffer overflow conditions. + config UT_LOG bool "Unit tests for logging functions" depends on UNIT_TEST diff --git a/test/Makefile b/test/Makefile index 39ae04a3d2..8296734eb3 100644 --- a/test/Makefile +++ b/test/Makefile @@ -8,7 +8,7 @@ endif obj-$(CONFIG_$(SPL_)CMDLINE) += cmd/ obj-$(CONFIG_$(SPL_)CMDLINE) += cmd_ut.o obj-$(CONFIG_$(SPL_)CMDLINE) += command_ut.o -obj-$(CONFIG_$(SPL_)CMDLINE) += compression.o +obj-$(CONFIG_$(SPL_)UT_COMPRESSION) += compression.o obj-y += dm/ obj-$(CONFIG_$(SPL_)CMDLINE) += print_ut.o obj-$(CONFIG_$(SPL_)CMDLINE) += str_ut.o