![]() | |
---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/gcc-12.3.0/INSTALL/ drwxr-xr-x |
Viewing file: Select action/file-type: Installing GCC: TestingBefore you install GCC, we encourage you to run the testsuites and to compare your results with results from a similar configuration that have been submitted to the gcc-testresults mailing list. Some of these archived results are linked from the build status lists at https://gcc.gnu.org/buildstat.html, although not everyone who reports a successful build runs the testsuites and submits the results. This step is optional and may require you to download additional software, but it can give you confidence in your new GCC installation or point out problems before you install and start using your new GCC. First, you must have downloaded the testsuites. These are part of the full distribution, but if you downloaded the “core” compiler plus any front ends, you must download the testsuites separately. Second, you must have the testing tools installed. This includes DejaGnu, Tcl, and Expect; the DejaGnu site has links to these. Some optional tests also require Python3 and pytest module. If the directories where TCL_LIBRARY = /usr/local/share/tcl8.0 DEJAGNULIBS = /usr/local/share/dejagnu (On systems such as Cygwin, these paths are required to be actual paths, not mounts or links; presumably this is due to some lack of portability in the DejaGnu code.) Finally, you can run the testsuite (which may take a long time): cd objdir; make -k check This will test various components of GCC, such as compiler front ends and runtime libraries. While running the testsuite, DejaGnu might emit some harmless messages resembling ‘WARNING: Couldn't find the global config file.’ or ‘WARNING: Couldn't find tool init file’ that can be ignored. If you are testing a cross-compiler, you may want to run the testsuite on a simulator as described at https://gcc.gnu.org/simtest-howto.html. How can you run the testsuite on selected tests?In order to run sets of tests selectively, there are targets ‘make check-gcc’ and language specific ‘make check-c’, ‘make check-c++’, ‘make check-d’ ‘make check-fortran’, ‘make check-ada’, ‘make check-objc’, ‘make check-obj-c++’, ‘make check-lto’ in the gcc subdirectory of the object directory. You can also just run ‘make check’ in a subdirectory of the object directory. A more selective way to just run all make check-gcc RUNTESTFLAGS="execute.exp other-options" Likewise, in order to run only the make check-g++ RUNTESTFLAGS="old-deja.exp=9805* other-options" The file-matching expression following filename make check-g++ RUNTESTFLAGS="old-deja.exp=9805*\ virtual2.c other-options" make check-g++ RUNTESTFLAGS="'old-deja.exp=9805* virtual2.c' other-options" The *.exp files are located in the testsuite directories of the GCC source, the most important ones being compile.exp, execute.exp, dg.exp and old-deja.exp. To get a list of the possible *.exp files, pipe the output of ‘make check’ into a file and look at the ‘Running … .exp’ lines. Passing options and running multiple testsuitesYou can pass multiple options to the testsuite using the
‘--target_board’ option of DejaGNU, either passed as part of
‘RUNTESTFLAGS’, or directly to make check-g++ RUNTESTFLAGS="--target_board=unix/-O3/-fmerge-constants" will run the standard You can run the testsuites multiple times using combinations of options with a syntax similar to the brace expansion of popular shells: …"--target_board=arm-sim\{-mhard-float,-msoft-float\}\{-O1,-O2,-O3,\}" (Note the empty option caused by the trailing comma in the final group.) The following will run each testsuite eight times using the ‘arm-sim’ target, as if you had specified all possible combinations yourself: --target_board='arm-sim/-mhard-float/-O1 \ arm-sim/-mhard-float/-O2 \ arm-sim/-mhard-float/-O3 \ arm-sim/-mhard-float \ arm-sim/-msoft-float/-O1 \ arm-sim/-msoft-float/-O2 \ arm-sim/-msoft-float/-O3 \ arm-sim/-msoft-float' They can be combined as many times as you wish, in arbitrary ways. This list: …"--target_board=unix/-Wextra\{-O3,-fno-strength\}\{-fomit-frame,\}" will generate four combinations, all involving ‘-Wextra’. The disadvantage to this method is that the testsuites are run in serial,
which is a waste on multiprocessor systems. For users with GNU Make and
a shell which performs brace expansion, you can run the testsuites in
parallel by having the shell perform the combinations and make -jN check-testsuite//test-target/option1/option2/… For example, make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu} will run three concurrent “make-gcc” testsuites, eventually testing all
ten combinations as described above. Note that this is currently only
supported in the gcc subdirectory. (To see how this works, try
typing How to interpret test resultsThe result of running the testsuite are various *.sum and *.log files in the testsuite subdirectories. The *.log files contain a detailed log of the compiler invocations and the corresponding results, the *.sum files summarize the results. These summaries contain status codes for all tests:
It is normal for some tests to report unexpected failures. At the current time the testing harness does not allow fine grained control over whether or not a test is expected to fail. This problem should be fixed in future releases. Submitting test resultsIf you want to report the results to the GCC project, use the contrib/test_summary shell script. Start it in the objdir with srcdir/contrib/test_summary -p your_commentary.txt \ -m gcc-testresults@gcc.gnu.org |sh This script uses the
Return to the GCC Installation page |
Useful Commands
|
Php Safe-Mode Bypass (Read Files)
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0054 ]-- |