-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, May 15, 2002, at 12:19 , Autrijus Tang wrote:
> --
> This is an error report generated automatically by CPANPLUS.
> Below is the error stack during 'make test':
>
> No tests defined for Device::ParallelPort::JayCar extension.
>
> Additional comments:
>
> Hello, Scott Penrose! Thanks for uploading your works to CPAN.
>
> Would it be too much to ask for a simple test script in the next
> release, so people can verify which platforms can successfully
> install them, as well as avoid regression bugs?
>
> A simple 't/use.t' that says:
>
> #!/usr/bin/env perl -w
> use strict;
> use Test;
> BEGIN { plan tests => 1 }
>
> use Your::Module::Here; ok(1);
> exit;
> __END__
>
> would be appreciated. If you are interested in making a more robust
> test suite, please see the Test::Simple, Test::More and Test::Tutorial
> manpages at <http://search.cpan.org/search?dist=Test-Simple>.
>
> Thanks! :-)
Fantastic feedback thank you. I have put up a few emails in the last few
days asking people how I can mark a CPAN module to be only available to
one platform.
In this case I have:
Device::ParallelPort
. An API which should work on all platforms.
. Requires a working driver
Device::ParallelPort::JayCar
. A device which uses Device::ParallelPort to work
. Works anywhere that Device::ParallelPort and a driver work correctly
Device::ParallelPort::drv::linux
. Linux only driver
Device::ParallelPort::drv::parport
. Linux only driver
Device::ParallelPort::drv::win32
. Windows 32 only driver
. (not uploaded nearly finished)
Device::ParallelPort::drv::freebsd
. FreeBSD only driver
. (just started on this one).
Sorry I did not include a test for JayCar that was definitely an
oversight which I will fix now.
Can you suggest a way I can limit drivers to a particular platform thus
making it so in your case you would only have to check the free BSD
versions and not windows versions?
Scott
> --
>
> Summary of my perl5 (revision 5.0 version 7 subversion 3 patch 16005)
> configuration:
> Platform:
> osname=freebsd, osvers=4.5-release,
> archname=i386-freebsd-thread-multi
> uname='freebsd not.autrijus.org 4.5-release freebsd 4.5-release #2:
> sat apr 20 21:48:25 cst 2002 [EMAIL PROTECTED]:usrsrcsyscompilenot
> i386 '
> config_args='-Duseithreads -Dusedevel -de'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define
> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
> use64bitint=undef use64bitall=undef uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
> -fno-strict-aliasing -I/usr/local/include',
> optimize='-O',
> cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
> -fno-strict-aliasing -I/usr/local/include'
> ccversion='', gccversion='2.95.3 20010315 (release) [FreeBSD]',
> gccosandvers=''
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
> alignbytes=4, prototype=define
> Linker and Libraries:
> ld='cc', ldflags ='-pthread -Wl,-E -L/usr/local/lib'
> libpth=/usr/lib /usr/local/lib
> libs=-lgdbm -ldb -lm -lc_r -lcrypt -lutil
> perllibs=-lm -lc_r -lcrypt -lutil
> libc=, so=so, useshrplib=false, libperl=libperl.a
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
> cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'
>
>
>
>
- ---
Scott Penrose
Open source and Linux Developer
http://linux.dd.com.au/
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org
iD8DBQE84ZCmDCFCcmAm26YRAmwKAJ4hIJG5NZOBcIq5c74Yb/SA/6cVUgCeOqAd
/qtP4qckmkb+eP3adF10Aek=
=zCve
-----END PGP SIGNATURE-----