3 # Exercises handling of pmimport PMID number boundaries.
5 # Copyright (c) 2013 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 [ $PCP_VER -ge 30801 ] || _notrun
"Too-old libpcp_import version"
17 [ -f ${PCP_LIB_DIR}/libpcp_import.
${DSO_SUFFIX} ] || \
18 _notrun
"No support for libpcp_import"
19 perl
-e "use PCP::LogImport" 2>/dev
/null || \
20 _notrun
"Perl PCP::LogImport module is not installed"
23 status
=1 # failure is the default!
24 $sudo rm -rf $tmp.
* $seq.full
25 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
27 # real QA test starts here
29 mkdir
$testdir ||
exit 1
32 echo "Generating test archive"
33 perl
$here/src
/import_limit_test.perl
35 echo "Dumping test archive metric names and IDs"
36 pminfo
-m -a test-limit | \
37 LC_COLLATE
=POSIX
sort -n -k 2 | \