source: trunk/config.tests/unix/doubleformat.test@ 271

Last change on this file since 271 was 2, checked in by Dmitry A. Kuminov, 17 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/sh
2
3QMKSPEC=$1
4VERBOSE=$2
5SRCDIR=$3
6OUTDIR=$4
7
8# debuggery
9[ "$VERBOSE" = "yes" ] && echo "Determining floating point word-order... ($*)"
10
11# build and run a test program
12test -d "$OUTDIR/config.tests/unix/doubleformat" || mkdir -p "$OUTDIR/config.tests/unix/doubleformat"
13"$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "$SRCDIR/config.tests/unix/doubleformat/doubleformattest.pro" -o "$OUTDIR/config.tests/unix/doubleformat/Makefile" >/dev/null 2>&1
14cd "$OUTDIR/config.tests/unix/doubleformat"
15
16DOUBLEFORMAT="UNKNOWN"
17[ "$VERBOSE" = "yes" ] && make || make >/dev/null 2>&1
18
19if [ -f ./doubleformattest ]; then
20 : # nop
21else
22 [ "$VERBOSE" = "yes" ] && echo "Unknown floating point format!"