From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29596 invoked by alias); 16 Dec 2019 22:09:15 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 29587 invoked by uid 89); 16 Dec 2019 22:09:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:87sglk0, H*i:sk:87sglk0, H*c:alternative, HX-HELO:sk:mail-ed X-HELO: mail-ed1-f45.google.com Received: from mail-ed1-f45.google.com (HELO mail-ed1-f45.google.com) (209.85.208.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Dec 2019 22:09:13 +0000 Received: by mail-ed1-f45.google.com with SMTP id bx28so3162768edb.11 for ; Mon, 16 Dec 2019 14:09:13 -0800 (PST) Return-Path: Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com. [209.85.221.50]) by smtp.gmail.com with ESMTPSA id i19sm697611edy.46.2019.12.16.14.09.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Dec 2019 14:09:10 -0800 (PST) Received: by mail-wr1-f50.google.com with SMTP id z7so9095419wrl.13 for ; Mon, 16 Dec 2019 14:09:10 -0800 (PST) MIME-Version: 1.0 References: <87sglk0wh2.fsf@keithp.com> In-Reply-To: <87sglk0wh2.fsf@keithp.com> Reply-To: joel@rtems.org From: Joel Sherrill Date: Mon, 16 Dec 2019 22:09:00 -0000 Message-ID: Subject: Re: Making newlib tests work again To: Keith Packard Cc: "newlib@sourceware.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019/txt/msg00665.txt.bz2 Personally, I'd like to see the tests working. I would like to see them running on RTEMS. --joel On Mon, Dec 16, 2019 at 3:52 PM Keith Packard wrote: > > I spent a bunch of time over the last couple of weeks getting the newlib > tests running again in my 'picolibc' fork. In the process, I found a few > bugs in the library which I've got patches for, but I'm wondering if > anyone here has any interest in having the test fixes merged in. I'm not > sure how useful they would be in the newlib tree as I'm not sure how to > run them here. > > The 'big' change was to re-generate all of the math test cases using > glibc on x86-64. There's code in the libm tests to re-emit the C code > which I used for that. For the string conversion tests, I cobbled some > hacks together. > > The newlib code I'm using now passes all of the tests on > x86-64-linux-gnu, i686-linux-gnu, arm-none-eabi and > riscv64-unknown-elf. For riscv64-unknown-elf, qemu is able to emulate > all possible processor configurations and I'm testing them all (30 > different newlib builds). For arm-none-eabi, I'm only testing cortex-m3 > for now (qemu-system-arm is not as flexible as qemu-system-riscv32/ > qemu-system-riscv64). > > I don't want to spam the list with a large set of huge patches unless > there's some interest in them; for now, I've got them sitting on github: > > https://github.com/keith-packard/picolibc/tree/fixes-newlib > > -- > -keith >