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
62 cat <<End-of-File >$tmp.root4
78 # real QA test starts here
81 pmnsmerge
$tmp.root
$tmp.tmp
>$tmp.out
2>&1
84 echo "exit status: $xit"
86 [ -f $tmp.tmp
] || not
=' not'
87 echo "output PMNS$not created"
92 pmnsmerge
-x $tmp.root
$tmp.tmp
>$tmp.out
2>&1
95 echo "exit status: $xit"
97 [ -f $tmp.tmp
] || not
=' not'
98 echo "output PMNS$not created"
103 pmnsmerge
$tmp.root
$tmp.root2
$tmp.tmp
>$tmp.out
2>&1
106 echo "exit status: $xit"
108 [ -f $tmp.tmp
] || not
=' not'
109 echo "output PMNS$not created"
112 echo "dups - order reversed"
114 pmnsmerge
$tmp.root
$tmp.root3
$tmp.tmp
>$tmp.out
2>&1
117 echo "exit status: $xit"
119 [ -f $tmp.tmp
] || not
=' not'
120 echo "output PMNS$not created"
125 pmnsmerge
-x $tmp.root
$tmp.root2
$tmp.tmp
>$tmp.out
2>&1
128 echo "exit status: $xit"
130 [ -f $tmp.tmp
] || not
=' not'
131 echo "output PMNS$not created"
134 echo "dups -x - order reversed"
136 pmnsmerge
-x $tmp.root
$tmp.root3
$tmp.tmp
>$tmp.out
2>&1
139 echo "exit status: $xit"
141 [ -f $tmp.tmp
] || not
=' not'
142 echo "output PMNS$not created"
145 echo "dups - 3 input files"
147 pmnsmerge
$tmp.root
$tmp.root2
$tmp.root3
$tmp.tmp
>$tmp.out
2>&1
150 echo "exit status: $xit"
152 [ -f $tmp.tmp
] || not
=' not'
153 echo "output PMNS$not created"
154 cp $tmp.tmp
$tmp.merged
157 echo "only dynamic dups - 3 input files"
159 pmnsmerge
$tmp.root
$tmp.root2
$tmp.root4
$tmp.tmp
>$tmp.out
2>&1
162 echo "exit status: $xit"
164 [ -f $tmp.tmp
] || not
=' not'
165 echo "output PMNS$not created"
170 pmnsmerge
$tmp.merged
$tmp.tmp
>$tmp.out
2>&1
173 echo "exit status: $xit"
175 [ -f $tmp.tmp
] || not
=' not'
176 echo "output PMNS$not created"
181 pmnsmerge
-x $tmp.merged
$tmp.tmp
>$tmp.out
2>&1
184 echo "exit status: $xit"
186 [ -f $tmp.tmp
] || not
=' not'
187 echo "output PMNS$not created"