From 514365dd6774d7b92c69c733488195ec048b15ad Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 31 Oct 2010 21:58:01 +0100 Subject: [PATCH] Bug 5327: More basic unit tests for C4 modules Content-Type: text/plain; charset="utf-8" --- t/AuthoritiesMarc_MARC21.t | 14 ++++++++++++++ t/AuthoritiesMarc_UNIMARC.t | 14 ++++++++++++++ t/Barcodes_annual.t | 14 ++++++++++++++ t/Barcodes_hbyymmincr.t | 14 ++++++++++++++ t/Barcodes_incremental.t | 14 ++++++++++++++ t/Cache_FastMemcached.t | 14 ++++++++++++++ t/Cache_Memcached.t | 14 ++++++++++++++ t/Cache_Memoize_Memcached.t | 14 ++++++++++++++ t/ClassSortRoutine_Dewey.t | 14 ++++++++++++++ t/ClassSortRoutine_Generic.t | 14 ++++++++++++++ t/ClassSortRoutine_LCC.t | 14 ++++++++++++++ t/External_BakerTaylor.t | 14 ++++++++++++++ t/External_Syndetics.t | 14 ++++++++++++++ t/Form_MessagingPreferences.t | 14 ++++++++++++++ t/Heading_MARC21.t | 14 ++++++++++++++ t/ILSDI_Services.t | 14 ++++++++++++++ t/ILSDI_Utility.t | 14 ++++++++++++++ t/Installer_PerlDependencies.t | 14 ++++++++++++++ t/Installer_PerlModules.t | 14 ++++++++++++++ t/Members_AttributeTypes.t | 14 ++++++++++++++ t/Members_Messaging.t | 14 ++++++++++++++ t/Output_JSONStream.t | 14 ++++++++++++++ t/Patroncards_Batch.t | 14 ++++++++++++++ t/Patroncards_Layout.t | 14 ++++++++++++++ t/Patroncards_Lib.t | 14 ++++++++++++++ t/Patroncards_Patroncard.t | 14 ++++++++++++++ t/Patroncards_Profile.t | 14 ++++++++++++++ t/Patroncards_Template.t | 14 ++++++++++++++ t/Reports_Guided.t | 14 ++++++++++++++ t/SIP_ILS.t | 14 ++++++++++++++ t/SIP_SIPServer.t | 14 ++++++++++++++ t/SIP_Sip.t | 14 ++++++++++++++ t/Search_PazPar2.t | 14 ++++++++++++++ t/VirtualShelves_Merge.t | 14 ++++++++++++++ t/VirtualShelves_Page.t | 14 ++++++++++++++ 35 files changed, 490 insertions(+), 0 deletions(-) create mode 100755 t/AuthoritiesMarc_MARC21.t create mode 100755 t/AuthoritiesMarc_UNIMARC.t create mode 100755 t/Barcodes_annual.t create mode 100755 t/Barcodes_hbyymmincr.t create mode 100755 t/Barcodes_incremental.t create mode 100755 t/Cache_FastMemcached.t create mode 100755 t/Cache_Memcached.t create mode 100755 t/Cache_Memoize_Memcached.t create mode 100755 t/ClassSortRoutine_Dewey.t create mode 100755 t/ClassSortRoutine_Generic.t create mode 100755 t/ClassSortRoutine_LCC.t create mode 100755 t/External_BakerTaylor.t create mode 100755 t/External_Syndetics.t create mode 100755 t/Form_MessagingPreferences.t create mode 100755 t/Heading_MARC21.t create mode 100755 t/ILSDI_Services.t create mode 100755 t/ILSDI_Utility.t create mode 100755 t/Installer_PerlDependencies.t create mode 100755 t/Installer_PerlModules.t create mode 100755 t/Members_AttributeTypes.t create mode 100755 t/Members_Messaging.t create mode 100755 t/Output_JSONStream.t create mode 100755 t/Patroncards_Batch.t create mode 100755 t/Patroncards_Layout.t create mode 100755 t/Patroncards_Lib.t create mode 100755 t/Patroncards_Patroncard.t create mode 100755 t/Patroncards_Profile.t create mode 100755 t/Patroncards_Template.t create mode 100755 t/Reports_Guided.t create mode 100755 t/SIP_ILS.t create mode 100755 t/SIP_SIPServer.t create mode 100755 t/SIP_Sip.t create mode 100755 t/Search_PazPar2.t create mode 100755 t/VirtualShelves_Merge.t create mode 100755 t/VirtualShelves_Page.t diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t new file mode 100755 index 0000000..d83534a --- /dev/null +++ b/t/AuthoritiesMarc_MARC21.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::AuthoritiesMarc::MARC21'); +} + diff --git a/t/AuthoritiesMarc_UNIMARC.t b/t/AuthoritiesMarc_UNIMARC.t new file mode 100755 index 0000000..0a55cd6 --- /dev/null +++ b/t/AuthoritiesMarc_UNIMARC.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::AuthoritiesMarc::UNIMARC'); +} + diff --git a/t/Barcodes_annual.t b/t/Barcodes_annual.t new file mode 100755 index 0000000..b89d207 --- /dev/null +++ b/t/Barcodes_annual.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Barcodes::annual'); +} + diff --git a/t/Barcodes_hbyymmincr.t b/t/Barcodes_hbyymmincr.t new file mode 100755 index 0000000..a2377d3 --- /dev/null +++ b/t/Barcodes_hbyymmincr.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Barcodes::hbyymmincr'); +} + diff --git a/t/Barcodes_incremental.t b/t/Barcodes_incremental.t new file mode 100755 index 0000000..1bde5d3 --- /dev/null +++ b/t/Barcodes_incremental.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Barcodes::incremental'); +} + diff --git a/t/Cache_FastMemcached.t b/t/Cache_FastMemcached.t new file mode 100755 index 0000000..589e9b1 --- /dev/null +++ b/t/Cache_FastMemcached.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Cache::FastMemcached'); +} + diff --git a/t/Cache_Memcached.t b/t/Cache_Memcached.t new file mode 100755 index 0000000..80dfc7f --- /dev/null +++ b/t/Cache_Memcached.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Cache::Memcached'); +} + diff --git a/t/Cache_Memoize_Memcached.t b/t/Cache_Memoize_Memcached.t new file mode 100755 index 0000000..13e26e5 --- /dev/null +++ b/t/Cache_Memoize_Memcached.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Cache::Memoize::Memcached'); +} + diff --git a/t/ClassSortRoutine_Dewey.t b/t/ClassSortRoutine_Dewey.t new file mode 100755 index 0000000..a2d3dc1 --- /dev/null +++ b/t/ClassSortRoutine_Dewey.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::ClassSortRoutine::Dewey'); +} + diff --git a/t/ClassSortRoutine_Generic.t b/t/ClassSortRoutine_Generic.t new file mode 100755 index 0000000..d627259 --- /dev/null +++ b/t/ClassSortRoutine_Generic.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::ClassSortRoutine::Generic'); +} + diff --git a/t/ClassSortRoutine_LCC.t b/t/ClassSortRoutine_LCC.t new file mode 100755 index 0000000..9a5e007 --- /dev/null +++ b/t/ClassSortRoutine_LCC.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::ClassSortRoutine::LCC'); +} + diff --git a/t/External_BakerTaylor.t b/t/External_BakerTaylor.t new file mode 100755 index 0000000..fdccaee --- /dev/null +++ b/t/External_BakerTaylor.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::External::BakerTaylor'); +} + diff --git a/t/External_Syndetics.t b/t/External_Syndetics.t new file mode 100755 index 0000000..e335c74 --- /dev/null +++ b/t/External_Syndetics.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::External::Syndetics'); +} + diff --git a/t/Form_MessagingPreferences.t b/t/Form_MessagingPreferences.t new file mode 100755 index 0000000..483e133 --- /dev/null +++ b/t/Form_MessagingPreferences.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Form::MessagingPreferences'); +} + diff --git a/t/Heading_MARC21.t b/t/Heading_MARC21.t new file mode 100755 index 0000000..a0ca21b --- /dev/null +++ b/t/Heading_MARC21.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::External::Amazon'); +} + diff --git a/t/ILSDI_Services.t b/t/ILSDI_Services.t new file mode 100755 index 0000000..99476d3 --- /dev/null +++ b/t/ILSDI_Services.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::ILSDI::Services'); +} + diff --git a/t/ILSDI_Utility.t b/t/ILSDI_Utility.t new file mode 100755 index 0000000..c06209b --- /dev/null +++ b/t/ILSDI_Utility.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::ILSDI::Utility'); +} + diff --git a/t/Installer_PerlDependencies.t b/t/Installer_PerlDependencies.t new file mode 100755 index 0000000..45dc1f1 --- /dev/null +++ b/t/Installer_PerlDependencies.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Installer::PerlDependencies'); +} + diff --git a/t/Installer_PerlModules.t b/t/Installer_PerlModules.t new file mode 100755 index 0000000..561d84c --- /dev/null +++ b/t/Installer_PerlModules.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Installer::PerlModules'); +} + diff --git a/t/Members_AttributeTypes.t b/t/Members_AttributeTypes.t new file mode 100755 index 0000000..9dfc6c3 --- /dev/null +++ b/t/Members_AttributeTypes.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Members::AttributeTypes'); +} + diff --git a/t/Members_Messaging.t b/t/Members_Messaging.t new file mode 100755 index 0000000..9395008 --- /dev/null +++ b/t/Members_Messaging.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Members::Messaging'); +} + diff --git a/t/Output_JSONStream.t b/t/Output_JSONStream.t new file mode 100755 index 0000000..2ee22fe --- /dev/null +++ b/t/Output_JSONStream.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Output::JSONStream'); +} + diff --git a/t/Patroncards_Batch.t b/t/Patroncards_Batch.t new file mode 100755 index 0000000..a0743ff --- /dev/null +++ b/t/Patroncards_Batch.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Patroncards::Batch'); +} + diff --git a/t/Patroncards_Layout.t b/t/Patroncards_Layout.t new file mode 100755 index 0000000..fe68761 --- /dev/null +++ b/t/Patroncards_Layout.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Patroncards::Layout'); +} + diff --git a/t/Patroncards_Lib.t b/t/Patroncards_Lib.t new file mode 100755 index 0000000..88154a6 --- /dev/null +++ b/t/Patroncards_Lib.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Patroncards::Lib'); +} + diff --git a/t/Patroncards_Patroncard.t b/t/Patroncards_Patroncard.t new file mode 100755 index 0000000..8868350 --- /dev/null +++ b/t/Patroncards_Patroncard.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Patroncards::Patroncard'); +} + diff --git a/t/Patroncards_Profile.t b/t/Patroncards_Profile.t new file mode 100755 index 0000000..78cb6cf --- /dev/null +++ b/t/Patroncards_Profile.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Patroncards::Profile'); +} + diff --git a/t/Patroncards_Template.t b/t/Patroncards_Template.t new file mode 100755 index 0000000..a781e0c --- /dev/null +++ b/t/Patroncards_Template.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Patroncards::Template'); +} + diff --git a/t/Reports_Guided.t b/t/Reports_Guided.t new file mode 100755 index 0000000..0b0cda6 --- /dev/null +++ b/t/Reports_Guided.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Reports::Guided'); +} + diff --git a/t/SIP_ILS.t b/t/SIP_ILS.t new file mode 100755 index 0000000..38e9ebd --- /dev/null +++ b/t/SIP_ILS.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::SIP::ILS'); +} + diff --git a/t/SIP_SIPServer.t b/t/SIP_SIPServer.t new file mode 100755 index 0000000..48a0a9f --- /dev/null +++ b/t/SIP_SIPServer.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::SIP::SIPServer'); +} + diff --git a/t/SIP_Sip.t b/t/SIP_Sip.t new file mode 100755 index 0000000..6db6acf --- /dev/null +++ b/t/SIP_Sip.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::SIP::Sip'); +} + diff --git a/t/Search_PazPar2.t b/t/Search_PazPar2.t new file mode 100755 index 0000000..8d51720 --- /dev/null +++ b/t/Search_PazPar2.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::Search::PazPar2'); +} + diff --git a/t/VirtualShelves_Merge.t b/t/VirtualShelves_Merge.t new file mode 100755 index 0000000..954fdc4 --- /dev/null +++ b/t/VirtualShelves_Merge.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::VirtualShelves::Merge'); +} + diff --git a/t/VirtualShelves_Page.t b/t/VirtualShelves_Page.t new file mode 100755 index 0000000..236d147 --- /dev/null +++ b/t/VirtualShelves_Page.t @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# +# This Koha test module is a stub! +# Add more tests here!!! + +use strict; +use warnings; + +use Test::More tests => 1; + +BEGIN { + use_ok('C4::VirtualShelves::Page'); +} + -- 1.7.1