5 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 cat <<End-of-File >$tmp.root
39 cat <<End-of-File >$tmp.root2
52 cat <<End-of-File >$tmp.root3
68 # real QA test starts here
71 pmnsmerge
$tmp.root
$tmp.tmp
>$tmp.out
2>&1
74 echo "exit status: $xit"
76 [ -f $tmp.tmp
] || not
=' not'
77 echo "output PMNS$not created"
82 pmnsmerge
-x $tmp.root
$tmp.tmp
>$tmp.out
2>&1
85 echo "exit status: $xit"
87 [ -f $tmp.tmp
] || not
=' not'
88 echo "output PMNS$not created"
93 pmnsmerge
$tmp.root
$tmp.root2
$tmp.tmp
>$tmp.out
2>&1
96 echo "exit status: $xit"
98 [ -f $tmp.tmp
] || not
=' not'
99 echo "output PMNS$not created"
102 echo "dups - order reversed"
104 pmnsmerge
$tmp.root
$tmp.root3
$tmp.tmp
>$tmp.out
2>&1
107 echo "exit status: $xit"
109 [ -f $tmp.tmp
] || not
=' not'
110 echo "output PMNS$not created"
115 pmnsmerge
-x $tmp.root
$tmp.root2
$tmp.tmp
>$tmp.out
2>&1
118 echo "exit status: $xit"
120 [ -f $tmp.tmp
] || not
=' not'
121 echo "output PMNS$not created"
124 echo "dups -x - order reversed"
126 pmnsmerge
-x $tmp.root
$tmp.root3
$tmp.tmp
>$tmp.out
2>&1
129 echo "exit status: $xit"
131 [ -f $tmp.tmp
] || not
=' not'
132 echo "output PMNS$not created"
135 echo "dups - 3 input files"
137 pmnsmerge
$tmp.root
$tmp.root2
$tmp.root3
$tmp.tmp
>$tmp.out
2>&1
140 echo "exit status: $xit"
142 [ -f $tmp.tmp
] || not
=' not'
143 echo "output PMNS$not created"
144 cp $tmp.tmp
$tmp.merged
149 pmnsmerge
$tmp.merged
$tmp.tmp
>$tmp.out
2>&1
152 echo "exit status: $xit"
154 [ -f $tmp.tmp
] || not
=' not'
155 echo "output PMNS$not created"
160 pmnsmerge
-x $tmp.merged
$tmp.tmp
>$tmp.out
2>&1
163 echo "exit status: $xit"
165 [ -f $tmp.tmp
] || not
=' not'
166 echo "output PMNS$not created"