From owner-freebsd-hackers@freebsd.org Thu Apr 15 05:41:02 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4140F5E005B for ; Thu, 15 Apr 2021 05:41:02 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FLSqx0JrJz4tWJ for ; Thu, 15 Apr 2021 05:41:00 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f52.google.com with SMTP id 12so37048021lfq.13 for ; Wed, 14 Apr 2021 22:41:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EBKJqSLXaumv5idnfq65WwcmIA6VMJlgOhcsDc+NnJ4=; b=XrndH3Fw26UJ1jlU8jh3bGW4Bujh1HO6YMHxyMSEQ2cS4uimAM868ZjaOrbhDn3HmZ Ehev8Oolevv7bfpHfNvNL64hOgbWN5rQclUyu1rzAQfsHNqHK58+QGnjtRU+KMNxnwzJ wuESyBTENtfmEldKG/qJVk1efWb616jKgxBmH6OrRkVhge9JPJcyObGFUNOlEya7N1BG /3yj/irYSveeOWHfNm1a9hu5NFBom5yCDLvUFq0iXZSbUaUbursjl0ttiRemIOXsSmWs N0QJRWqa0g6Y5S+XrHJ+b8G1H4edz1WOc7jBkEm8nI27IL8BFY3y+TGqxOeGxhK/WSad rfXA== X-Gm-Message-State: AOAM530Rfl+AW/EsKha53PtO89VKOBUtoESbD6bjSPglY39bOjsuR/Z+ BRxM9JuvW9KF+At48NZvRCb7WZLsOCa7eA== X-Google-Smtp-Source: ABdhPJxRUulP9Ra4O7wf4YrP53Hr5OONCIHcXv3bKzgIgGoXiOBRzyaVBnnZulKAEZBIzOlXa5ks2g== X-Received: by 2002:a19:500f:: with SMTP id e15mr1237164lfb.543.1618465258620; Wed, 14 Apr 2021 22:40:58 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id x41sm179643lfa.236.2021.04.14.22.40.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Apr 2021 22:40:58 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id r8so37042023lfp.10 for ; Wed, 14 Apr 2021 22:40:57 -0700 (PDT) X-Received: by 2002:a19:e34c:: with SMTP id c12mr1296875lfk.555.1618465257771; Wed, 14 Apr 2021 22:40:57 -0700 (PDT) MIME-Version: 1.0 References: <20210414190252.69d4bb503fafc73ca1721eb2@j.email.ne.jp> In-Reply-To: <20210414190252.69d4bb503fafc73ca1721eb2@j.email.ne.jp> From: Gleb Popov Date: Thu, 15 Apr 2021 08:40:31 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How do I write test cases for interactive commands? To: Yoshihiro Ota Cc: freebsd-hackers X-Rspamd-Queue-Id: 4FLSqx0JrJz4tWJ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.167.52 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-1.95 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.947]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.167.52:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_DKIM_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[209.85.167.52:from:127.0.2.255]; SUBJECT_ENDS_QUESTION(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.52:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.52:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 05:41:02 -0000 On Thu, Apr 15, 2021 at 3:23 AM Yoshihiro Ota wrote: > Hi, > > I'm interested in writing some test cases for lldb and clang. > > How can I write interactive command in/out in Kyua? > Does anyone have some examples? > > I'm also interested in writing test programs to compile again clang to > find compiler/linker bugs. > Where do we use for temporary files and how do we clean up? > > Thanks, > Hiro > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Take a look at LLVM testing infrastructure and specifically the llvm-lit tool.