From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30572 invoked by alias); 4 Jan 2008 02:02:12 -0000 Received: (qmail 30463 invoked by uid 22791); 4 Jan 2008 02:02:11 -0000 X-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 Jan 2008 02:00:21 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m0420J2p028488 for ; Thu, 3 Jan 2008 21:00:19 -0500 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0420JGM010353 for ; Thu, 3 Jan 2008 21:00:19 -0500 Received: from localhost.localdomain (vpn-14-210.rdu.redhat.com [10.11.14.210]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0420JUj017834 for ; Thu, 3 Jan 2008 21:00:19 -0500 Message-ID: <477D9333.5050106@redhat.com> Date: Fri, 04 Jan 2008 02:02:00 -0000 From: Nurdin Premji User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: frysk Subject: How to get installed compiler version for test cases? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00005.txt.bz2 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