qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 537
blobee806ef76dbaee8fe761e8b8bb0ea135559bf736
1 #!/bin/sh
2 # PCP QA Test No. 537
3 # Exercises handling of pmimport PMID number boundaries.
5 # Copyright (c) 2013 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
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
28 testdir=$tmp.dir
29 mkdir $testdir || exit 1
30 cd $testdir
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 | \
38 tee -a $seq.full | \
39 head -22
41 # success, all done
42 status=0
44 exit