Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2021 14:22:54 -0700
From:      Enji Cooper <yaneurabeya@gmail.com>
To:        Alexander Richardson <arichardson@freebsd.org>
Cc:        Gleb Popov <arrowd@freebsd.org>, Yoshihiro Ota <ota@j.email.ne.jp>, freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: How do I write test cases for interactive commands?
Message-ID:  <23AB05ED-BF78-47CD-82B1-2CB7EB65F6B2@gmail.com>
In-Reply-To: <CA%2BZ_v8qWO11X=F8Hsuz-D8ORuGzbJ3V33WuCcHgMsDoZPNxwYA@mail.gmail.com>
References:  <20210414190252.69d4bb503fafc73ca1721eb2@j.email.ne.jp> <CALH631mBgRtc2dQAYcp%2BJ=M=Vu1pYDdXLjC-OS3sojs9p0=2FA@mail.gmail.com> <E5A3270D-A5BC-48FE-86D7-CD74B4BD308A@gmail.com> <CA%2BZ_v8qWO11X=F8Hsuz-D8ORuGzbJ3V33WuCcHgMsDoZPNxwYA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_3E326F09-A3D5-4F1B-AA50-AC100C313AA5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Apr 19, 2021, at 6:04 AM, Alexander Richardson =
<arichardson@freebsd.org> wrote:
>=20
> On Sat, 17 Apr 2021 at 17:14, Enji Cooper <yaneurabeya@gmail.com> =
wrote:
>>=20
>>=20
>>> On Apr 14, 2021, at 10:40 PM, Gleb Popov <arrowd@freebsd.org> wrote:
>>=20
>> =E2=80=A6
>>=20
>>> Take a look at LLVM testing infrastructure and specifically the =
llvm-lit
>>> tool.
>>=20
>> Does their test infrastructure leverage GoogleTest? If so, then the =
bulk majority of the work would just be integrating it into Kyua.
>> Cheers,
>> -Enji
>>=20
>=20
> If you are interested in writing tests for llvm/clang/lldb those
> should be submitted upstream and not be part of the FreeBSD source
> tree. Therefore, Kyua is almost certainly not the right solution.
> https://www.llvm.org/docs/TestingGuide.html explains how to write
> tests for LLVM, however, it is quite stale. I would suggest looking at
> existing tests inside LLVM and adjusting those to match what you want
> to test.
>=20
> The FreeBSD src contrib/ import does not include the extensive LLVM
> testsuite, so you could start by looking at
> https://github.com/llvm/llvm-project/tree/main/clang/test for clang
> and https://github.com/llvm/llvm-project/tree/main/lldb/test for LLDB.
> I have never looked at the LLDB tests, but as far as I know there are
> tests that use python to drive the interaction.

Hi Alex,
	My suggestion was more that kyua should be used to run/aggregate =
the test information, not be the actual test =
framework/infrastructure/payload.
	I really appreciate the references :).
Cheers!
-Enji

--Apple-Mail=_3E326F09-A3D5-4F1B-AA50-AC100C313AA5
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEtvtxN6kOllEF3nmX5JFNMZeDGN4FAmB99K4ACgkQ5JFNMZeD
GN6eHhAAh9+0yoHta9uR6TU7HNqc81khBKHkdTgQzqBO56bqDzB3Lp9uWkreT05G
1eqATq/34x4+SV3pb5gjM+79UjwjtyRJ6UGdjpw5OKST4Qo/tvppPG+iFNbHIFgC
rkyFsCNg5zFvk+S1gJ+OtE/8ppC5ytMNOa+DN05BgSdb/NFJHxkj5PMWO5xIbllV
5ut0IeHaksM8EVCPZnzmTgKDs1nyrl7g98unYOkv3k4ED0GmRo0+P9xAX0Twac8+
WE9RDeU3gOZt79EnsZ+rmL6RZTvPHZrgFY+6YQd02/XXU+A369UrE/E9TdAO7GKn
UEPNL6LGFUYlF89wAcJjbrSTMnc6OriHtCIKqgw68H6101uvZGA3/86g4fsOmTwk
5LTLV7EKEq5ZCcXjJydKUcSKtHhgcHR6l54lU4H1LRhjciFfoxdH0eqP5ykFF+ij
63hT1cf7/DJlt56pabCiIvZNyH3fR5t/K5vtZ9NATUAxclsmBlB3aguv/yMD96wf
cKQ2GA2HMZtv1AEVKE5ax2v2UTr0o+KQ916TzuWdM6J535msKXJMewlvfgzl2riW
3y8dyOZP46mJ5MtuGSFKA4Qf9uXsCxUn5Qct+0yYUUMAOBCNNLf4nJIr/jQaUyZv
O2Vie2mN+zlmfX/a4EC94DD3M7fEynjjcGobCiey9JHpRdJk15o=
=pnlE
-----END PGP SIGNATURE-----

--Apple-Mail=_3E326F09-A3D5-4F1B-AA50-AC100C313AA5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23AB05ED-BF78-47CD-82B1-2CB7EB65F6B2>