From a5e2b8629ee255f9b7a11391fba7423bb2f13df7 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 3 Apr 2017 21:23:57 +0200 Subject: testing/emscripten: compile hello_world with optimizations in check --- testing/emscripten/APKBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testing/emscripten') diff --git a/testing/emscripten/APKBUILD b/testing/emscripten/APKBUILD index 0d04fe4a61..c2f096d428 100644 --- a/testing/emscripten/APKBUILD +++ b/testing/emscripten/APKBUILD @@ -14,6 +14,7 @@ license="MIT UOI-NCSA" depends="$pkgname-optimizer>=$pkgver emscripten-fastcomp>=$pkgver nodejs python2 node-closurecompiler-externs" makedepends="binaryen clang cmake" +checkdepends="closure-compiler" subpackages="$pkgname-optimizer $pkgname-libs-asmjs:libs_asmjs:noarch $pkgname-libs-wasm:libs_wasm:noarch" @@ -97,11 +98,11 @@ build() { } check() { - cd "$builddir" + cd "$builddir"/tests - rm -f tests/hello_world.js - ./emcc -o tests/hello_world.js tests/hello_world.c - node tests/hello_world.js + rm -f hello_world.js* + ../emcc -Os --closure 1 -o hello_world.js hello_world.c + node hello_world.js } package() { -- cgit v1.2.3