summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build.PL9
-rw-r--r--t/use.t8
2 files changed, 17 insertions, 0 deletions
diff --git a/Build.PL b/Build.PL
index d67cd9e..1f90cd3 100644
--- a/Build.PL
+++ b/Build.PL
@@ -15,5 +15,14 @@ Alien::Base::ModuleBuild->new(
configure_requires => { 'Alien::Base::ModuleBuild' => '0.022' },
alien_version_check => '%{pkg_config} --atleast-version 3.4.4 %n && %{pkg_config} --modversion %n',
+ alien_build_commands => [
+ '%c --prefix=%s --with-tests',
+ 'make',
+ ],
+ alien_test_commands => [
+ 'cd tests && ./create_frame_pattern frame',
+ 'cd tests && ./test_all.sh',
+ ],
+
license => 'gpl',
)->create_build_script;
diff --git a/t/use.t b/t/use.t
new file mode 100644
index 0000000..65168b1
--- /dev/null
+++ b/t/use.t
@@ -0,0 +1,8 @@
+#!perl
+use Test::More;
+
+ok(eval { require Alien::QREncode },'should load');
+my $alien = Alien::QREncode->new;
+like($alien->libs,qr{qrencode},'should list the library');
+
+done_testing;