Hi Alex, Have spent some time trying to kick up the auto testing on FreeBSD-6.2. Trimmed a script according to my system configuration and needs:
1) set $PREFIX 2) set $DEPLOYMENT_PREFIX 3) have changed "cp -r" into "cp -fR", and "make" into "gmake". Still having some problems. 1) generate_report.pl fails with Appending installation info to /home/svysh/prefix/lib/perl5/5.8.8/mach/perllocal.pod Running test for client (revision 0880) Running test for client_cli (revision 0880) Running test for client_mason (revision 0880) Running test for client_scep (revision 0880) Running test for server (revision 0880) Generating report ... r0880 svn: Write error: Broken pipe mkdir: /home/svysh/prefix/output//client: File exists cp: 0880_coverage: No such file or directory readline() on closed filehandle $SUMMARY at ../tools/automated_test_reports/generate_report.pl line 156. Use of uninitialized value in substitution (s///) at ../tools/automated_test_reports/generate_report.pl line 157. Use of uninitialized value in print at ../tools/automated_test_reports/generate_report.pl line 159. mkdir: /home/svysh/prefix/output//client_cli: File exists cp: 0880_coverage: No such file or directory readline() on closed filehandle $SUMMARY at ../tools/automated_test_reports/generate_report.pl line 156. Use of uninitialized value in substitution (s///) at ../tools/automated_test_reports/generate_report.pl line 157. Use of uninitialized value in print at ../tools/automated_test_reports/generate_report.pl line 159. mkdir: /home/svysh/prefix/output//client_mason: File exists cp: 0880_coverage: No such file or directory readline() on closed filehandle $SUMMARY at ../tools/automated_test_reports/generate_report.pl line 156. Use of uninitialized value in substitution (s///) at ../tools/automated_test_reports/generate_report.pl line 157. Use of uninitialized value in print at ../tools/automated_test_reports/generate_report.pl line 159. mkdir: /home/svysh/prefix/output//client_scep: File exists mkdir: /home/svysh/prefix/output//server: File exists ================================================================== 2) and file output/client/0880_output.txt contains a text: OpenXPKI instance configured successfully. ok 5 ok 6 ok 7 system.fatal: Exception during initialization task 'dbi_log': I18N_OPENXPKI_SERVER_DBI_DBH_CONNECT_EXCEPTION Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.8/mach/OpenXPKI/i18n.pm line 86, <DATA> line 228. Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.8/mach/OpenXPKI/i18n.pm line 86, <DATA> line 228. I18N_OPENXPKI_SERVER_DBI_DBH_CONNECT_EXCEPTION; __ERRNO__ => ; __EXCEPTION__ => install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 . /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 822) line 3, <DATA> line 228. Perhaps the DBD::SQLite perl module hasn't been fully installed, or perhaps the capitalisation of 'SQLite' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Mock, Proxy, Sponge. at /usr/local/lib/perl5/site_perl/5.8.8/mach/OpenXPKI/Server/DBI/DBH.pm line 98; __ERRVAL__ => not ok 8 # Failed test at t/20.init-openxpki.t line 69. ================================================================== Please note that DBD/SQLite.pm _is_ installed and present in the INC path on my host: ls -l /usr/local/lib/perl5/site_perl/5.8.8/mach/DBD/SQLite.pm -r--r--r-- 1 root wheel 16101 Sep 8 2006 /usr/local/lib/perl5/site_perl/5.8.8/mach/DBD/SQLite.pm Also, similar SQLite-related error is reported with other modules too. E.g. in server test #28 fails. But when I explicitly say "gmake test" from server, this test runs ok, like: t/28_log/01..........................OpenXPKI::Server::Log: Database Initialization t/28_log/01..........................ok t/28_log/02..........................# OpenXPKI::Server::Log: interface of log function t/28_log/02..........................ok 3) What is the name of your system where this script runs ok? Could you please comment. All the best, Sergei Alexander Klink wrote: > Hi all, > > so, the automated testing scripts finally seem to be working. I've > installed them at one of our test machines, which generates a report > at http://build0.cynops.de/openxpki_tests/ (URL subject to later > change). > This report is generated at least nightly (one test run for one revision > takes about 30 minutes, so doing it more often makes it more > complicated). Please check it once it a while to see if something broke ... > If someone wants to set up automatic testing on a different machine > (for example a FreeBSD one? ;-) that would be highly appreciated ... > > Best regards, > Alex ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ OpenXPKI-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openxpki-devel
