Lines 78-98
Link Here
|
78 |
for REPORT in $(find . -name report); do |
78 |
for REPORT in $(find . -name report); do |
79 |
REPORT=${REPORT#*/} |
79 |
REPORT=${REPORT#*/} |
80 |
elog "Parameters and unusual results for ${REPORT%%/*} tests" |
80 |
elog "Parameters and unusual results for ${REPORT%%/*} tests" |
|
|
81 |
echo "Parameters and unusual results for ${REPORT%%/*} tests" >>tests_summary.txt |
81 |
while read line; do |
82 |
while read line; do |
82 |
elog "${line}" |
83 |
elog "${line}" |
|
|
84 |
echo "${line}" >>tests_summary.txt |
83 |
done \ |
85 |
done \ |
84 |
< <(grep -v -e succeeded -e passed ${REPORT}) |
86 |
< <(grep -v -e succeeded -e passed ${REPORT}) |
85 |
done |
87 |
done |
86 |
|
88 |
|
87 |
elog "The full test results will be installed as summary_tests.tar.gz." |
89 |
local testdir |
|
|
90 |
find . -name ",,test*" -print | \ |
91 |
while read testdir; do |
92 |
if [ -e summary_tests.tar ]; then |
93 |
tar rvf summary_tests.tar ${testdir} |
94 |
else tar cvf summary_tests.tar ${testdir} |
95 |
fi |
96 |
done |
97 |
|
98 |
elog "The full test results will be installed as summary_tests.tar.bz2." |
99 |
elog "Also a concise report tests_summary.txt is installed." |
88 |
} |
100 |
} |
89 |
|
101 |
|
90 |
src_install() { |
102 |
src_install() { |
91 |
emake DESTDIR="${D}" install || die |
103 |
emake DESTDIR="${D}" install || die "make install failed" |
92 |
|
104 |
|
93 |
if use test; then |
105 |
if use test; then |
94 |
dodoc tests/summary_tests.tar.gz || die |
106 |
dodoc tests/tests_summary.txt || die "Copying tests summary failed" |
|
|
107 |
dodoc tests/summary_tests.tar || die "Copying tests summary failed" |
95 |
fi |
108 |
fi |
96 |
|
109 |
|
97 |
dodoc KNOWN_PROBLEMS README || die |
110 |
dodoc KNOWN_PROBLEMS README || die "Copying doc files failed" |
|
|
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
if use test; then |
115 |
elog "The full test results will be installed as summary_tests.tar.bz2." |
116 |
elog "Also a concise report tests_summary.txt is installed." |
117 |
fi |
98 |
} |
118 |
} |