From b8a78f4ff716fe4aa2cc0dd69e1a6f2e90b6d5d5 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 23 Sep 2017 13:10:08 +0200 Subject: nodejs-current: add basic check --- community/nodejs-current/APKBUILD | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'community/nodejs-current/APKBUILD') diff --git a/community/nodejs-current/APKBUILD b/community/nodejs-current/APKBUILD index 24a962789e..f3a7fcc16a 100644 --- a/community/nodejs-current/APKBUILD +++ b/community/nodejs-current/APKBUILD @@ -43,13 +43,25 @@ build() { make -C out mksnapshot BUILDTYPE=Release paxmark -m out/Release/mksnapshot make + + # paxmark so JIT works + paxmark -m out/Release/node +} + +# TODO Run provided test suite. +check() { + cd "$builddir"/out/Release + + ./node -e 'console.log("Hello, world!")' + ./node -e "require('assert').equal(process.versions.node, '$pkgver')" } package() { cd "$builddir" make DESTDIR="$pkgdir" install - # paxmark so JIT works + + # It's strange, but it really needs to be paxmarked again... paxmark -m "$pkgdir"/usr/bin/node cp -pr "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share -- cgit v1.2.3