From mboxrd@z Thu Jan 1 00:00:00 1970 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 0AC841758E for ; 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-m68k@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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25E3AC47258 for ; Mon, 15 Jan 2024 14:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tXDnZnaHZN9yhh3LPj6UrVv5WvREReghAgqNY2fQKE8=; b=oW3mU4pxidpJrL hct2muxf3AQGKyayGJOjWjwHw2XOyvkMo64ieCdpI74iSeWC8tg0DxgbxOlJ8qW8wusK5R0FDR0+Q 7EOYHtp5kTPHwyI3I4M3L8CH9xGeDXjvRmkOkTHZTb2XPFDS402N/GcPaooHAXk9kGyXYneJRAeUp TREIyi4IfuWgIdyHYitTDIQnuE05OI02BLJ1c++pqd2jECZbVVhCkxOUsIYegq5yE92IEZqj8dDk3 zmWN2h6HjsBuMhtUk2zdMa0cBFqFkDaYZta05Rc3260WhIuwT4HFXnKiqPP4N9mxVY4zTwmDOLQpX SnI3+XKCA1MmjTc8kB+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rPNsD-009CT0-2U; Mon, 15 Jan 2024 14:23:33 +0000 Received: from smtp-out2.suse.de ([195.135.223.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rPNsA-009CSD-1c; Mon, 15 Jan 2024 14:23:32 +0000 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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-Rspamd-Queue-Id: C848D1FD35 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240115_062330_709999_C3D79CF4 X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35AA8C3DA79 for ; Mon, 15 Jan 2024 14:23:43 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8B0BE3CE363 for ; Mon, 15 Jan 2024 15:23:41 +0100 (CET) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 9D4093CCB0F for ; Mon, 15 Jan 2024 15:23:28 +0100 (CET) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=chrubis@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id BD55C60072A for ; Mon, 15 Jan 2024 15:23:27 +0100 (CET) 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 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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-Rspamd-Queue-Id: C848D1FD35 X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [Buildroot] [Automated-testing] Call for nommu LTP maintainer [was: Re: [PATCH 00/36] Remove UCLINUX from LTP] X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Niklas Cassel , Jonathan Corbet , Linux-sh list , "ltp@lists.linux.it" , "linux-kernel@vger.kernel.org" , "linux-m68k@lists.linux-m68k.org" , Randy Dunlap , Christophe Lyon , Rob Landley , John Paul Adrian Glaubitz , Geert Uytterhoeven , linux-riscv , "buildroot@buildroot.org" , Greg Ungerer , Linux ARM , "automated-testing@lists.yoctoproject.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" 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 -- Mailing list info: https://lists.linux.it/listinfo/ltp From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A8FCC3DA79 for ; Mon, 15 Jan 2024 14:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LDXBnubhvVFjxdqcqWajwjZo4V872vSFiIgN18mersU=; b=4wv4AkPZ2Ls8ZR sOgchYnSh8EVIVfNj3+pYIUYB+feIVR51g+4GDPEo6GTfDTEwGUHGVKfsy9fgg3kvwGZX+Es4p2YC HznbAqbZjLo4UdShIWTuP0kPcPgpObqaM/jYpwtrhPX9jMOikQkBRBVQJdHE1GLcHgPRbMn/JuSYI BBijQ/War430Ga3gaHEJM4Z6E4uJm2eocOrDypD9oJzfosjnuT49B8nc98KsaGZHAonJGNpkkjHMb XRf/Bzgevowe3nDhcoQEGSjHQcG8sILKFA+liF+p3WXMJq1iBIb+wHXSHPBZyhb3HuPUD07gWDwme XvW56CzVXDIy4a3rrY9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rPNsD-009CSv-0o; Mon, 15 Jan 2024 14:23:33 +0000 Received: from smtp-out2.suse.de ([195.135.223.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rPNsA-009CSD-1c; Mon, 15 Jan 2024 14:23:32 +0000 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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-Rspamd-Queue-Id: C848D1FD35 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240115_062330_709999_C3D79CF4 X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel