From df7410159993f7cf6383099fb8d34e3f0b03a587 Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 13 Feb 2020 22:08:10 +0000 Subject: [PATCH] update to dMagnetic 0.22 and improve tests, from maintainer/upstream Thomas Dettbarn. --- games/dmagnetic/Makefile | 31 ++++++++++++++++++++++++------- games/dmagnetic/distinfo | 4 ++-- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/games/dmagnetic/Makefile b/games/dmagnetic/Makefile index df8165fa38a..cbf0e568320 100644 --- a/games/dmagnetic/Makefile +++ b/games/dmagnetic/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.9 2020/01/17 22:19:46 sthen Exp $ +# $OpenBSD: Makefile,v 1.10 2020/02/13 22:08:10 sthen Exp $ -V = 0.20 +V = 0.22 COMMENT = interpreter for Magnetic Scrolls games DISTNAME = dMagnetic_${V} PKGNAME = dmagnetic-${V} @@ -29,10 +29,27 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/dMagnetic do-test: - cd ${WRKSRC}/testcode; if [ `echo Hello | ../dMagnetic \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode low_ansi -vecho -vcols 300 -vrows 300 | \ - sha256 -b` == 6DhbUg1shZBuSXIm3PNK1/fMfRQ5RIHCuLPik+IkeQM= ]; \ - then echo ok; else echo expected output not seen; exit 1; fi + cd ${WRKSRC}/testcode; if [ `echo Hello | ../dMagnetic -ini ../dMagnetic.ini \ + -mag minitest.mag -gfx minitest.gfx \ + -vmode none -vecho -vcols 300 -vrows 300 | \ + sha256 -b` == DOx7jAlyo+E1/MsBxGDzsEd6xGj5p6yZWZ3TuEsptuI= -a \ + `echo Hello | ../dMagnetic -ini ../dMagnetic.ini \ + -mag minitest.mag -gfx minitest.gfx \ + -vmode monochrome -vecho -vcols 300 -vrows 300 | \ + sha256 -b` == JH9v0Uh6jMvWt2XES85vcqqZiUwmktpiLENUZvM/8AY= -a \ + `echo Hello | ../dMagnetic -ini ../dMagnetic.ini \ + -mag minitest.mag -gfx minitest.gfx \ + -vmode low_ansi -vecho -vcols 300 -vrows 300 | \ + sha256 -b` == 6DhbUg1shZBuSXIm3PNK1/fMfRQ5RIHCuLPik+IkeQM= -a \ + `echo Hello | ../dMagnetic -ini ../dMagnetic.ini \ + -mag minitest.mag -gfx minitest.gfx \ + -vmode high_ansi -vecho -vcols 300 -vrows 300 | \ + sha256 -b` == ShiqpQ8Ey8CSV2g3gMCCzSS89Ak6ZaNUQjaw11Tcj8k= -a \ + `echo Hello | ../dMagnetic -ini ../dMagnetic.ini \ + -mag minitest.mag -gfx minitest.gfx \ + -vmode sixel -vecho -vcols 300 -vrows 300 | \ + sha256 -b` == RLueDmrARhpkn8A9YOJz1OW2YLRDBlKCjlxY3Ef56ro= \ + ]; \ + then echo ok; else echo expected output not seen; exit 1; fi .include diff --git a/games/dmagnetic/distinfo b/games/dmagnetic/distinfo index 970fc6872ba..943b0585ac1 100644 --- a/games/dmagnetic/distinfo +++ b/games/dmagnetic/distinfo @@ -1,2 +1,2 @@ -SHA256 (dMagnetic_0.20.tar.bz2) = w/lhyKtinqS2RyoDDEOKwVncaZtklShblYbjRgk4XVo= -SIZE (dMagnetic_0.20.tar.bz2) = 53575 +SHA256 (dMagnetic_0.22.tar.bz2) = U5BcihppxcaaevysXQNo7cbCFPxgPz12MT5PM/rrBDE= +SIZE (dMagnetic_0.22.tar.bz2) = 61092