aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2019-06-17 14:56:28 +0200
committerLoïc Hoguin <[email protected]>2019-06-20 14:31:10 +0200
commit674c7ea75af5f26ef574ed403bbba9f89ec2344a (patch)
tree0f58ef3cad77b1086edd25398076d411ffb496d7
parent32d1ab322bc7f7db5a1e03683de17908e3112aa6 (diff)
downloaderlang.mk-674c7ea75af5f26ef574ed403bbba9f89ec2344a.tar.gz
erlang.mk-674c7ea75af5f26ef574ed403bbba9f89ec2344a.tar.bz2
erlang.mk-674c7ea75af5f26ef574ed403bbba9f89ec2344a.zip
Replace zipinfo(1) by `unzip -l`
The output is the same between those two commands. The benefit is that it avoids the need to install the `unzip` package on FreeBSD and all systems where the default unzip(1) is provided by libarchive.
-rw-r--r--test/plugin_escript.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/plugin_escript.mk b/test/plugin_escript.mk
index f80db46..3949547 100644
--- a/test/plugin_escript.mk
+++ b/test/plugin_escript.mk
@@ -63,7 +63,7 @@ escript-build-deps: init
$t $(APP)/$(APP) | grep -q good
$i "Check that the escript does not contain the build dependency"
- $t ! zipinfo $(APP)/$(APP) 2> /dev/null | grep -q lfe
+ $t ! unzip -l $(APP)/$(APP) 2> /dev/null | grep -q lfe
escript-deps: init
@@ -88,7 +88,7 @@ escript-deps: init
$t $(APP)/$(APP) | grep -q good
$i "Check that the escript contains the dependency"
- $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q ranch
+ $t unzip -l $(APP)/$(APP) 2> /dev/null | grep -q ranch
escript-deps-with-deps: init
@@ -116,9 +116,9 @@ escript-deps-with-deps: init
$t $(APP)/$(APP) | grep -q good
$i "Check that the escript contains the dependencies"
- $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q cowboy
- $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q cowlib
- $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q ranch
+ $t unzip -l $(APP)/$(APP) 2> /dev/null | grep -q cowboy
+ $t unzip -l $(APP)/$(APP) 2> /dev/null | grep -q cowlib
+ $t unzip -l $(APP)/$(APP) 2> /dev/null | grep -q ranch
escript-distclean: init
@@ -173,5 +173,5 @@ escript-extra: init
$t $(APP)/$(APP) | grep -q good
$i "Check that the escript contains the extra files"
- $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q Makefile
- $t zipinfo $(APP)/$(APP) 2> /dev/null | grep -q erlang.mk
+ $t unzip -l $(APP)/$(APP) 2> /dev/null | grep -q Makefile
+ $t unzip -l $(APP)/$(APP) 2> /dev/null | grep -q erlang.mk