support/script/scancpan: add -test option
authorFrancois Perrad <fperrad@gmail.com>
Wed, 1 Oct 2014 18:36:59 +0000 (20:36 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 4 Oct 2014 12:42:44 +0000 (14:42 +0200)
commit1fd8d9e4dd04c63c17f13352e1c0f01e2bea7312
treeecf1ccdb3e8b7390d7bb786edc644f2c639c5c2e
parent40aa523af26963321443a2d96c64ce128577ca77
support/script/scancpan: add -test option

Perl modules can have three different types of dependencies:

 - configure/build time dependency which becomes host dependency
 - runtime dependency which becomes target dependency
 - test time dependency which is useless in a cross-compiling context like BR

Before this patch, test time dependencies are handled like runtime
dependencies.

After this patch, test time dependencies are ignored by default. The
newly added -test option allows to add them anyway if needed.

[Thomas: reword commit log using Francois proposal.]

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/scancpan