app-emulation/libspectrum: Fix running tests
authorMichał Górny <mgorny@gentoo.org>
Sat, 12 May 2018 15:54:56 +0000 (17:54 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 12 May 2018 15:55:27 +0000 (17:55 +0200)
The 'check' target builds test executable but does not run it.  Update
the ebuild to run it manually afterwards.

app-emulation/libspectrum/libspectrum-1.4.2.ebuild

index 66ae4677a64fb400de249b82a519161a85822819..75e11f4bc844a42ded80b48436f0e3492ecfa07c 100644 (file)
@@ -31,6 +31,12 @@ src_configure() {
        econf "${myconf[@]}"
 }
 
+src_test() {
+       # check only builds test executable but doesn't run it
+       emake check
+       ./test/test || die
+}
+
 src_install() {
        default
        dodoc doc/*.txt *.txt