Skip to content

Commit

Permalink
qa/1569: dodge some platform-specific issues
Browse files Browse the repository at this point in the history
- output from getopt(1) not deterministic
- bzip2(1) does not like files with link count > 1
  • Loading branch information
kmcdonell committed Oct 9, 2024
1 parent e8f3855 commit 0efb040
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qa/1569
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ _check()

# real QA test starts here
echo "=== some error cases ==="
_doit -c $tmp archives/pcp-meminfo
_doit -c $tmp archives/pcp-meminfo 2>&1 \
| sed -e 's/.*[Ii]llegal/Illegal/' -e 's/ -- c/ -c/'
_doit -d $tmp archives/pcp-meminfo
_doit -nv no-such-archive
mkdir $tmp
Expand Down Expand Up @@ -113,6 +114,12 @@ _check pcp-meminfo
echo "+++ bz2 +++"
bzip2 pcp-meminfo.0
bzip2 pcp-meminfo.meta
# some bzip2 versions choke on files with link
# count > 1, so make a copy of the .index file
#
cp pcp-meminfo.index eek
rm -f pcp-meminfo.index
mv eek pcp-meminfo.index
bzip2 pcp-meminfo.index
_doit -v pcp-meminfo
stat --format='%n %s' pcp-meminfo*
Expand Down

0 comments on commit 0efb040

Please sign in to comment.