This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
How to get installed compiler version for test cases?
- From: Nurdin Premji <npremji at redhat dot com>
- To: frysk <frysk at sourceware dot org>
- Date: Thu, 03 Jan 2008 21:00:19 -0500
- Subject: How to get installed compiler version for test cases?
What is the quickest way to find out the installed compiler version for
use with junit Test cases.
I know that for kernel versions there are KernelMatch, KernelVersion and
Uname, to decide which kernels have what features, but the use of uname
is also a function and not just a program.
What I need to do is grab the output of "gcc --version" to decide
whether the new tests should be run or skipped as unresolved.
Thank you,
Nurdin