* Add a test target to call the appropriate perl tests
* Small fix to 01_mime.t
install_exec := install -m755 -p
install_data := install -m644 -p
install_exec := install -m755 -p
install_data := install -m644 -p
+test:
+ perl -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))'
+
install: install_mostfiles
# install basic debbugs documentation
$(install_data) COPYING UPGRADE README debian/README.mail $(doc_dir)
install: install_mostfiles
# install basic debbugs documentation
$(install_data) COPYING UPGRADE README debian/README.mail $(doc_dir)
$(var_dir)/spool/db-h $(scripts_dir) $(perl_dir) $(examples_dir) $(man8_dir); \
do test -d $$dir || $(install_exec) -d $$dir; done
$(var_dir)/spool/db-h $(scripts_dir) $(perl_dir) $(examples_dir) $(man8_dir); \
do test -d $$dir || $(install_exec) -d $$dir; done
+ # make db-h spool dirs if they don't exist
+ cd $(var_dir)/spool/db-h; \
+ for dir in $(shell seq -w 00 99); \
+ do test -d $$dir || $(install_exec) -d $$dir; done
+
# install the scripts
$(foreach script,$(scripts_in), $(install_exec) $(script) $(scripts_dir)/$(patsubst scripts/%.in,%,$(script));)
$(install_data) scripts/errorlib.in $(scripts_dir)/errorlib
# install the scripts
$(foreach script,$(scripts_in), $(install_exec) $(script) $(scripts_dir)/$(patsubst scripts/%.in,%,$(script));)
$(install_data) scripts/errorlib.in $(scripts_dir)/errorlib
# install the HTML pages etc
$(foreach html, $(htmls_in), $(install_data) $(html) $(etc_dir)/html;)
$(install_data) html/htaccess $(var_dir)/www/db/.htaccess
# install the HTML pages etc
$(foreach html, $(htmls_in), $(install_data) $(html) $(etc_dir)/html;)
$(install_data) html/htaccess $(var_dir)/www/db/.htaccess
+ $(install_data) html/bugs.css $(var_dir)/www/bugs.css
# install the CGIs
for cgi in $(cgis); do $(install_exec) $$cgi $(var_dir)/www/cgi; done
# install the CGIs
for cgi in $(cgis); do $(install_exec) $$cgi $(var_dir)/www/cgi; done
# install the updateseqs file
$(install_data) misc/updateseqs $(var_dir)/spool
# install the updateseqs file
$(install_data) misc/updateseqs $(var_dir)/spool
+
+.PHONY: test
\ No newline at end of file
tmp_dir := $(CURDIR)/debian/tmp
build:
tmp_dir := $(CURDIR)/debian/tmp
build:
-# There is nothing to build here, so this rule can be left empty.
+# Call the test suite
+ $(MAKE) test
Döñ Ärḿßtrøñĝ <don@donarmstrong.com>
END
Döñ Ärḿßtrøñĝ <don@donarmstrong.com>
END
# 1: test decode
ok(Debbugs::MIME::decode_rfc1522(q(=?iso-8859-1?Q?D=F6n_Armstr=F3ng?= <don@donarmstrong.com>)) eq
# 1: test decode
ok(Debbugs::MIME::decode_rfc1522(q(=?iso-8859-1?Q?D=F6n_Armstr=F3ng?= <don@donarmstrong.com>)) eq
- q(Dön Armstróng <don@donarmstrong.com>),"decode_rfc1522 decodes and converts to UTF8 properly");
+ encode_utf8(q(Dön Armstróng <don@donarmstrong.com>)),"decode_rfc1522 decodes and converts to UTF8 properly");