aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-14 18:15:20 +0200
committerLoïc Hoguin <[email protected]>2018-05-14 18:15:20 +0200
commit9e38db3cc5b7beaaa9e173044b3053673493b979 (patch)
tree2dbc9edb170949f24776784aeaf3681de73d9f43
parentb49c7d56a3bb0477658d0ea4eecf63d74fc897a0 (diff)
downloaderlang.mk-9e38db3cc5b7beaaa9e173044b3053673493b979.tar.gz
erlang.mk-9e38db3cc5b7beaaa9e173044b3053673493b979.tar.bz2
erlang.mk-9e38db3cc5b7beaaa9e173044b3053673493b979.zip
Replace the imagejs test with lz4
-rw-r--r--test/core_deps.mk17
1 files changed, 7 insertions, 10 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk
index 1511d4f..6132e52 100644
--- a/test/core_deps.mk
+++ b/test/core_deps.mk
@@ -675,34 +675,31 @@ core-deps-build-c-8cc: build clean
halt()"
endif
-ifneq ($(PLATFORM),freebsd)
-core-deps-build-c-imagejs: build clean
+core-deps-build-c-lz4: build clean
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
$t cp ../erlang.mk $(APP)/
$t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
- $i "Add imagejs to the list of build dependencies"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS = imagejs\ndep_imagejs = git https://github.com/jklmnn/imagejs master\n"}' $(APP)/Makefile
+ $i "Add lz4 to the list of build dependencies"
+ $t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS = lz4_src\ndep_lz4_src = git https://github.com/lz4/lz4 v1.8.2\n"}' $(APP)/Makefile
$i "Build the application"
$t $(MAKE) -C $(APP) $v
$i "Check that all dependencies were fetched"
- $t test -d $(APP)/deps/imagejs
+ $t test -d $(APP)/deps/lz4_src
- $i "Check that imagejs works"
- $t $(APP)/deps/imagejs/imagejs bmp $(APP)/deps/imagejs/Makefile
- $t test -f $(APP)/deps/imagejs/Makefile.bmp
+ $i "Check that lz4 was compiled"
+ $t test -f $(APP)/deps/lz4_src/lib/liblz4.a
$i "Check that the application was compiled correctly"
$t $(ERL) -pa $(APP)/ebin/ -eval " \
[ok = application:load(App) || App <- [$(APP)]], \
{ok, Deps} = application:get_key($(APP), applications), \
- false = lists:member(imagejs, Deps), \
+ false = lists:member(lz4, Deps), \
halt()"
-endif
core-deps-build-erl: build clean