Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 551190
Collapse All | Expand All

(-)a/ebuild-writing/eapi/text.xml (-8 / +17 lines)
Lines 373-391 src_compile() { Link Here
373
		</p>
373
		</p>
374
		<p>Example:</p>
374
		<p>Example:</p>
375
		<codesample lang="ebuild">
375
		<codesample lang="ebuild">
376
EAPI=1
376
EAPI=2
377
...
377
...
378
src_install() {
378
src_test() {
379
	emake DESTDIR="${D}" install || die "make install failed"
379
	if ! emake check ; then
380
	dodoc ChangeLog README
380
		eerror "Tests failed. Looking for files for you to add to your bug report..."
381
		find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
382
			eerror "    ${a}"
383
		done
384
		die "Make check failed"
385
	fi
381
}
386
}
382
		</codesample>
387
		</codesample>
383
		<codesample lang="ebuild">
388
		<codesample lang="ebuild">
384
EAPI=4
389
EAPI=4
385
...
390
...
386
src_install() {
391
src_test() {
387
	emake DESTDIR="${D}" install
392
	if ! nonfatal emake check ; then
388
	nonfatal dodoc ChangeLog README
393
		eerror "Tests failed. Looking for files for you to add to your bug report..."
394
		find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
395
			eerror "    ${a}"
396
		done
397
		die "Make check failed"
398
	fi
389
}
399
}
390
		</codesample>
400
		</codesample>
391
	</li>
401
	</li>
392
- 

Return to bug 551190