Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp561991rdb; Mon, 15 Jan 2024 06:23:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrBKzfGZnMs6wZJBCfvnl/ubsjNFP9RUwlcxaSORc/XKGfbBVcXarT/5FVbC0+BeVa6qXp X-Received: by 2002:a17:903:60f:b0:1d4:47ea:639c with SMTP id kg15-20020a170903060f00b001d447ea639cmr2301615plb.33.1705328617815; Mon, 15 Jan 2024 06:23:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705328617; cv=none; d=google.com; s=arc-20160816; b=WGwxfbsVhlKtA/dtOW4f/AqgtFiiGXtpyHpC1oGE7drj8JstZS8a9/xSJtZ9u6MKdc s0KfGRN2fUHXLsP/GHtDpe94uIJT0RB1xqPn8tiClMPs5rQ3ma8u9i/LnJT/ofpwQknN xz1gZ9d/uXg1Em0thU7ewdi7k3/xYAuMe8kZUxEFeXO/t6YNRk/Uxih6gVFxY+NVw80c BfLHf3b7JZUMFVyMqXd3LBaecPCKEvoUgjZyMqH3cbcFn6//Ytkmox/SdnoWCCC1aMuu x1/EjWpvZdCZ+KOH7NhfVaaAB2nlC7wAtnroZL7u3mjS/Xo9bLls2KS6JPWTwSYl221X P0MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=0h22E0S1+9QElFJbNQmfL5EyYQbA4HA5/iTalqi3EMQ=; fh=eNkiCs9ZN+Qx902vMPn7eufwPXBkYufgY4zy7gFLe1M=; b=XKCZQG8ZpSNrJFWze/siHTvPTnTj2b1zaS2vUeUWLNBsATi39oTyouYNfzojyZfQdr J4yV5AncHe26ErzV5NX8UnqvAvXqKE6Vrh/8CkS0+ocKIGXjWEq8yZDR8Hg9NaPFs1jt 76U4Zk3c/TD09k7Cyo1ib4CeSRBwuU/lOUn/ujoiYhrQUg27oTSWPMhViQAx775HjeOs WFwwKcFAMG15xmzu56sN1cGJuu1+G3lu3QZWHj/IUmRw9elYPEFBIXukmvIzRocZ8lDi Q4RruZlqzhK+uY77RQhBj7H46IlPPE101DA+XXBEj87mJFIOP1FYNZkGpThjGxtq6Zuz aIlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26079-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ju20-20020a170903429400b001d0a791c902si8926153plb.136.2024.01.15.06.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 06:23:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26079-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 768FC2825BD for ; Mon, 15 Jan 2024 14:23:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4F4017598; Mon, 15 Jan 2024 14:23:30 +0000 (UTC) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E06917586; Mon, 15 Jan 2024 14:23:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C848D1FD35; Mon, 15 Jan 2024 14:23:26 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id AAD36132FA; Mon, 15 Jan 2024 14:23:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id aTZ6J94/pWUYcgAAD6G6ig (envelope-from ); Mon, 15 Jan 2024 14:23:26 +0000 Date: Mon, 15 Jan 2024 15:22:24 +0100 From: Cyril Hrubis To: Waldemar Brodkorb Cc: Petr Vorel , Greg Ungerer , Rob Landley , Tim Bird , Niklas Cassel , Andrea Cervesato , Jonathan Corbet , Linux-sh list , Christophe Lyon , Randy Dunlap , "linux-kernel@vger.kernel.org" , Li Wang , "linux-m68k@lists.linux-m68k.org" , Geert Uytterhoeven , Linux ARM , John Paul Adrian Glaubitz , linux-riscv , "buildroot@buildroot.org" , "ltp@lists.linux.it" , "automated-testing@lists.yoctoproject.org" Subject: Re: [Buildroot] [Automated-testing] Call for nommu LTP maintainer [was: Re: [PATCH 00/36] Remove UCLINUX from LTP] Message-ID: References: <20240105131135.GA1484621@pevik> <90c1ddc1-c608-30fc-d5aa-fdf63c90d055@landley.net> <20240108090338.GA1552643@pevik> <20240110141455.GC1698252@pevik> <40996ea1-3417-1c2f-ddd2-e6ed45cb6f4b@landley.net> <81c07a13-305a-404b-b14c-3aff8fde3f67@linux-m68k.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; none X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Rspamd-Queue-Id: C848D1FD35 X-Spam-Flag: NO Hi! > RANLIB libltp.a > /home/wbx/arm/toolchain_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/usr/lib/gcc/arm-openadk-uclinuxfdpiceabi/13.2.0/../../../../arm-openadk-uclinuxfdpiceabi/bin/ld: ../../lib/libltp.a(tst_res.o): in function `tst_fork': > /home/wbx/arm/build_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/w-ltp-20230929-1/ltp-full-20230929/lib/tst_res.c:430:(.text+0x952): undefined reference to `fork' > /home/wbx/arm/toolchain_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/usr/lib/gcc/arm-openadk-uclinuxfdpiceabi/13.2.0/../../../../arm-openadk-uclinuxfdpiceabi/bin/ld: ../../lib/libltp.a(tst_test.o): in function `fork_testrun': > /home/wbx/arm/build_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/w-ltp-20230929-1/ltp-full-20230929/lib/tst_test.c:1597:(.text+0xf4e): undefined reference to `fork' > /home/wbx/arm/toolchain_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/usr/lib/gcc/arm-openadk-uclinuxfdpiceabi/13.2.0/../../../../arm-openadk-uclinuxfdpiceabi/bin/ld: ../../lib/libltp.a(tst_test.o): in function `safe_fork': > /home/wbx/arm/build_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/w-ltp-20230929-1/ltp-full-20230929/lib/tst_test.c:435:(.text+0x345c): undefined reference to `fork' > collect2: error: ld returned 1 exit status > gmake[8]: *** [../../include/mk/rules.mk:45: test01] Error 1 > gmake[7]: *** [../include/mk/generic_trunk_target.inc:108: all] Error 2 > gmake[6]: *** [Makefile:94: lib-all] Error 2 > gmake[5]: *** [/home/wbx/arm/mk/pkg-bottom.mk:141: /home/wbx/arm/build_st-stm32f746g_uclibc-ng_cortex_m7_soft_eabi_thumb_nommu/w-ltp-20230929-1/ltp-full-20230929/.build_done] Error 2 > gmake[4]: *** [Makefile:61: ltp-compile] Error 2 > gmake[3]: *** [mk/build.mk:221: package/compile] Error 2 > gmake[2]: *** [/home/wbx/arm/mk/build.mk:176: world] Error 2 > > So there is really work to be done to make the existing code work on noMMU. The new test library in LTP runs the actuall test in a child process, which provides all kinds of benefits, most notably isolation of the setup/cleanup/result reporting from actuall test code that may crash. This is of course useless on nommu targets, so I suppose that we would need a test library tailored for nommu first. However the testcases themselve fork quite often too. Which means that some kind of parameter marshaling into a string needs to be done for such tests as well each test needs to be adjusted to use that in a case of nommu. All in all getting into a state where majority of tests runs on nommu would be a major effort. -- Cyril Hrubis chrubis@suse.cz