diff --git a/Makefile b/Makefile index e5891dabf870413386faff1dbd6e5250eb155f9d..05a85e37b4c98c505ccf422fb4aac3595e1f3929 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,10 @@ uninstall: rm -f ${basedir}/bin/efa rm -f ${basedir}/share/man/man1/efa.1 +test: + @prove test + clean: rm -rf build -.PHONY: install uninstall clean +.PHONY: install uninstall test clean diff --git a/test/00-compile.t b/test/00-compile.t new file mode 100755 index 0000000000000000000000000000000000000000..10c198463f2eb2ded3432d86bb1fa63616bca425 --- /dev/null +++ b/test/00-compile.t @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use Test::More; +use Test::Compile; + +all_pl_files_ok('bin/efa'); diff --git a/test/10-pod-coverage.t b/test/10-pod-coverage.t new file mode 100755 index 0000000000000000000000000000000000000000..4c1d5f5093d22a4000faee10e0f2cb66130c63b4 --- /dev/null +++ b/test/10-pod-coverage.t @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use Test::More; +use Test::Pod; + +all_pod_files_ok('bin/efa'); diff --git a/test/main b/test/main deleted file mode 100755 index 06ab78b6f35992697812eaefa323ef01a4c1d927..0000000000000000000000000000000000000000 --- a/test/main +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -e - -podchecker -warnings -warnings bin/* -perl -c bin/efa