diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-06 00:34:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-06 00:34:28 +0200 |
commit | 616becbfdb3bed82da99bd950cbfe4bf28856bb7 (patch) | |
tree | d17bb7acd70817fe42aef83c07bb8e72555dde54 | |
parent | 382fc245366999b540bf547b9ccb2f9529a2116b (diff) |
Replace shell test script by Perl TAP stuff, add test target to Makefile
-rw-r--r-- | Makefile | 5 | ||||
-rwxr-xr-x | test/00-compile.t | 8 | ||||
-rwxr-xr-x | test/10-pod-coverage.t | 8 | ||||
-rwxr-xr-x | test/main | 4 |
4 files changed, 20 insertions, 5 deletions
@@ -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 0000000..10c1984 --- /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 0000000..4c1d5f5 --- /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 06ab78b..0000000 --- a/test/main +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -e - -podchecker -warnings -warnings bin/* -perl -c bin/efa |