OpenXPKI-Client vs. Deployment
cd svn-openxpki/trunk/clients/perl/OpenXPKI-Client
perl Makefile.PL
Version 0.9.985
Checking if your kit is complete...
Looks good
Writing Makefile for OpenXPKI::Client
make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00.pod-coverage.....ok
t/00.pod..............ok
t/10.load.............ok 1/1# Testing OpenXPKI::Client v0.9.985
t/10.load.............ok
t/20.init-openxpki....# Locally deploying OpenXPKI
FAILED--Further testing stopped: OpenXPKI deployment environment is not
installed
make: *** [test_dynamic] Error 9
"OpenXPKI deployment environment is not installed" ... so i'm going to:
cd svn-openxpki/trunk/deployment/
./configure
Checking required OpenXPKI Perl modules...
OpenXPKI: OK
OpenXPKI::Client: NOT FOUND
Pre-installation check found errors.
Please install the missing Perl modules before proceeding.
so i'm back in svn-openxpki/trunk/clients/perl/OpenXPKI-Client
make install
Installing /usr/local/share/perl/5.8.8/OpenXPKI/Client.pm
Installing /usr/local/share/perl/5.8.8/OpenXPKI/Client/API.pm
Installing /usr/local/man/man3/OpenXPKI::Client::API.3pm
Installing /usr/local/man/man3/OpenXPKI::Client.3pm
Writing /usr/local/lib/perl/5.8.8/auto/OpenXPKI/Client/.packlist
Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod
cd svn-openxpki/trunk/deployment/
./configure
Checking required OpenXPKI Perl modules...
OpenXPKI: OK
OpenXPKI::Client: OK
Configuring for installation in /usr...
Creating template set configuration in etc/templates/default
Creating template set configuration in etc/templates/quickstart
Creating Makefile...
Initial configuration complete. You may now run
make
make install
in order to build and install the OpenXPKI administrative environment.
make
for file in bin/openxpkiadm bin/openxpkictl bin/openxpki-configure ; do \
./bin/openxpki-metaconf \
--config etc/templates/default/openxpki.conf \
--setcfg deployment.version="0.9.1198" \
--file $file.in >$file ;\
done
for PROG in bin/openxpkiadm bin/openxpkictl bin/openxpki-configure
bin/openxpki-metaconf ; do pod2man $PROG $PROG.1; done
make install
Creating directories
/usr/bin/install -o root -g root -m 0755 -d /usr/bin
/usr/bin/install -o root -g root -m 0755 -d /usr/man/man1
/usr/bin/install -o openxpki -g openxpki -m 0755 -d
/usr/share/openxpki/templates
/usr/bin/install: invalid user `openxpki'
make: *** [makedirs] Error 1
adduser openxpki
make install
Creating directories
/usr/bin/install -o root -g root -m 0755 -d /usr/bin
/usr/bin/install -o root -g root -m 0755 -d /usr/man/man1
/usr/bin/install -o openxpki -g openxpki -m 0755 -d
/usr/share/openxpki/templates
/usr/bin/install -o root -g root -m 0755 -d /usr/share/locale
Installing template files to /usr/share/openxpki/templates
INSTALL=/usr/bin/install \
ADMUSER=root \
ADMGROUP=root \
TARGETDIR=/usr/share/openxpki/templates \
DIREXCLUDE="svn" \
FILEINCLUDE="(\.xml|\.conf|\.txt)$" \
./bin/installtemplates.sh
Creating directory /usr/share/openxpki/templates/.
Creating directory /usr/share/openxpki/templates/./default
Creating directory /usr/share/openxpki/templates/./default/notification
Creating directory /usr/share/openxpki/templates/./default/notification/en
Creating
/usr/share/openxpki/templates/./default/notification/en/csr_approved_comment.txt
Creating
/usr/share/openxpki/templates/./default/notification/en/csr_rejected_correspond.txt
Creating
/usr/share/openxpki/templates/./default/notification/en/certificate_issued_correspond.txt
Creating
/usr/share/openxpki/templates/./default/notification/en/csr_created_correspond.txt
Creating
/usr/share/openxpki/templates/./default/notification/en/csr_approvals_canceled_comment.txt
Creating
/usr/share/openxpki/templates/./default/notification/en/csr_created_comment.txt
Creating
/usr/share/openxpki/templates/./default/workflow_activity_crl_issuance.xml
Creating /usr/share/openxpki/templates/./default/token.xml
Creating /usr/share/openxpki/templates/./default/workflow_def_crl_issuance.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_dataexchange.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_certificate_issuance.xml
Creating
/usr/share/openxpki/templates/./default/workflow_def_certificate_issuance.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_certificate_revocation_request.xml
Creating
/usr/share/openxpki/templates/./default/workflow_def_certificate_revocation_request.xml
Creating /usr/share/openxpki/templates/./default/profile.xml
Creating /usr/share/openxpki/templates/./default/config.xml
Creating /usr/share/openxpki/templates/./default/log.conf
Creating
/usr/share/openxpki/templates/./default/workflow_validator_certificate_signing_request.xml
Creating /usr/share/openxpki/templates/./default/workflow.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_certificate_signing_request.xml
Creating
/usr/share/openxpki/templates/./default/workflow_def_certificate_signing_request.xml
Creating /usr/share/openxpki/templates/./default/workflow_condition.xml
Creating /usr/share/openxpki/templates/./default/workflow_activity_null.xml
Creating
/usr/share/openxpki/templates/./default/workflow_validator_certificate_revocation_request.xml
Creating /usr/share/openxpki/templates/./default/notification.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_smartcard_personalization.xml
Creating
/usr/share/openxpki/templates/./default/workflow_def_smartcard_personalization.xml
Creating /usr/share/openxpki/templates/./default/acl.xml
Creating /usr/share/openxpki/templates/./default/auth.xml
Creating /usr/share/openxpki/templates/./default/database.xml
Creating /usr/share/openxpki/templates/./default/log_database.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_scep_request.xml
Creating /usr/share/openxpki/templates/./default/workflow_def_scep_request.xml
Creating
/usr/share/openxpki/templates/./default/workflow_activity_certificate_ldap_publishing.xml
Creating
/usr/share/openxpki/templates/./default/workflow_def_certificate_ldap_publishing.xml
Creating /usr/share/openxpki/templates/./default/ldappublic.xml
Creating /usr/share/openxpki/templates/./default/openxpki.conf
Creating directory /usr/share/openxpki/templates/./quickstart
Creating
/usr/share/openxpki/templates/./quickstart/workflow_activity_crl_issuance.xml
Creating /usr/share/openxpki/templates/./quickstart/token.xml
Creating /usr/share/openxpki/templates/./quickstart/workflow_activity_null.xml
Creating /usr/share/openxpki/templates/./quickstart/workflow_condition.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_def_certificate_signing_request.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_activity_certificate_issuance.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_def_crl_issuance.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_validator_certificate_revocation_request.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_def_certificate_issuance.xml
Creating /usr/share/openxpki/templates/./quickstart/notification.xml
Creating directory /usr/share/openxpki/templates/./quickstart/notification
Creating
/usr/share/openxpki/templates/./quickstart/workflow_activity_certificate_revocation_request.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_def_certificate_revocation_request.xml
Creating /usr/share/openxpki/templates/./quickstart/acl.xml
Creating /usr/share/openxpki/templates/./quickstart/profile.xml
Creating /usr/share/openxpki/templates/./quickstart/auth.xml
Creating /usr/share/openxpki/templates/./quickstart/database.xml
Creating /usr/share/openxpki/templates/./quickstart/log_database.xml
Creating /usr/share/openxpki/templates/./quickstart/config.xml
Creating /usr/share/openxpki/templates/./quickstart/log.conf
Creating
/usr/share/openxpki/templates/./quickstart/workflow_validator_certificate_signing_request.xml
Creating /usr/share/openxpki/templates/./quickstart/workflow.xml
Creating
/usr/share/openxpki/templates/./quickstart/workflow_activity_certificate_signing_request.xml
Creating /usr/share/openxpki/templates/./quickstart/openxpki.conf
Installing binary files to /usr/bin
for file in bin/openxpkiadm bin/openxpkictl bin/openxpki-configure
bin/openxpki-metaconf ; do \
/usr/bin/install -o root -g root -m 0755 $file /usr/bin/ ;\
/usr/bin/install -o root -g root -m 0644 $file.1 /usr/man/man1/
;\
done
Installation complete
You should now run the deployment tool to create a new OpenXPKI instance
in the default location /usr/etc/openxpki:
openxpkiadm deploy
now i'm trying to finish "client"
cd svn-openxpki/trunk/clients/perl/OpenXPKI-Client
make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00.pod-coverage.....ok
t/00.pod..............ok
t/10.load.............ok 1/1# Testing OpenXPKI::Client v0.9.985
t/10.load.............ok
t/20.init-openxpki....# Locally deploying OpenXPKI
t/20.init-openxpki....ok 1/9Deploying OpenXPKI configuration file set.
Template set: default
Template source directory: /usr/share/openxpki/templates
Target directory:
/usr/src/svn-openxpki/trunk/clients/perl/OpenXPKI-Client/t/instance
wrote
/usr/src/svn-openxpki/trunk/clients/perl/OpenXPKI-Client/t/instance/etc/openxpki/openxpki.conf
OpenXPKI instance successfully deployed to t/instance.
You may now want to run
cd t/instance
openxpki-configure
# Configuring with local options --batch --createdirs -- --setcfgvalue
server.runuser=root --setcfgvalue
server.socketfile=/var/tmp/openxpki-client-test.socket --setcfgvalue
server.rungroup=root --setcfgvalue
dir.prefix=/usr/src/svn-openxpki/trunk/clients/perl/OpenXPKI-Client/t/instance
--setcfgvalue database.name=t/instance/sqlite.db --setcfgvalue
database.type=SQLite
t/20.init-openxpki....ok 2/9*** NOTE: Password for user <John Doe> is: MBivQGGL
*** NOTE: Password for user <root> is: C7yA5Zcr
*** NOTE: Password for user <raop> is: A4pfbP4t
t/20.init-openxpki....ok 5/9Database type: SQLite
Setting up database 'log'
Database 'log' initialized.
Setting up database 'workflow'
Database 'workflow' initialized.
Setting up database 'backend'
Database 'backend' initialized.
# Starting OpenXPKI Server.
t/20.init-openxpki....ok 8/9system.info: Initialization task
'current_xml_config' finished
system.info: Initialization task 'i18n' finished
t/20.init-openxpki....ok
t/30.client...........# Client library tests
t/30.client...........ok 1/12# Got session id 18c2e10afb017453f21a0aa7e11635b9
t/30.client...........ok
t/99.cleanup..........# Cleaning up
# Stopping OpenXPKI Server.
t/99.cleanup..........ok
All tests successful.
Files=6, Tests=27, 20 wallclock secs (20.10 cusr + 4.63 csys = 24.73 CPU)
make install
Writing /usr/local/lib/perl/5.8.8/auto/OpenXPKI/Client/.packlist
Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod
openxpkiadm deploy:
Deploying OpenXPKI configuration file set.
Template set: default
Template source directory: /usr/share/openxpki/templates
Target directory: /usr
mkdir /usr/etc
mkdir /usr/etc/openxpki
wrote /usr/etc/openxpki/openxpki.conf
OpenXPKI instance successfully deployed to /usr.
You may now want to run
cd /usr
openxpki-configure
openxpki-configure
OpenXPKI (Re)configuration Script
Copyright (c) 2006 by The OpenXPKI Project
Configuring in /usr/etc/openxpki...
Select section to configure
a. Directories
b. Auxiliary programs and files
c. OpenXPKI server settings
d. Database setup
e. LDAP options setup
f. Deployment options
g. Global configuration
h. Exit
>
great ... sucessfull progress, but is this right way ???
for example "make test" in "trunk/perl-modules/core/trunk":
t/14_datetime/02.................................# DATETIME FUNCTIONS: VALIDITY
COMPUTATION
# Failed test 'get_validity() calculating with months without leap years
works'
# in t/14_datetime/02.t at line 34.
# got: '11'
# expected: '12'
t/14_datetime/02.................................NOK 1
# Failed test 'get_validity() + 2m with leap years'
# in t/14_datetime/02.t at line 49.
# got: '14'
# expected: '13'
t/14_datetime/02.................................ok 3/19# Looks like you failed
2 tests of 19.
t/14_datetime/02.................................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/19 tests, 89.47% okay
2 datetime test are failed and i tried:
dh-make-perl --build --cpan Date::Parse
apt-get remove --purge libtimedate-perl
dpkg -i lib--perl_1.16-1_all.deb
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/14_datetime/02.t 2 512 19 2 10.53% 1-2
t/20_xml/6.t 255 65280 21 42 200.00% 1-21
t/60_workflow/09_deploy_and_start 255 65280 ?? ?? % ??
t/60_workflow/10_certificate_sign 255 65280 ?? ?? % ??
t/60_workflow/15_csr_and_certific 255 65280 ?? ?? % ??
t/60_workflow/20_certificate_revo 255 65280 ?? ?? % ??
t/60_workflow/40_certificate_revo 255 65280 ?? ?? % ??
t/60_workflow/60_ldap_publishing. 255 65280 ?? ?? % ??
t/60_workflow/80_forking.t 255 65280 ?? ?? % ??
t/60_workflow/99_cleanup.t 2 512 6 2 33.33% 5-6
t/80_config_versioning/01.t 255 65280 ?? ?? % ??
t/80_config_versioning/99_cleanup 1 256 1 1 100.00% 1
(99 subtests UNEXPECTEDLY SUCCEEDED), 18 tests and 37 subtests skipped.
Failed 12/112 test scripts, 89.29% okay. 26/2047 subtests failed, 98.73% okay.
make: *** [test_dynamic] Error 255
after some make, make test:
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/14_datetime/02.t 2 512 19 2 10.53% 1-2
t/20_xml/6.t 255 65280 21 42 200.00% 1-21
(99 subtests UNEXPECTEDLY SUCCEEDED), 20 tests and 37 subtests skipped.
Failed 2/112 test scripts, 98.21% okay. 23/2169 subtests failed, 98.94% okay.
make: *** [test_dynamic] Error 255
so what now?
--
5o Peter.Mann at tuke.sk
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users