On Thu, 2025-03-06 at 12:45 +0000, Saifi Khan wrote: > Hi: > > With some comfort level in building GCC, i'd like to learn howto test GCC. > > I'm particularly interested in > - testing the dev builds > - automation scripts > - parts specific to C++, libstdc++ > > Does anyone have a suggestion for a good starting point? Is there a framework > and/or language one needs to learn to be able to effectively test GCC ? > The GCC git repository has good support for testing GCC. As Jonathan Wakely wrote, just run make check (in the build tree, not the source one). Details depend upon the GCC variant and the arguments you pass to its configure script. In addition, when you build GCC as a native compiler, it generally is "bootstrapping" that is compiling itself. Also, GCC accepts plugins, and you could write your own ones (preferably open source) to test specific parts of the compiler. And most open source software are written in C or C++, so you could test by compiling some of them including https://clipsrules.net/ www.fltk.org The software on https://github.com/bstarynk/misc-basile/blob/master/manydl.c is generating an arbitrary number of dlopen-ed but terminating plugins (as generated C code). You could use it to test GCC compilation. https://github.com/RefPerSys/RefPerSys (an inference engine GPL licensed) regards -- Basile STARYNKEVITCH <basile@xxxxxxxxxxxxxxxxx> 8 rue de la Faïencerie 92340 Bourg-la-Reine, France http://starynkevitch.net/Basile & https://github.com/bstarynk