[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: How do I write test cases for interactive commands?
From:       Enji Cooper <yaneurabeya () gmail ! com>
Date:       2021-04-19 21:22:54
Message-ID: 23AB05ED-BF78-47CD-82B1-2CB7EB65F6B2 () gmail ! com
[Download RAW message or body]

> On Apr 19, 2021, at 6:04 AM, Alexander Richardson <arichardson@freebsd.org> wrote:
> 
> On Sat, 17 Apr 2021 at 17:14, Enji Cooper <yaneurabeya@gmail.com> wrote:
> > 
> > 
> > > On Apr 14, 2021, at 10:40 PM, Gleb Popov <arrowd@freebsd.org> wrote:
> > 
> > …
> > 
> > > Take a look at LLVM testing infrastructure and specifically the llvm-lit
> > > tool.
> > 
> > Does their test infrastructure leverage GoogleTest? If so, then the bulk majority \
> > of the work would just be integrating it into Kyua. Cheers,
> > -Enji
> > 
> 
> 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.
> 
> 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


["signature.asc" (signature.asc)]

-----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-----


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic