~salgado/offspring/linaro-test-runner

« back to all changes in this revision

Viewing changes to lib/offspring/build/functions/reports.sh

  • Committer: Michael Hudson
  • Date: 2011-03-24 21:30:51 UTC
  • mfrom: (13.1.47 offspring)
  • Revision ID: michael.hudson@linaro.org-20110324213051-hmdnv5ivc27s63p6
merge the rest of trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
        NEWMANIFESTDIR="${RESULTDIR_IMAGES}/${1}/"
14
14
        OLDMANIFESTDIR="${IBS_RESULTDIR}/${PROJECT}/previous/images/${1}/"
15
 
        NEWMANIFEST=`ls ${NEWMANIFESTDIR} 2> /dev/null | grep -m1 manifest`
16
 
        OLDMANIFEST=`ls ${OLDMANIFESTDIR} 2> /dev/null | grep -m1 manifest`
 
15
        NEWMANIFEST=`ls ${NEWMANIFESTDIR} 2> /dev/null | egrep -m1 "manifest|packages"`
 
16
        OLDMANIFEST=`ls ${OLDMANIFESTDIR} 2> /dev/null | egrep -m1 "manifest|packages"`
17
17
 
18
18
        if [ ! -f "${IBS_SCRIPTDIR}/compare-builds" ]
19
19
        then
34
34
            Action_done
35
35
            
36
36
            Action "Generating build comparison report"
37
 
            ${IBS_BINDIR}/compare-builds --hide=untouched "${OLDMANIFESTDIR}/${OLDMANIFEST}" "${NEWMANIFESTDIR}/${NEWMANIFEST}" > "${RESULTDIR_REPORTS}/${OUTFILE}"
 
37
            ${IBS_SCRIPTDIR}/compare-builds --hide=untouched "${OLDMANIFESTDIR}/${OLDMANIFEST}" "${NEWMANIFESTDIR}/${NEWMANIFEST}" > "${RESULTDIR_REPORTS}/${OUTFILE}"
38
38
            Action_done
39
39
 
40
40
            if [ -f "${IBS_SCRIPTDIR}/describe-changes" ]
66
66
    Catch_faults permit_errors
67
67
 
68
68
    if [ ! -z "`which tree`" ]; then
69
 
        Action "Generating tree graph report of build file system"
70
 
        tree -Fshapugnx -o "${RESULTDIR_REPORTS}/targetfs_scan.txt" "${TARGETFS}"
 
69
        Action "Generating tree graph of files in rootfs"
 
70
        tree -Fshapugnx -o "${RESULTDIR_REPORTS}/rootfs.tree.txt" "${TARGETFS}"
71
71
        Action_done
72
72
    else
73
 
        Error "E: Unable to generate tree graph of file system as required package tree is not installed."
 
73
        Error "E: Unable to generate tree graph of rootfs as required package 'tree' is not installed."
74
74
    fi
75
75
 
76
76
    Catch_faults disallow_errors
77
77
}
78
78
 
 
79
generateRootfsListing() {
 
80
    Catch_faults permit_errors
 
81
 
 
82
    Action "Generating simple list of files in rootfs"
 
83
    find "${TARGETFS}" | sed s,"${TARGETFS%/}",, > "${RESULTDIR_REPORTS}/rootfs.list.txt"
 
84
    Action_done
 
85
 
 
86
    Catch_faults disallow_errors
 
87
}
 
88
 
79
89
produceLicenseReport() {
80
90
    Catch_faults permit_errors
81
91