1#! /bin/sh 2# Copyright (C) 1999, 2000, 2002, 2003, 2004 Red Hat, Inc. 3# Written by Ulrich Drepper <drepper@redhat.com>, 1999. 4# 5# This program is Open Source software; you can redistribute it and/or 6# modify it under the terms of the Open Software License version 1.0 as 7# published by the Open Source Initiative. 8# 9# You should have received a copy of the Open Software License along 10# with this program; if not, you may obtain a copy of the Open Software 11# License version 1.0 from http://www.opensource.org/licenses/osl.php or 12# by writing the Open Source Initiative c/o Lawrence Rosen, Esq., 13# 3001 King Ranch Road, Ukiah, CA 95482. 14set -e 15 16# Don't fail if we cannot decompress the file. 17bunzip2 -c $srcdir/testfile.bz2 > testfile 2>/dev/null || exit 0 18 19# Don't fail if we cannot decompress the file. 20bunzip2 -c $srcdir/testfile2.bz2 > testfile2 2>/dev/null || exit 0 21 22./show-abbrev testfile testfile2 > show-abbrev.out 23 24diff -u show-abbrev.out - <<"EOF" 25abbrev[0]: code = 1, tag = 17, children = 1 26abbrev[0]: attr[0]: code = 16, form = 6, offset = 0 27abbrev[0]: attr[1]: code = 18, form = 1, offset = 2 28abbrev[0]: attr[2]: code = 17, form = 1, offset = 4 29abbrev[0]: attr[3]: code = 3, form = 8, offset = 6 30abbrev[0]: attr[4]: code = 27, form = 8, offset = 8 31abbrev[0]: attr[5]: code = 37, form = 8, offset = 10 32abbrev[0]: attr[6]: code = 19, form = 11, offset = 12 33abbrev[19]: code = 2, tag = 46, children = 1 34abbrev[19]: attr[0]: code = 1, form = 19, offset = 19 35abbrev[19]: attr[1]: code = 63, form = 12, offset = 21 36abbrev[19]: attr[2]: code = 3, form = 8, offset = 23 37abbrev[19]: attr[3]: code = 58, form = 11, offset = 25 38abbrev[19]: attr[4]: code = 59, form = 11, offset = 27 39abbrev[19]: attr[5]: code = 39, form = 12, offset = 29 40abbrev[19]: attr[6]: code = 73, form = 19, offset = 31 41abbrev[19]: attr[7]: code = 17, form = 1, offset = 33 42abbrev[19]: attr[8]: code = 18, form = 1, offset = 35 43abbrev[19]: attr[9]: code = 64, form = 10, offset = 37 44abbrev[44]: code = 3, tag = 46, children = 1 45abbrev[44]: attr[0]: code = 1, form = 19, offset = 44 46abbrev[44]: attr[1]: code = 63, form = 12, offset = 46 47abbrev[44]: attr[2]: code = 3, form = 8, offset = 48 48abbrev[44]: attr[3]: code = 58, form = 11, offset = 50 49abbrev[44]: attr[4]: code = 59, form = 11, offset = 52 50abbrev[44]: attr[5]: code = 73, form = 19, offset = 54 51abbrev[44]: attr[6]: code = 60, form = 12, offset = 56 52abbrev[63]: code = 4, tag = 24, children = 0 53abbrev[68]: code = 5, tag = 46, children = 1 54abbrev[68]: attr[0]: code = 63, form = 12, offset = 68 55abbrev[68]: attr[1]: code = 3, form = 8, offset = 70 56abbrev[68]: attr[2]: code = 58, form = 11, offset = 72 57abbrev[68]: attr[3]: code = 59, form = 11, offset = 74 58abbrev[68]: attr[4]: code = 73, form = 19, offset = 76 59abbrev[68]: attr[5]: code = 60, form = 12, offset = 78 60abbrev[85]: code = 6, tag = 36, children = 0 61abbrev[85]: attr[0]: code = 3, form = 8, offset = 85 62abbrev[85]: attr[1]: code = 11, form = 11, offset = 87 63abbrev[85]: attr[2]: code = 62, form = 11, offset = 89 64abbrev[96]: code = 7, tag = 52, children = 0 65abbrev[96]: attr[0]: code = 3, form = 8, offset = 96 66abbrev[96]: attr[1]: code = 58, form = 11, offset = 98 67abbrev[96]: attr[2]: code = 59, form = 11, offset = 100 68abbrev[96]: attr[3]: code = 73, form = 19, offset = 102 69abbrev[96]: attr[4]: code = 63, form = 12, offset = 104 70abbrev[96]: attr[5]: code = 2, form = 10, offset = 106 71abbrev[0]: code = 1, tag = 17, children = 1 72abbrev[0]: attr[0]: code = 16, form = 6, offset = 114 73abbrev[0]: attr[1]: code = 18, form = 1, offset = 116 74abbrev[0]: attr[2]: code = 17, form = 1, offset = 118 75abbrev[0]: attr[3]: code = 3, form = 8, offset = 120 76abbrev[0]: attr[4]: code = 27, form = 8, offset = 122 77abbrev[0]: attr[5]: code = 37, form = 8, offset = 124 78abbrev[0]: attr[6]: code = 19, form = 11, offset = 126 79abbrev[19]: code = 2, tag = 46, children = 0 80abbrev[19]: attr[0]: code = 63, form = 12, offset = 133 81abbrev[19]: attr[1]: code = 3, form = 8, offset = 135 82abbrev[19]: attr[2]: code = 58, form = 11, offset = 137 83abbrev[19]: attr[3]: code = 59, form = 11, offset = 139 84abbrev[19]: attr[4]: code = 39, form = 12, offset = 141 85abbrev[19]: attr[5]: code = 73, form = 19, offset = 143 86abbrev[19]: attr[6]: code = 17, form = 1, offset = 145 87abbrev[19]: attr[7]: code = 18, form = 1, offset = 147 88abbrev[19]: attr[8]: code = 64, form = 10, offset = 149 89abbrev[42]: code = 3, tag = 36, children = 0 90abbrev[42]: attr[0]: code = 3, form = 8, offset = 156 91abbrev[42]: attr[1]: code = 11, form = 11, offset = 158 92abbrev[42]: attr[2]: code = 62, form = 11, offset = 160 93abbrev[53]: code = 4, tag = 22, children = 0 94abbrev[53]: attr[0]: code = 3, form = 8, offset = 167 95abbrev[53]: attr[1]: code = 58, form = 11, offset = 169 96abbrev[53]: attr[2]: code = 59, form = 11, offset = 171 97abbrev[53]: attr[3]: code = 73, form = 19, offset = 173 98abbrev[66]: code = 5, tag = 15, children = 0 99abbrev[66]: attr[0]: code = 11, form = 11, offset = 180 100abbrev[73]: code = 6, tag = 15, children = 0 101abbrev[73]: attr[0]: code = 11, form = 11, offset = 187 102abbrev[73]: attr[1]: code = 73, form = 19, offset = 189 103abbrev[82]: code = 7, tag = 19, children = 1 104abbrev[82]: attr[0]: code = 1, form = 19, offset = 196 105abbrev[82]: attr[1]: code = 11, form = 11, offset = 198 106abbrev[82]: attr[2]: code = 58, form = 11, offset = 200 107abbrev[82]: attr[3]: code = 59, form = 11, offset = 202 108abbrev[95]: code = 8, tag = 13, children = 0 109abbrev[95]: attr[0]: code = 3, form = 8, offset = 209 110abbrev[95]: attr[1]: code = 58, form = 11, offset = 211 111abbrev[95]: attr[2]: code = 59, form = 11, offset = 213 112abbrev[95]: attr[3]: code = 73, form = 19, offset = 215 113abbrev[95]: attr[4]: code = 56, form = 10, offset = 217 114abbrev[110]: code = 9, tag = 1, children = 1 115abbrev[110]: attr[0]: code = 1, form = 19, offset = 224 116abbrev[110]: attr[1]: code = 73, form = 19, offset = 226 117abbrev[119]: code = 10, tag = 33, children = 0 118abbrev[119]: attr[0]: code = 73, form = 19, offset = 233 119abbrev[119]: attr[1]: code = 47, form = 11, offset = 235 120abbrev[128]: code = 11, tag = 19, children = 1 121abbrev[128]: attr[0]: code = 1, form = 19, offset = 242 122abbrev[128]: attr[1]: code = 3, form = 8, offset = 244 123abbrev[128]: attr[2]: code = 11, form = 11, offset = 246 124abbrev[128]: attr[3]: code = 58, form = 11, offset = 248 125abbrev[128]: attr[4]: code = 59, form = 11, offset = 250 126abbrev[143]: code = 12, tag = 19, children = 0 127abbrev[143]: attr[0]: code = 3, form = 8, offset = 257 128abbrev[143]: attr[1]: code = 60, form = 12, offset = 259 129abbrev[152]: code = 13, tag = 13, children = 0 130abbrev[152]: attr[0]: code = 3, form = 8, offset = 266 131abbrev[152]: attr[1]: code = 58, form = 11, offset = 268 132abbrev[152]: attr[2]: code = 59, form = 5, offset = 270 133abbrev[152]: attr[3]: code = 73, form = 19, offset = 272 134abbrev[152]: attr[4]: code = 56, form = 10, offset = 274 135abbrev[167]: code = 14, tag = 22, children = 0 136abbrev[167]: attr[0]: code = 3, form = 8, offset = 281 137abbrev[167]: attr[1]: code = 58, form = 11, offset = 283 138abbrev[167]: attr[2]: code = 59, form = 5, offset = 285 139abbrev[167]: attr[3]: code = 73, form = 19, offset = 287 140abbrev[180]: code = 15, tag = 23, children = 1 141abbrev[180]: attr[0]: code = 1, form = 19, offset = 294 142abbrev[180]: attr[1]: code = 11, form = 11, offset = 296 143abbrev[180]: attr[2]: code = 58, form = 11, offset = 298 144abbrev[180]: attr[3]: code = 59, form = 11, offset = 300 145abbrev[193]: code = 16, tag = 13, children = 0 146abbrev[193]: attr[0]: code = 3, form = 8, offset = 307 147abbrev[193]: attr[1]: code = 58, form = 11, offset = 309 148abbrev[193]: attr[2]: code = 59, form = 11, offset = 311 149abbrev[193]: attr[3]: code = 73, form = 19, offset = 313 150abbrev[206]: code = 17, tag = 4, children = 1 151abbrev[206]: attr[0]: code = 1, form = 19, offset = 320 152abbrev[206]: attr[1]: code = 11, form = 11, offset = 322 153abbrev[206]: attr[2]: code = 58, form = 11, offset = 324 154abbrev[206]: attr[3]: code = 59, form = 11, offset = 326 155abbrev[219]: code = 18, tag = 40, children = 0 156abbrev[219]: attr[0]: code = 3, form = 8, offset = 333 157abbrev[219]: attr[1]: code = 28, form = 11, offset = 335 158abbrev[228]: code = 19, tag = 38, children = 0 159abbrev[228]: attr[0]: code = 73, form = 19, offset = 342 160abbrev[235]: code = 20, tag = 21, children = 1 161abbrev[235]: attr[0]: code = 1, form = 19, offset = 349 162abbrev[235]: attr[1]: code = 39, form = 12, offset = 351 163abbrev[235]: attr[2]: code = 73, form = 19, offset = 353 164abbrev[246]: code = 21, tag = 5, children = 0 165abbrev[246]: attr[0]: code = 73, form = 19, offset = 360 166abbrev[253]: code = 22, tag = 21, children = 1 167abbrev[253]: attr[0]: code = 1, form = 19, offset = 367 168abbrev[253]: attr[1]: code = 39, form = 12, offset = 369 169abbrev[262]: code = 23, tag = 33, children = 0 170abbrev[262]: attr[0]: code = 73, form = 19, offset = 376 171abbrev[262]: attr[1]: code = 47, form = 6, offset = 378 172abbrev[271]: code = 24, tag = 22, children = 0 173abbrev[271]: attr[0]: code = 3, form = 8, offset = 385 174abbrev[271]: attr[1]: code = 58, form = 11, offset = 387 175abbrev[271]: attr[2]: code = 59, form = 11, offset = 389 176abbrev[282]: code = 25, tag = 4, children = 1 177abbrev[282]: attr[0]: code = 1, form = 19, offset = 396 178abbrev[282]: attr[1]: code = 3, form = 8, offset = 398 179abbrev[282]: attr[2]: code = 11, form = 11, offset = 400 180abbrev[282]: attr[3]: code = 58, form = 11, offset = 402 181abbrev[282]: attr[4]: code = 59, form = 11, offset = 404 182abbrev[0]: code = 1, tag = 17, children = 1 183abbrev[0]: attr[0]: code = 16, form = 6, offset = 412 184abbrev[0]: attr[1]: code = 18, form = 1, offset = 414 185abbrev[0]: attr[2]: code = 17, form = 1, offset = 416 186abbrev[0]: attr[3]: code = 3, form = 8, offset = 418 187abbrev[0]: attr[4]: code = 27, form = 8, offset = 420 188abbrev[0]: attr[5]: code = 37, form = 8, offset = 422 189abbrev[0]: attr[6]: code = 19, form = 11, offset = 424 190abbrev[19]: code = 2, tag = 46, children = 0 191abbrev[19]: attr[0]: code = 63, form = 12, offset = 431 192abbrev[19]: attr[1]: code = 3, form = 8, offset = 433 193abbrev[19]: attr[2]: code = 58, form = 11, offset = 435 194abbrev[19]: attr[3]: code = 59, form = 11, offset = 437 195abbrev[19]: attr[4]: code = 39, form = 12, offset = 439 196abbrev[19]: attr[5]: code = 73, form = 19, offset = 441 197abbrev[19]: attr[6]: code = 17, form = 1, offset = 443 198abbrev[19]: attr[7]: code = 18, form = 1, offset = 445 199abbrev[19]: attr[8]: code = 64, form = 10, offset = 447 200abbrev[42]: code = 3, tag = 36, children = 0 201abbrev[42]: attr[0]: code = 3, form = 8, offset = 454 202abbrev[42]: attr[1]: code = 11, form = 11, offset = 456 203abbrev[42]: attr[2]: code = 62, form = 11, offset = 458 204abbrev[0]: code = 1, tag = 17, children = 1 205abbrev[0]: attr[0]: code = 16, form = 6, offset = 0 206abbrev[0]: attr[1]: code = 18, form = 1, offset = 2 207abbrev[0]: attr[2]: code = 17, form = 1, offset = 4 208abbrev[0]: attr[3]: code = 3, form = 8, offset = 6 209abbrev[0]: attr[4]: code = 27, form = 8, offset = 8 210abbrev[0]: attr[5]: code = 37, form = 8, offset = 10 211abbrev[0]: attr[6]: code = 19, form = 11, offset = 12 212abbrev[19]: code = 2, tag = 46, children = 0 213abbrev[19]: attr[0]: code = 63, form = 12, offset = 19 214abbrev[19]: attr[1]: code = 3, form = 8, offset = 21 215abbrev[19]: attr[2]: code = 58, form = 11, offset = 23 216abbrev[19]: attr[3]: code = 59, form = 11, offset = 25 217abbrev[19]: attr[4]: code = 39, form = 12, offset = 27 218abbrev[19]: attr[5]: code = 73, form = 19, offset = 29 219abbrev[19]: attr[6]: code = 17, form = 1, offset = 31 220abbrev[19]: attr[7]: code = 18, form = 1, offset = 33 221abbrev[19]: attr[8]: code = 64, form = 10, offset = 35 222abbrev[42]: code = 3, tag = 36, children = 0 223abbrev[42]: attr[0]: code = 3, form = 8, offset = 42 224abbrev[42]: attr[1]: code = 11, form = 11, offset = 44 225abbrev[42]: attr[2]: code = 62, form = 11, offset = 46 226abbrev[53]: code = 4, tag = 22, children = 0 227abbrev[53]: attr[0]: code = 3, form = 8, offset = 53 228abbrev[53]: attr[1]: code = 58, form = 11, offset = 55 229abbrev[53]: attr[2]: code = 59, form = 11, offset = 57 230abbrev[53]: attr[3]: code = 73, form = 19, offset = 59 231abbrev[66]: code = 5, tag = 1, children = 1 232abbrev[66]: attr[0]: code = 1, form = 19, offset = 66 233abbrev[66]: attr[1]: code = 3, form = 8, offset = 68 234abbrev[66]: attr[2]: code = 73, form = 19, offset = 70 235abbrev[77]: code = 6, tag = 33, children = 0 236abbrev[77]: attr[0]: code = 73, form = 19, offset = 77 237abbrev[77]: attr[1]: code = 47, form = 11, offset = 79 238abbrev[86]: code = 7, tag = 19, children = 1 239abbrev[86]: attr[0]: code = 1, form = 19, offset = 86 240abbrev[86]: attr[1]: code = 3, form = 8, offset = 88 241abbrev[86]: attr[2]: code = 11, form = 11, offset = 90 242abbrev[86]: attr[3]: code = 58, form = 11, offset = 92 243abbrev[86]: attr[4]: code = 59, form = 11, offset = 94 244abbrev[101]: code = 8, tag = 13, children = 0 245abbrev[101]: attr[0]: code = 3, form = 8, offset = 101 246abbrev[101]: attr[1]: code = 58, form = 11, offset = 103 247abbrev[101]: attr[2]: code = 59, form = 11, offset = 105 248abbrev[101]: attr[3]: code = 73, form = 19, offset = 107 249abbrev[101]: attr[4]: code = 56, form = 10, offset = 109 250abbrev[116]: code = 9, tag = 15, children = 0 251abbrev[116]: attr[0]: code = 11, form = 11, offset = 116 252abbrev[123]: code = 10, tag = 15, children = 0 253abbrev[123]: attr[0]: code = 11, form = 11, offset = 123 254abbrev[123]: attr[1]: code = 73, form = 19, offset = 125 255abbrev[132]: code = 11, tag = 19, children = 1 256abbrev[132]: attr[0]: code = 1, form = 19, offset = 132 257abbrev[132]: attr[1]: code = 11, form = 11, offset = 134 258abbrev[132]: attr[2]: code = 58, form = 11, offset = 136 259abbrev[132]: attr[3]: code = 59, form = 11, offset = 138 260abbrev[145]: code = 12, tag = 1, children = 1 261abbrev[145]: attr[0]: code = 1, form = 19, offset = 145 262abbrev[145]: attr[1]: code = 73, form = 19, offset = 147 263abbrev[154]: code = 13, tag = 22, children = 0 264abbrev[154]: attr[0]: code = 3, form = 8, offset = 154 265abbrev[154]: attr[1]: code = 58, form = 11, offset = 156 266abbrev[154]: attr[2]: code = 59, form = 5, offset = 158 267abbrev[154]: attr[3]: code = 73, form = 19, offset = 160 268abbrev[167]: code = 14, tag = 19, children = 0 269abbrev[167]: attr[0]: code = 3, form = 8, offset = 167 270abbrev[167]: attr[1]: code = 60, form = 12, offset = 169 271abbrev[176]: code = 15, tag = 22, children = 0 272abbrev[176]: attr[0]: code = 3, form = 8, offset = 176 273abbrev[176]: attr[1]: code = 58, form = 11, offset = 178 274abbrev[176]: attr[2]: code = 59, form = 11, offset = 180 275abbrev[187]: code = 16, tag = 21, children = 1 276abbrev[187]: attr[0]: code = 1, form = 19, offset = 187 277abbrev[187]: attr[1]: code = 39, form = 12, offset = 189 278abbrev[187]: attr[2]: code = 73, form = 19, offset = 191 279abbrev[198]: code = 17, tag = 5, children = 0 280abbrev[198]: attr[0]: code = 73, form = 19, offset = 198 281abbrev[205]: code = 18, tag = 38, children = 0 282abbrev[205]: attr[0]: code = 73, form = 19, offset = 205 283abbrev[0]: code = 1, tag = 17, children = 1 284abbrev[0]: attr[0]: code = 16, form = 6, offset = 213 285abbrev[0]: attr[1]: code = 18, form = 1, offset = 215 286abbrev[0]: attr[2]: code = 17, form = 1, offset = 217 287abbrev[0]: attr[3]: code = 3, form = 8, offset = 219 288abbrev[0]: attr[4]: code = 27, form = 8, offset = 221 289abbrev[0]: attr[5]: code = 37, form = 8, offset = 223 290abbrev[0]: attr[6]: code = 19, form = 11, offset = 225 291abbrev[19]: code = 2, tag = 46, children = 0 292abbrev[19]: attr[0]: code = 63, form = 12, offset = 232 293abbrev[19]: attr[1]: code = 3, form = 8, offset = 234 294abbrev[19]: attr[2]: code = 58, form = 11, offset = 236 295abbrev[19]: attr[3]: code = 59, form = 11, offset = 238 296abbrev[19]: attr[4]: code = 39, form = 12, offset = 240 297abbrev[19]: attr[5]: code = 73, form = 19, offset = 242 298abbrev[19]: attr[6]: code = 17, form = 1, offset = 244 299abbrev[19]: attr[7]: code = 18, form = 1, offset = 246 300abbrev[19]: attr[8]: code = 64, form = 10, offset = 248 301abbrev[42]: code = 3, tag = 36, children = 0 302abbrev[42]: attr[0]: code = 3, form = 8, offset = 255 303abbrev[42]: attr[1]: code = 11, form = 11, offset = 257 304abbrev[42]: attr[2]: code = 62, form = 11, offset = 259 305abbrev[0]: code = 1, tag = 17, children = 1 306abbrev[0]: attr[0]: code = 16, form = 6, offset = 267 307abbrev[0]: attr[1]: code = 18, form = 1, offset = 269 308abbrev[0]: attr[2]: code = 17, form = 1, offset = 271 309abbrev[0]: attr[3]: code = 3, form = 8, offset = 273 310abbrev[0]: attr[4]: code = 27, form = 8, offset = 275 311abbrev[0]: attr[5]: code = 37, form = 8, offset = 277 312abbrev[0]: attr[6]: code = 19, form = 11, offset = 279 313abbrev[19]: code = 2, tag = 46, children = 1 314abbrev[19]: attr[0]: code = 1, form = 19, offset = 286 315abbrev[19]: attr[1]: code = 63, form = 12, offset = 288 316abbrev[19]: attr[2]: code = 3, form = 8, offset = 290 317abbrev[19]: attr[3]: code = 58, form = 11, offset = 292 318abbrev[19]: attr[4]: code = 59, form = 11, offset = 294 319abbrev[19]: attr[5]: code = 39, form = 12, offset = 296 320abbrev[19]: attr[6]: code = 73, form = 19, offset = 298 321abbrev[19]: attr[7]: code = 17, form = 1, offset = 300 322abbrev[19]: attr[8]: code = 18, form = 1, offset = 302 323abbrev[19]: attr[9]: code = 64, form = 10, offset = 304 324abbrev[44]: code = 3, tag = 46, children = 1 325abbrev[44]: attr[0]: code = 1, form = 19, offset = 311 326abbrev[44]: attr[1]: code = 63, form = 12, offset = 313 327abbrev[44]: attr[2]: code = 3, form = 8, offset = 315 328abbrev[44]: attr[3]: code = 58, form = 11, offset = 317 329abbrev[44]: attr[4]: code = 59, form = 11, offset = 319 330abbrev[44]: attr[5]: code = 73, form = 19, offset = 321 331abbrev[44]: attr[6]: code = 60, form = 12, offset = 323 332abbrev[63]: code = 4, tag = 24, children = 0 333abbrev[68]: code = 5, tag = 46, children = 1 334abbrev[68]: attr[0]: code = 63, form = 12, offset = 335 335abbrev[68]: attr[1]: code = 3, form = 8, offset = 337 336abbrev[68]: attr[2]: code = 58, form = 11, offset = 339 337abbrev[68]: attr[3]: code = 59, form = 11, offset = 341 338abbrev[68]: attr[4]: code = 73, form = 19, offset = 343 339abbrev[68]: attr[5]: code = 60, form = 12, offset = 345 340abbrev[85]: code = 6, tag = 36, children = 0 341abbrev[85]: attr[0]: code = 3, form = 8, offset = 352 342abbrev[85]: attr[1]: code = 11, form = 11, offset = 354 343abbrev[85]: attr[2]: code = 62, form = 11, offset = 356 344abbrev[96]: code = 7, tag = 52, children = 0 345abbrev[96]: attr[0]: code = 3, form = 8, offset = 363 346abbrev[96]: attr[1]: code = 58, form = 11, offset = 365 347abbrev[96]: attr[2]: code = 59, form = 11, offset = 367 348abbrev[96]: attr[3]: code = 73, form = 19, offset = 369 349abbrev[96]: attr[4]: code = 63, form = 12, offset = 371 350abbrev[96]: attr[5]: code = 2, form = 10, offset = 373 351EOF 352 353rm -f testfile testfile2 show-abbrev.out 354 355exit 0 356