qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 377
blob071b840cfd4c62469433215b59df4e66e852701f
1 #! /bin/sh
2 # PCP QA Test No. 377
3 # Prototype bit-field swizzling for endian support
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 if [ -f $PCP_INC_DIR/config.h ]
17 then
18 # PCP 3.8.3 or later
19 defs=$PCP_INC_DIR/config.h
20 elif [ -f $PCP_INC_DIR/platform_header.h ]
21 then
22 # PCP 3.6 or later
23 defs=$PCP_INC_DIR/platform_header.h
24 elif [ -f $PCP_INC_DIR/platform_defs.h ]
25 then
26 # older PCP versions
27 defs=$PCP_INC_DIR/platform_defs.h
28 else
29 _notrun "No $PCP_INC_DIR headers found"
31 grep '#define HAVE_BITFIELDS_LTOR' $defs >/dev/null 2>&1 || \
32 _notrun "HAVE_BITFIELDS_LTOR is false"
34 status=1 # failure is the default!
35 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
37 # real QA test starts here
38 echo "=== read external format ==="
39 src/read-bf <src/sgi.bf
41 echo
42 echo "=== write external format ==="
43 src/write-bf >$tmp.out
44 cmp src/sgi.bf $tmp.out
46 # success, all done
47 status=0
48 exit