Changeset 3623
- Timestamp:
- Apr 1, 2005, 10:11:19 AM (21 years ago)
- Location:
- trunk/psModules
- Files:
-
- 12 edited
-
Makefile.am (modified) (1 diff)
-
config.guess (modified) (24 diffs)
-
config.sub (modified) (32 diffs)
-
test/FullUnitTest (modified) (7 diffs)
-
test/Makefile.am (modified) (1 diff)
-
test/runTest (modified) (9 diffs)
-
test/verified/tst_pmFlatField.stderr (modified) (1 diff)
-
test/verified/tst_pmMaskBadPixels.stderr (modified) (7 diffs)
-
test/verified/tst_pmNonLinear.stderr (modified) (3 diffs)
-
test/verified/tst_pmReadoutCombine.stderr (modified) (1 diff)
-
test/verified/tst_pmSubtractBias.stderr (modified) (2 diffs)
-
test/verified/tst_pmSubtractSky.stderr (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/Makefile.am
r1888 r3623 2 2 3 3 SUBDIRS = src test 4 5 test: check -
trunk/psModules/config.guess
r3579 r3623 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.5 6 timestamp='200 3-06-17'4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 6 timestamp='2004-08-11' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 54 54 55 55 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 57 57 Free Software Foundation, Inc. 58 58 … … 137 137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 138 139 ## for Red Hat Linux 140 if test -f /etc/redhat-release ; then 141 VENDOR=redhat ; 142 else 143 VENDOR= ; 144 fi 139 case "${UNAME_MACHINE}" in 140 i?86) 141 test -z "$VENDOR" && VENDOR=pc 142 ;; 143 *) 144 test -z "$VENDOR" && VENDOR=unknown 145 ;; 146 esac 147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse 145 148 146 149 # Note: order is significant - the case branches are not exclusive. … … 205 208 echo "${machine}-${os}${release}" 206 209 exit 0 ;; 210 amd64:OpenBSD:*:*) 211 echo x86_64-unknown-openbsd${UNAME_RELEASE} 212 exit 0 ;; 207 213 amiga:OpenBSD:*:*) 208 214 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 211 217 echo mipsel-unknown-openbsd${UNAME_RELEASE} 212 218 exit 0 ;; 219 cats:OpenBSD:*:*) 220 echo arm-unknown-openbsd${UNAME_RELEASE} 221 exit 0 ;; 213 222 hp300:OpenBSD:*:*) 214 223 echo m68k-unknown-openbsd${UNAME_RELEASE} 215 224 exit 0 ;; 225 luna88k:OpenBSD:*:*) 226 echo m88k-unknown-openbsd${UNAME_RELEASE} 227 exit 0 ;; 216 228 mac68k:OpenBSD:*:*) 217 229 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 244 256 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 245 257 exit 0 ;; 258 *:ekkoBSD:*:*) 259 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 260 exit 0 ;; 261 macppc:MirBSD:*:*) 262 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 263 exit 0 ;; 264 *:MirBSD:*:*) 265 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 266 exit 0 ;; 246 267 alpha:OSF1:*:*) 247 if test $UNAME_RELEASE = "V4.0"; then 268 case $UNAME_RELEASE in 269 *4.0) 248 270 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 249 fi 271 ;; 272 *5.*) 273 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 274 ;; 275 esac 250 276 # According to Compaq, /usr/sbin/psrinfo has been available on 251 277 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 285 311 UNAME_MACHINE="alphaev79" ;; 286 312 esac 313 # A Pn.n version is a patched version. 287 314 # A Vn.n version is a released version. 288 315 # A Tn.n version is a released field test version. 289 316 # A Xn.n version is an unreleased experimental baselevel. 290 317 # 1.2 uses "1.2" for uname -r. 291 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 292 exit 0 ;; 293 Alpha*:OpenVMS:*:*) 294 echo alpha-hp-vms 318 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 295 319 exit 0 ;; 296 320 Alpha\ *:Windows_NT*:*) … … 314 338 *:OS/390:*:*) 315 339 echo i370-ibm-openedition 340 exit 0 ;; 341 *:OS400:*:*) 342 echo powerpc-ibm-os400 316 343 exit 0 ;; 317 344 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 407 434 echo m68k-unknown-mint${UNAME_RELEASE} 408 435 exit 0 ;; 436 m68k:machten:*:*) 437 echo m68k-apple-machten${UNAME_RELEASE} 438 exit 0 ;; 409 439 powerpc:machten:*:*) 410 440 echo powerpc-apple-machten${UNAME_RELEASE} … … 742 772 exit 0 ;; 743 773 *:UNICOS/mp:*:*) 744 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'774 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 745 775 exit 0 ;; 746 776 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) … … 750 780 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 751 781 exit 0 ;; 782 5000:UNIX_System_V:4.*:*) 783 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 784 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 785 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 786 exit 0 ;; 752 787 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 753 788 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} … … 759 794 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 760 795 exit 0 ;; 761 *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 762 # Determine whether the default compiler uses glibc. 763 eval $set_cc_for_build 764 sed 's/^ //' << EOF >$dummy.c 765 #include <features.h> 766 #if __GLIBC__ >= 2 767 LIBC=gnu 768 #else 769 LIBC= 770 #endif 771 EOF 772 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 773 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 796 *:FreeBSD:*:*) 797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 774 798 exit 0 ;; 775 799 i*:CYGWIN*:*) … … 804 828 exit 0 ;; 805 829 *:GNU:*:*) 830 # the GNU system 806 831 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 832 exit 0 ;; 833 *:GNU/*:*:*) 834 # other systems with GNU libc and userland 835 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 807 836 exit 0 ;; 808 837 i*86:Minix:*:*) … … 810 839 exit 0 ;; 811 840 arm*:Linux:*:*) 812 echo ${UNAME_MACHINE}- unknown-linux-gnu841 echo ${UNAME_MACHINE}-${VENDOR}-linux 813 842 exit 0 ;; 814 843 cris:Linux:*:*) 815 echo cris-axis-linux -gnu844 echo cris-axis-linux 816 845 exit 0 ;; 817 846 ia64:Linux:*:*) 818 echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 847 echo ${UNAME_MACHINE}-${VENDOR}-linux 848 exit 0 ;; 849 m32r*:Linux:*:*) 850 echo ${UNAME_MACHINE}-${VENDOR}-linux 819 851 exit 0 ;; 820 852 m68*:Linux:*:*) 821 echo ${UNAME_MACHINE}- unknown-linux-gnu853 echo ${UNAME_MACHINE}-${VENDOR}-linux 822 854 exit 0 ;; 823 855 mips:Linux:*:*) … … 838 870 EOF 839 871 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 840 test x"${CPU}" != x && echo "${CPU}- unknown-linux-gnu" && exit 0872 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 841 873 ;; 842 874 mips64:Linux:*:*) … … 857 889 EOF 858 890 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 859 test x"${CPU}" != x && echo "${CPU}- unknown-linux-gnu" && exit 0891 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 860 892 ;; 861 893 ppc:Linux:*:*) 862 echo powerpc-${VENDOR :-unknown}-linux-gnu894 echo powerpc-${VENDOR}-linux 863 895 exit 0 ;; 864 896 ppc64:Linux:*:*) 865 echo powerpc64-${VENDOR :-unknown}-linux-gnu897 echo powerpc64-${VENDOR}-linux 866 898 exit 0 ;; 867 899 alpha:Linux:*:*) … … 876 908 esac 877 909 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 878 if test "$?" = 0 ; then LIBC=" libc1" ; else LIBC="" ; fi879 echo ${UNAME_MACHINE}- unknown-linux-gnu${LIBC}910 if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi 911 echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} 880 912 exit 0 ;; 881 913 parisc:Linux:*:* | hppa:Linux:*:*) 882 914 # Look for CPU level 883 915 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 884 PA7*) echo hppa1.1- unknown-linux-gnu;;885 PA8*) echo hppa2.0- unknown-linux-gnu;;886 *) echo hppa- unknown-linux-gnu;;916 PA7*) echo hppa1.1-${VENDOR}-linux ;; 917 PA8*) echo hppa2.0-${VENDOR}-linux ;; 918 *) echo hppa-${VENDOR}-linux ;; 887 919 esac 888 920 exit 0 ;; 889 921 parisc64:Linux:*:* | hppa64:Linux:*:*) 890 echo hppa64- unknown-linux-gnu922 echo hppa64-${VENDOR}-linux 891 923 exit 0 ;; 892 924 s390:Linux:*:* | s390x:Linux:*:*) 893 echo ${UNAME_MACHINE}- ${VENDOR:-ibm}-linux-gnu925 echo ${UNAME_MACHINE}-ibm-linux 894 926 exit 0 ;; 895 927 sh64*:Linux:*:*) 896 echo ${UNAME_MACHINE}- unknown-linux-gnu928 echo ${UNAME_MACHINE}-${VENDOR}-linux 897 929 exit 0 ;; 898 930 sh*:Linux:*:*) 899 echo ${UNAME_MACHINE}- unknown-linux-gnu931 echo ${UNAME_MACHINE}-${VENDOR}-linux 900 932 exit 0 ;; 901 933 sparc:Linux:*:* | sparc64:Linux:*:*) 902 echo ${UNAME_MACHINE}- unknown-linux-gnu934 echo ${UNAME_MACHINE}-${VENDOR}-linux 903 935 exit 0 ;; 904 936 x86_64:Linux:*:*) 905 echo x86_64-${VENDOR :-unknown}-linux-gnu937 echo x86_64-${VENDOR}-linux 906 938 exit 0 ;; 907 939 i*86:Linux:*:*) … … 918 950 case "$ld_supported_targets" in 919 951 elf32-i386) 920 TENTATIVE="${UNAME_MACHINE}- pc-linux-gnu"952 TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux" 921 953 ;; 922 954 a.out-i386-linux) 923 echo "${UNAME_MACHINE}- pc-linux-gnuaout"955 echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" 924 956 exit 0 ;; 925 957 coff-i386) 926 echo "${UNAME_MACHINE}- pc-linux-gnucoff"958 echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" 927 959 exit 0 ;; 928 960 "") 929 # Either a pre-BFD a.out linker (linux -gnuoldld) or961 # Either a pre-BFD a.out linker (linuxoldld) or 930 962 # one that does not give us useful --help. 931 echo "${UNAME_MACHINE}- pc-linux-gnuoldld"963 echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld" 932 964 exit 0 ;; 933 965 esac … … 953 985 #endif 954 986 #endif 987 #ifdef __dietlibc__ 988 LIBC=dietlibc 989 #endif 955 990 EOF 956 991 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 957 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR :-pc}-linux-${LIBC}"&& exit 0992 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0 958 993 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 959 994 ;; … … 982 1017 i*86:atheos:*:*) 983 1018 echo ${UNAME_MACHINE}-unknown-atheos 1019 exit 0 ;; 1020 i*86:syllable:*:*) 1021 echo ${UNAME_MACHINE}-pc-syllable 984 1022 exit 0 ;; 985 1023 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) … … 1052 1090 echo m68k-diab-dnix 1053 1091 exit 0 ;; 1054 M68*:*:R3V[567 ]*:*)1092 M68*:*:R3V[5678]*:*) 1055 1093 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1056 3[34 ]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)1094 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 1057 1095 OS_REL='' 1058 1096 test -r /etc/.relid \ … … 1152 1190 exit 0 ;; 1153 1191 *:Darwin:*:*) 1154 case `uname -p` in 1192 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1193 case $UNAME_PROCESSOR in 1155 1194 *86) UNAME_PROCESSOR=i686 ;; 1156 powerpc) UNAME_PROCESSOR=powerpc ;;1195 unknown) UNAME_PROCESSOR=powerpc ;; 1157 1196 esac 1158 1197 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} … … 1169 1208 echo i386-pc-qnx 1170 1209 exit 0 ;; 1171 NSR- [DGKLNPTVW]:NONSTOP_KERNEL:*:*)1210 NSR-?:NONSTOP_KERNEL:*:*) 1172 1211 echo nsr-tandem-nsk${UNAME_RELEASE} 1173 1212 exit 0 ;; … … 1213 1252 echo mips-sei-seiux${UNAME_RELEASE} 1214 1253 exit 0 ;; 1254 *:DragonFly:*:*) 1255 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1256 exit 0 ;; 1257 *:*VMS:*:*) 1258 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1259 case "${UNAME_MACHINE}" in 1260 A*) echo alpha-dec-vms && exit 0 ;; 1261 I*) echo ia64-dec-vms && exit 0 ;; 1262 V*) echo vax-dec-vms && exit 0 ;; 1263 esac 1215 1264 esac 1216 1265 -
trunk/psModules/config.sub
r3579 r3623 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.5 6 timestamp='200 3-06-18'4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 6 timestamp='2004-06-24' 7 7 8 8 # This file is (in principle) common to ALL GNU software. … … 71 71 GNU config.sub ($timestamp) 72 72 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 74 74 Free Software Foundation, Inc. 75 75 … … 119 119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 120 case $maybe_os in 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 122 123 os=-$maybe_os 123 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 145 146 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 146 147 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 147 -apple | -axis )148 -apple | -axis | -knuth | -cray) 148 149 os= 149 150 basic_machine=$1 … … 229 230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 230 231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | am33_2.0 \ 231 233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 232 234 | c4x | clipper \ … … 235 237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 236 238 | i370 | i860 | i960 | ia64 \ 237 | ip2k \238 | m32r | m 68000 | m68k | m88k | mcore \239 | ip2k | iq2000 \ 240 | m32r | m32rle | m68000 | m68k | m88k | mcore \ 239 241 | mips | mipsbe | mipseb | mipsel | mipsle \ 240 242 | mips16 \ … … 248 250 | mipsisa32r2 | mipsisa32r2el \ 249 251 | mipsisa64 | mipsisa64el \ 252 | mipsisa64r2 | mipsisa64r2el \ 250 253 | mipsisa64sb1 | mipsisa64sb1el \ 251 254 | mipsisa64sr71k | mipsisa64sr71kel \ … … 258 261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 259 262 | pyramid \ 260 | s390 | s390x \261 263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 262 264 | sh64 | sh64le \ 263 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv 9 | sparcv9b \265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 264 266 | strongarm \ 265 267 | tahoe | thumb | tic4x | tic80 | tron \ … … 299 301 | bs2000-* \ 300 302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 301 | clipper-* | c ydra-* \303 | clipper-* | craynv-* | cydra-* \ 302 304 | d10v-* | d30v-* | dlx-* \ 303 305 | elxsi-* \ … … 306 308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 307 309 | i*86-* | i860-* | i960-* | ia64-* \ 308 | ip2k-* \309 | m32r-* \310 | ip2k-* | iq2000-* \ 311 | m32r-* | m32rle-* \ 310 312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 311 313 | m88110-* | m88k-* | mcore-* \ … … 321 323 | mipsisa32r2-* | mipsisa32r2el-* \ 322 324 | mipsisa64-* | mipsisa64el-* \ 325 | mipsisa64r2-* | mipsisa64r2el-* \ 323 326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 324 327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 325 328 | mipstx39-* | mipstx39el-* \ 329 | mmix-* \ 326 330 | msp430-* \ 327 | none-* | np1-* | n v1-* | ns16k-* | ns32k-* \331 | none-* | np1-* | ns16k-* | ns32k-* \ 328 332 | orion-* \ 329 333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ … … 331 335 | pyramid-* \ 332 336 | romp-* | rs6000-* \ 333 | s390-* | s390x-* \334 337 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 335 338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 336 339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 337 | sparcv 9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 338 341 | tahoe-* | thumb-* \ 339 342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ … … 362 365 os=-udi 363 366 ;; 367 abacus) 368 basic_machine=abacus-unknown 369 ;; 364 370 adobe68k) 365 371 basic_machine=m68010-adobe … … 379 385 basic_machine=x86_64-pc 380 386 ;; 387 amd64-*) 388 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 389 ;; 381 390 amdahl) 382 391 basic_machine=580-amdahl … … 438 447 os=-unicos 439 448 ;; 449 craynv) 450 basic_machine=craynv-cray 451 os=-unicosmp 452 ;; 453 cr16c) 454 basic_machine=cr16c-unknown 455 os=-elf 456 ;; 440 457 crds | unos) 441 458 basic_machine=m68k-crds … … 443 460 cris | cris-* | etrax*) 444 461 basic_machine=cris-axis 462 ;; 463 crx) 464 basic_machine=crx-unknown 465 os=-elf 445 466 ;; 446 467 da30 | da30-*) … … 643 664 mips3*) 644 665 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 645 ;;646 mmix*)647 basic_machine=mmix-knuth648 os=-mmixware649 666 ;; 650 667 monitor) … … 728 745 basic_machine=np1-gould 729 746 ;; 730 nv1)731 basic_machine=nv1-cray732 os=-unicosmp733 ;;734 747 nsr-tandem) 735 748 basic_machine=nsr-tandem … … 743 756 os=-coff 744 757 ;; 758 os400) 759 basic_machine=powerpc-ibm 760 os=-os400 761 ;; 745 762 OSE68000 | ose68000) 746 763 basic_machine=m68000-ericsson … … 834 851 basic_machine=romp-ibm 835 852 ;; 853 s390 | s390-*) 854 basic_machine=s390-ibm 855 ;; 856 s390x | s390x-*) 857 basic_machine=s390x-ibm 858 ;; 836 859 sa29200) 837 860 basic_machine=a29k-amd … … 956 979 tower | tower-32) 957 980 basic_machine=m68k-ncr 981 ;; 982 tpf) 983 basic_machine=s390x-ibm 984 os=-tpf 958 985 ;; 959 986 udi29k) … … 1030 1057 basic_machine=romp-ibm 1031 1058 ;; 1059 mmix) 1060 basic_machine=mmix-knuth 1061 ;; 1032 1062 rs6000) 1033 1063 basic_machine=rs6000-ibm … … 1052 1082 basic_machine=sh64-unknown 1053 1083 ;; 1054 sparc | sparcv 9 | sparcv9b)1084 sparc | sparcv8 | sparcv9 | sparcv9b) 1055 1085 basic_machine=sparc-sun 1056 1086 ;; … … 1125 1155 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1126 1156 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1127 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1128 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1157 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1158 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1159 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1129 1160 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1130 1161 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1131 1162 | -chorusos* | -chorusrdb* \ 1132 1163 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1133 | -mingw32* | -linux -gnu* | -uxpv* | -beos* | -mpeix* | -udk* \1164 | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1134 1165 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1135 1166 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ … … 1137 1168 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1138 1169 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1139 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* )1170 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1140 1171 # Remember, each alternative MUST END IN *, to match a version number. 1141 1172 ;; … … 1161 1192 os=`echo $os | sed -e 's|mac|macos|'` 1162 1193 ;; 1163 -linux *)1164 os= `echo $os | sed -e 's|linux|linux-gnu|'`1194 -linux-dietlibc) 1195 os=-linux-dietlibc 1165 1196 ;; 1166 1197 -sunos5*) … … 1173 1204 os=-openedition 1174 1205 ;; 1206 -os400*) 1207 os=-os400 1208 ;; 1175 1209 -wince*) 1176 1210 os=-wince … … 1193 1227 -atheos*) 1194 1228 os=-atheos 1229 ;; 1230 -syllable*) 1231 os=-syllable 1195 1232 ;; 1196 1233 -386bsd) … … 1215 1252 -sinix*) 1216 1253 os=-sysv4 1254 ;; 1255 -tpf*) 1256 os=-tpf 1217 1257 ;; 1218 1258 -triton*) … … 1283 1323 os=-aout 1284 1324 ;; 1285 c4x-* | tic4x-*)1286 os=-coff1287 ;;1325 c4x-* | tic4x-*) 1326 os=-coff 1327 ;; 1288 1328 # This must come before the *-dec entry. 1289 1329 pdp10-*) … … 1331 1371 *-ibm) 1332 1372 os=-aix 1373 ;; 1374 *-knuth) 1375 os=-mmixware 1333 1376 ;; 1334 1377 *-wec) … … 1464 1507 vendor=ibm 1465 1508 ;; 1509 -os400*) 1510 vendor=ibm 1511 ;; 1466 1512 -ptx*) 1467 1513 vendor=sequent 1514 ;; 1515 -tpf*) 1516 vendor=ibm 1468 1517 ;; 1469 1518 -vxsim* | -vxworks* | -windiss*) -
trunk/psModules/test/FullUnitTest
r2140 r3623 19 19 # RETURN : integer number of tests which failed 20 20 # 21 # $Revision: 1. 1$ $Name: not supported by cvs2svn $22 # $Date: 200 4-10-14 23:58:56$21 # $Revision: 1.2 $ $Name: not supported by cvs2svn $ 22 # $Date: 2005-04-01 20:11:19 $ 23 23 # 24 24 # Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 use Cwd; 30 30 31 # Provides functions for handling longcommand line options31 # Provides functions for handling psS64 command line options 32 32 use Getopt::Long; 33 33 … … 61 61 # add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment 62 62 # variables 63 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/ lib:$ENV{'LD_LIBRARY_PATH'}";64 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/ lib:$ENV{'DYLD_LIBRARY_PATH'}";63 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/src/.libs:$ENV{'LD_LIBRARY_PATH'}"; 64 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/src/.libs:$ENV{'DYLD_LIBRARY_PATH'}"; 65 65 66 66 # Initialize variables for counting the makes and test failures and the … … 239 239 `make clean`; 240 240 241 # Execute the make distclean242 `make distclean`;243 241 } 244 242 245 243 # Execute the make and save results 246 $_ = join( "\n|| ", split( "\n", "\n" . `make ` ) );244 $_ = join( "\n|| ", split( "\n", "\n" . `make tests` ) ); 247 245 248 246 # Check the output of make for return value != 0 or any of the 249 247 # following words: FAILED, FAULT, ERROR, Not found, SIGNAL 250 if ( ( $? != 0 ) 251 || m/FAILED/i 252 || m/FAULT/i 253 || m/\bERROR/i 254 || m/Not found/i 255 || m/SIGNAL/i ) 256 { 248 if ( $? != 0 ) { 257 249 258 250 # Display the errored output of make if silent option not enabled … … 276 268 # Display the make was successful if silent option not set 277 269 print("\nMake successful.\n") if ( !$silent ); 278 if ($clean) {279 `make install`;280 }281 270 } 282 271 } … … 664 653 s/$hostname\s*/<HOST>/g; 665 654 s/: Line \d+/: Line <LINENO>/g; 666 s/\:\d+/\:<LINENO>/g; 655 s/\(.*\:\d+\)/\(FILE\:LINENO\)/g; 656 s/\s+[\_\-\/\.\w]+\:\d+/ FILE\:LINENO/g; 667 657 s/allocate \d+ bytes at/allocate <N> bytes at/g; 658 s/v\d+.\d+.\d+/vX.X.X/g; 668 659 669 660 # Filter lines with *** malloc. This is an artifact of Mac testing of … … 692 683 s/$hostname\s*/<HOST>/g; 693 684 s/: Line \d+/: Line <LINENO>/g; 694 s/\:\d+/\:<LINENO>/g; 685 s/\(.*\:\d+\)/\(FILE\:LINENO\)/g; 686 s/\s+[\_\-\/\.\w]+\:\d+/ FILE\:LINENO/g; 695 687 s/allocate \d+ bytes at/allocate <N> bytes at/g; 688 s/v\d+.\d+.\d+/vX.X.X/g; 696 689 697 690 # Filter lines with *** malloc. This is an artifact of Mac testing of -
trunk/psModules/test/Makefile.am
r3579 r3623 1 bin_PROGRAMS = tst_pmFlatField tst_pmMaskBadPixels tst_pmNonLinear tst_pmSubtractBias tst_pmReadoutCombine tst_pmSubtractSky tst_pmObjects01 1 # Makefile for psModule tests 2 2 3 3 AM_LDFLAGS = -L../src -lpsmodule $(LDFLAGS) 4 4 5 TESTS = tst_pmFlatField \ 6 tst_pmMaskBadPixels \ 7 tst_pmNonLinear \ 8 tst_pmSubtractBias \ 9 tst_pmReadoutCombine \ 10 tst_pmSubtractSky \ 11 tst_pmObjects01 12 13 check_PROGRAMS = $(TESTS) 14 15 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest --verified=$(srcdir)/verified 16 17 tests: $(TESTS) 18 19 EXTRA_DIST = runTest 20 21 CLEANFILES = $(TESTS) 22 5 23 tst_pmFlatField_SOURCES = tst_pmFlatField.c 6 7 24 tst_pmMaskBadPixels_SOURCES = tst_pmMaskBadPixels.c 8 9 25 tst_pmNonLinear_SOURCES = tst_pmNonLinear.c 10 11 26 tst_pmSubtractBias_SOURCES = tst_pmSubtractBias.c 12 13 27 tst_pmReadoutCombine_SOURCES = tst_pmReadoutCombine.c 14 15 28 tst_pmSubtractSky_SOURCES = tst_pmSubtractSky.c 16 17 29 tst_pmObjects01_SOURCES = tst_pmObjects01.c 18 -
trunk/psModules/test/runTest
r2140 r3623 18 18 # 0 Test run successfull and all tests passed 19 19 # 1 Verified directory did not exist 20 # 2 Verified STDOUT file did not exist21 # 4 Verified STDERR file did not exist22 20 # 8 STDOUT files did not compare 23 21 # 16 STDERR files did not compare 24 22 # 32 Test driver doesn't exist or is not executable 25 # 64 STDOUT captured contains error strings 26 # 128 STDERR captured contains error strings 27 # 256 Test driver did not return zero 23 # 64 Test driver did not return zero 28 24 # 29 25 # SYNOSIS: runTest testDriverName 30 26 # 31 27 # $Revison: $ $Name: not supported by cvs2svn $ 32 # $Date: 200 4-10-14 23:58:56$28 # $Date: 2005-04-01 20:11:19 $ 33 29 # 34 30 # Copyright 2004 Maui High Performance Computering Center, University of Hawaii … … 36 32 ################################################################################ 37 33 38 # Provides functions for handling longcommand line options34 # Provides functions for handling psS64 command line options 39 35 use Getopt::Long; 36 37 $verifiedDir = "verified"; 40 38 41 39 # Assign variables based on the presence of command line options to the script … … 44 42 "resetStderr!" => \$resetStderr, 45 43 "resetStdout!" => \$resetStdout, 44 "verified=s" => \$verifiedDir, 46 45 "help!" => \$help 47 46 ); 48 47 49 if ($help ) {48 if ($help || $#ARGV < 0) { 50 49 print 51 50 "Usage: runTest [--reset] [--resetStderr] [--resetStdout] testfile(s)\n\n"; … … 62 61 63 62 # Set up the PSLIB_ROOT environment variable if the user doesn't have it set 64 if ( !$ENV{'PSLIB_ROOT'} ) { 65 66 # Use the directory directly above test 67 $PSLIB_ROOT = `cd ..;pwd`; 68 69 # Remove newline for the end of path returned 70 chomp($PSLIB_ROOT); 71 72 # Set the environment variable 73 $ENV{'PSLIB_ROOT'} = $PSLIB_ROOT; 74 75 # Display message that PSLIB_ROOT not found and set to 76 print("PSLIB_ROOT not found: set to $PSLIB_ROOT\n"); 77 } 78 79 # Add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment vars 80 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/lib:$ENV{'LD_LIBRARY_PATH'}"; 81 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/lib:$ENV{'DYLD_LIBRARY_PATH'}"; 63 if ( $ENV{'PSLIB_ROOT'} ) { 64 65 # Add PSLIB_ROOT/lib to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment vars 66 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/src/.libs:$ENV{'LD_LIBRARY_PATH'}"; 67 $ENV{'DYLD_LIBRARY_PATH'} = "$ENV{'PSLIB_ROOT'}/src/.libs:$ENV{'DYLD_LIBRARY_PATH'}"; 68 } 82 69 83 70 # Loop through the arguements passed to the script … … 97 84 98 85 # Check if a verified directory exists in the current work directory 99 if ( !( -e "verified") ) {86 if ( !( -e $verifiedDir ) ) { 100 87 101 88 # Display message that verified subdirectory doesn't exist … … 125 112 # Display failure message with return value to user 126 113 if ( $? != 0 && ( $testFile !~ /^A/i ) ) { 127 print( 128 " Failed - Test Driver expected 0 return value (Return value $?)\n" 129 ); 114 print("Failed - Test Driver returned $?, expected 0.\n"); 130 115 } 131 116 elsif ( $? == 0 && ( $testFile =~ /^A/i ) ) { 132 print( 133 " Failed - Test Driver expected abort (Return value $?)\n" 134 );135 }136 $exitValue |= 256; 137 }138 else { 139 140 # Test driver succeeded. 141 142 # Create filtered version of stdout and stderr143 144 # Open the STDOUT file for reading145 open( OUTFILE, "< temp/$testFile.stdout" );146 147 # Open mod file to place filtered STDOUT 148 open( MODFILE, "> temp/$testFile.stdout.mod" );149 open( MODFILE2, "> verified/$testFile.stdout" ) if $resetStdout;150 151 # Replace the variable date, time and host information with constants152 $hostname = `hostname`;153 chop $hostname;154 while (<OUTFILE>) {155 s/\s+\d+:\d+:\d+\w/<TIME>/g;156 s/\d+:\d+:\d+/<DATE>/g;157 s/$hostname\s*/<HOST>/g;158 s/: Line \d+/: Line <LINENO>/g;159 s/\:\d+/\:<LINENO>/g;160 s/allocate \d+ bytes at/allocate <N> bytes at/g; 161 162 # Filter lines with malloc. This is an artifact of memory testing163 # with the Mac testbed164 if ( !m/\*\*\*\smalloc/ ) {165 print MODFILE ($_);166 print MODFILE2 ($_) if $resetStdout;167 }168 } 169 170 # Close mod file171 close(MODFILE);172 close(MODFILE2) if $resetStdout; 173 174 # Close STDERR file175 close(OUTFILE); 176 177 # Open the STDERR file for reading178 open( OUTFILE, "< temp/$testFile.stderr" ); 179 180 # Open mod file to place filtered STDERR181 open( MODFILE, "> temp/$testFile.stderr.mod" );182 open( MODFILE2, "> verified/$testFile.stderr" ) if $resetStderr; 183 184 # Replace the variable date, time and host information with constants185 while (<OUTFILE>) {186 s/\s+\d+:\d+:\d+\w/<TIME>/g;187 s/\d+:\d+:\d+/<DATE>/g;188 s/$hostname\s*/<HOST>/g;189 s/: Line \d+/: Line <LINENO>/g;190 s/\:\d+/\:<LINENO>/g;191 s/allocate \d+ bytes at/allocate <N> bytes at/g;192 193 # Filter lines with malloc. This is an artifact of memory testing 194 # with the Mac testbed195 if ( !m/\*\*\*\smalloc/ ) {196 print MODFILE ($_);197 print MODFILE2 ($_) if $resetStderr;198 }199 } 200 201 # Close mod file 202 close(MODFILE);203 close(MODFILE2) if $resetStderr;204 205 # Close STDERR file 206 close(OUTFILE);207 208 # Compare STDOUT capture with verified file 209 $exitValue |= &compareStream("verified/$testFile.stdout");210 211 # Check exit value to determine if verified file doesn't exist 212 if ( $exitValue & 2 ) {213 214 # STDOUT verified doesn't exist. Search STDOUT capture 215 # for strings indicating error or failure216 $exitValue |= &errorStrSearch("$testFile.stdout");217 }218 219 # Compare STDERR capture with verified file 220 $exitValue |= &compareStream("verified/$testFile.stderr");221 222 # Check exit value to determine if verified file doesn't exist 223 if ( $exitValue & 4 ) {224 225 # STDERR verified doesn't exist. Search STDERR capture 226 # for strings indicating error or failure227 $exitValue |= &errorStrSearch("$testFile.stderr");228 }229 } 230 }117 print("Failed - Test Driver returned $?, expected abort.\n"); 118 } 119 $exitValue |= 64; 120 } 121 122 # Test driver succeeded. 123 124 # Create filtered version of stdout and stderr 125 126 # Open the STDOUT file for reading 127 open( OUTFILE, "< temp/$testFile.stdout" ); 128 129 # Open mod file to place filtered STDOUT 130 open( MODFILE, "> temp/$testFile.stdout.mod" ); 131 open( MODFILE2, "> $verifiedDir/$testFile.stdout" ) if $resetStdout; 132 133 # Replace the variable date, time and host information with constants 134 $hostname = `hostname`; 135 chop $hostname; 136 while (<OUTFILE>) { 137 s/\s+\d+:\d+:\d+\w/<TIME>/g; 138 s/\d+:\d+:\d+/<DATE>/g; 139 s/$hostname\s*/<HOST>/g; 140 s/: Line \d+/: Line <LINENO>/g; 141 s/\(.*\:\d+\)/\(FILE\:LINENO\)/g; 142 s/\s+[\_\-\/\.\w]+\:\d+/ FILE\:LINENO/g; 143 s/allocate \d+ bytes at/allocate <N> bytes at/g; 144 s/v\d+.\d+.\d+/vX.X.X/g; 145 146 # Filter lines with malloc. This is an artifact of memory testing 147 # with the Mac testbed 148 if ( !m/\*\*\*\smalloc/ ) { 149 print MODFILE ($_); 150 print MODFILE2 ($_) if $resetStdout; 151 } 152 } 153 154 # Close mod file 155 close(MODFILE); 156 close(MODFILE2) if $resetStdout; 157 158 # Close STDERR file 159 close(OUTFILE); 160 161 # Open the STDERR file for reading 162 open( OUTFILE, "< temp/$testFile.stderr" ); 163 164 # Open mod file to place filtered STDERR 165 open( MODFILE, "> temp/$testFile.stderr.mod" ); 166 open( MODFILE2, "> $verifiedDir/$testFile.stderr" ) if $resetStderr; 167 168 # Replace the variable date, time and host information with constants 169 while (<OUTFILE>) { 170 s/\s+\d+:\d+:\d+\w/<TIME>/g; 171 s/\d+:\d+:\d+/<DATE>/g; 172 s/$hostname\s*/<HOST>/g; 173 s/: Line \d+/: Line <LINENO>/g; 174 s/\(.*\:\d+\)/\(FILE\:LINENO\)/g; 175 s/\s+[\_\-\/\.\w]+\:\d+/ FILE\:LINENO/g; 176 s/allocate \d+ bytes at/allocate <N> bytes at/g; 177 s/v\d+.\d+.\d+/vX.X.X/g; 178 179 # Filter lines with malloc. This is an artifact of memory testing 180 # with the Mac testbed 181 if ( !m/\*\*\*\smalloc/ ) { 182 print MODFILE ($_); 183 print MODFILE2 ($_) if $resetStderr; 184 } 185 } 186 187 # Close mod file 188 close(MODFILE); 189 close(MODFILE2) if $resetStderr; 190 191 # Close STDERR file 192 close(OUTFILE); 193 194 # Compare STDOUT capture with verified file 195 $exitValue |= &compareStream("$verifiedDir/$testFile.stdout"); 196 197 # Check exit value to determine if verified file doesn't exist 198 if ( $exitValue & 2 ) { 199 200 # STDOUT verified doesn't exist. Search STDOUT capture 201 # for strings indicating error or failure 202 $exitValue |= &errorStrSearch("$testFile.stdout"); 203 } 204 205 # Compare STDERR capture with verified file 206 $exitValue |= &compareStream("$verifiedDir/$testFile.stderr"); 207 208 # Check exit value to determine if verified file doesn't exist 209 if ( $exitValue & 4 ) { 210 211 # STDERR verified doesn't exist. Search STDERR capture 212 # for strings indicating error or failure 213 $exitValue |= &errorStrSearch("$testFile.stderr"); 214 } 215 } 231 216 else { 232 217 … … 320 305 # 321 306 # Return: 0 - Compare successful 322 # 2 - STDOUT verified file doesn't exist323 # 4 - STDERR verified file doesn't exist324 307 # 8 - STDOUT verified file doesn't compare 325 308 # 16 - STDERR verified file doesn't compare … … 333 316 334 317 # Check for existence of verified STD stream files 335 if ( !( -e $streamFile ) ) { 336 337 # Display message to user that verified STDOUT file doesn't exist 338 print(" File $streamFile doesn't exist.\n"); 339 340 # Set exit value bit 1 to indicate proper failure 341 if ( $streamFile =~ /out$/ ) { 342 $returnVal |= 2; 343 } 344 elsif ( $streamFile =~ /err$/ ) { 345 $returnVal |= 4; 346 } 347 } 348 else { 318 if ( -e $streamFile ) { 349 319 350 320 # Verified STD stream file exists … … 352 322 # Create name of the temp file to compare 353 323 $tempFile = $streamFile; 354 $tempFile =~ s/ verified/temp/;324 $tempFile =~ s/$verifiedDir/temp/; 355 325 $tempFile = $tempFile . ".mod"; 356 326 -
trunk/psModules/test/verified/tst_pmFlatField.stderr
r2289 r3623 5 5 \**********************************************************************************/ 6 6 7 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)7 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 8 8 Null not allowed for flat readout. 9 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)9 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 10 10 Null not allowed for input image. 11 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)11 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 12 12 Null not allowed for flat image. 13 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)13 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 14 14 Input image size exceeds that of flat image: (3, 3) vs (2, 2) 15 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)15 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 16 16 Input image mask size exceeds that of flat image: (4, 4) vs (3, 3) 17 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)17 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 18 18 Total offset >= flat image size: (50, 50) vs (3, 3) 19 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)19 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 20 20 Complex types not allowed for input image. Type: 2064 21 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)21 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 22 22 Complex types not allowed for flat image. Type: 2064 23 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)23 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 24 24 Input and flat image types differ: (1032 vs 1028) 25 <DATE><TIME>|<HOST>|E|pmFlatField ( pmFlatField.c:<LINENO>)25 <DATE><TIME>|<HOST>|E|pmFlatField (FILE:LINENO) 26 26 Mask must be PS_TYPE_MASK type. Type: 1028 27 27 -
trunk/psModules/test/verified/tst_pmMaskBadPixels.stderr
r2290 r3623 41 41 \**********************************************************************************/ 42 42 43 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)43 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 44 44 Null not allowed for mask image. 45 45 … … 52 52 \**********************************************************************************/ 53 53 54 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)54 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 55 55 Null not allowed for input image. 56 56 … … 63 63 \**********************************************************************************/ 64 64 65 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)65 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 66 66 Input image size exceeds that of mask image: (60, 60) vs (50, 50) 67 67 … … 74 74 \**********************************************************************************/ 75 75 76 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)76 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 77 77 Input image mask size exceeds that of mask image: (60, 60) vs (50, 50) 78 78 … … 85 85 \**********************************************************************************/ 86 86 87 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)87 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 88 88 Total offset >= mask image: (150, 150) vs (50, 50) 89 89 … … 96 96 \**********************************************************************************/ 97 97 98 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)98 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 99 99 Complex types not allowed for input image. Type: 2064 100 100 … … 107 107 \**********************************************************************************/ 108 108 109 <DATE><TIME>|<HOST>|E|pmMaskBadPixels ( pmMaskBadPixels.c:<LINENO>)109 <DATE><TIME>|<HOST>|E|pmMaskBadPixels (FILE:LINENO) 110 110 Mask must be PS_TYPE_MASK type. Type: 1032 111 111 -
trunk/psModules/test/verified/tst_pmNonLinear.stderr
r2956 r3623 23 23 \**********************************************************************************/ 24 24 25 <DATE><TIME>|<HOST>|E|pmNonLinearityPolynomial ( pmNonLinear.c:<LINENO>)25 <DATE><TIME>|<HOST>|E|pmNonLinearityPolynomial (FILE:LINENO) 26 26 Unallowable operation: inputReadout is NULL. 27 <DATE><TIME>|<HOST>|E|pmNonLinearityPolynomial ( pmNonLinear.c:<LINENO>)27 <DATE><TIME>|<HOST>|E|pmNonLinearityPolynomial (FILE:LINENO) 28 28 Unallowable operation: inputReadout->image is NULL. 29 <DATE><TIME>|<HOST>|E|pmNonLinearityPolynomial ( pmNonLinear.c:<LINENO>)29 <DATE><TIME>|<HOST>|E|pmNonLinearityPolynomial (FILE:LINENO) 30 30 Unallowable operation: input1DPoly is NULL. 31 31 … … 38 38 \**********************************************************************************/ 39 39 40 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup ( pmNonLinear.c:<LINENO>)40 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup (FILE:LINENO) 41 41 Unallowable operation: inputReadout is NULL. 42 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup ( pmNonLinear.c:<LINENO>)42 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup (FILE:LINENO) 43 43 Unallowable operation: inputReadout->image is NULL. 44 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup ( pmNonLinear.c:<LINENO>)44 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup (FILE:LINENO) 45 45 Unallowable operation: inFlux is NULL. 46 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup ( pmNonLinear.c:<LINENO>)46 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup (FILE:LINENO) 47 47 Unallowable operation: outFlux is NULL. 48 48 <DATE><TIME>|<HOST>|W|pmNonLinearityLookup … … 58 58 <DATE><TIME>|<HOST>|W|pmNonLinearityLookup 59 59 WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (25, 23) 60 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup ( pmNonLinear.c:<LINENO>)60 <DATE><TIME>|<HOST>|E|pmNonLinearityLookup (FILE:LINENO) 61 61 pmNonLinearityLookup(): input vector less than 2 elements. Returning inputReadout image. 62 62 <DATE><TIME>|<HOST>|W|vectorBinDisectF32 -
trunk/psModules/test/verified/tst_pmReadoutCombine.stderr
r2942 r3623 14 14 \**********************************************************************************/ 15 15 16 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)16 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 17 17 zero vector has incorrect size (5). Returning NULL. 18 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)18 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 19 19 Unallowable operation: psVector zero has incorrect type. 20 20 <DATE><TIME>|<HOST>|W|pmReadoutCombine 21 21 WARNING: the zero vector too many elements (11) 22 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)22 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 23 23 scale vector has incorrect size (5). Returning NULL. 24 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)24 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 25 25 Unallowable operation: psVector scale has incorrect type. 26 26 <DATE><TIME>|<HOST>|W|pmReadoutCombine 27 27 WARNING: the scale vector has too many elements (20) 28 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)28 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 29 29 Output image (1, 1) is too small to hold combined images. Returning NULL. 30 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)30 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 31 31 Output image offset is larger then input image offset. Returning NULL. 32 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)32 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 33 33 Unallowable operation: inputs is NULL. 34 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)34 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 35 35 Unallowable operation: params is NULL. 36 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)36 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 37 37 Multiple statistical options have been requested. Returning NULL. 38 <DATE><TIME>|<HOST>|E|pmReadoutCombine ( pmReadoutCombine.c:<LINENO>)38 <DATE><TIME>|<HOST>|E|pmReadoutCombine (FILE:LINENO) 39 39 Unallowable operation: params->stats is NULL. 40 40 -
trunk/psModules/test/verified/tst_pmSubtractBias.stderr
r2942 r3623 53 53 \**********************************************************************************/ 54 54 55 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)55 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 56 56 (overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE). Returning in image 57 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)57 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 58 58 (overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE). Returning in image 59 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)59 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 60 60 (overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE). Returning in image 61 61 <DATE><TIME>|<HOST>|W|pmSubtractBias … … 69 69 <DATE><TIME>|<HOST>|W|pmSubtractBias 70 70 WARNING: pmSubtractBias.(): overscan image has 7 columns, input image has 8 columns 71 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)71 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 72 72 Don't know how to scale the overscan vector. Set fit to PM_FIT_SPLINE or PM_FIT_POLYNOMIAL. Returning in image. 73 73 <DATE><TIME>|<HOST>|W|pmSubtractBias 74 74 WARNING: pmSubtractBias.(): overscan image has 7 rows, input image has 8 rows 75 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)75 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 76 76 Don't know how to scale the overscan vector. Set fit to PM_FIT_SPLINE or PM_FIT_POLYNOMIAL. Returning in image. 77 <DATE><TIME>|<HOST>|E|psSubtractFrame ( pmSubtractBias.c:<LINENO>)77 <DATE><TIME>|<HOST>|E|psSubtractFrame (FILE:LINENO) 78 78 bias image does not have enough rows. Returning in image 79 <DATE><TIME>|<HOST>|E|psSubtractFrame ( pmSubtractBias.c:<LINENO>)79 <DATE><TIME>|<HOST>|E|psSubtractFrame (FILE:LINENO) 80 80 bias image does not have enough columns. Returning in image 81 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)81 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 82 82 fit is unallowable (54321). Returning in image. 83 <DATE><TIME>|<HOST>|E|pmSubtractBias ( pmSubtractBias.c:<LINENO>)83 <DATE><TIME>|<HOST>|E|pmSubtractBias (FILE:LINENO) 84 84 overScanAxis is unallowable (54321). Returning in image. 85 85 -
trunk/psModules/test/verified/tst_pmSubtractSky.stderr
r2942 r3623 38 38 \**********************************************************************************/ 39 39 40 <DATE><TIME>|<HOST>|E|pmSubtractSky ( pmSubtractSky.c:<LINENO>)40 <DATE><TIME>|<HOST>|E|pmSubtractSky (FILE:LINENO) 41 41 Unallowable operation: psReadout in or its data is NULL. 42 <DATE><TIME>|<HOST>|E|pmSubtractSky ( pmSubtractSky.c:<LINENO>)42 <DATE><TIME>|<HOST>|E|pmSubtractSky (FILE:LINENO) 43 43 Unallowable operation: psReadout in or its data is NULL. 44 <DATE><TIME>|<HOST>|E|pmSubtractSky ( pmSubtractSky.c:<LINENO>)44 <DATE><TIME>|<HOST>|E|pmSubtractSky (FILE:LINENO) 45 45 Unallowable operation: psImage in has incorrect type. 46 46 <DATE><TIME>|<HOST>|W|pmSubtractSky … … 56 56 <DATE><TIME>|<HOST>|W|pmSubtractSky 57 57 WARNING: pmSubtractSky(): clipSD is -1.000000 58 <DATE><TIME>|<HOST>|E|pmSubtractSky ( pmSubtractSky.c:<LINENO>)58 <DATE><TIME>|<HOST>|E|pmSubtractSky (FILE:LINENO) 59 59 psFit is unallowable (54321). Returning in image. 60 60
Note:
See TracChangeset
for help on using the changeset viewer.
