Changeset 376

Show
Ignore:
Timestamp:
09/19/08 12:39:05 (4 months ago)
Author:
sergey.kol..@gmail.com
Message:

Sergey Kolos:

  • Archive library didn't work in both winows and linux, so removing it.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • update-site/jasko.tim.lisp.libs/libs/lib-testing.log

    r330 r376  
    1 I tested with sbcl 1.0.19 on WinXP. 
     1============== I tested with sbcl 1.0.19 on WinXP. 
    22 
    33 
     
    9595----- clsql 4.0.3 - Works (at least with sqlite3 and mysql) uses uffi, so checks that too 
    9696- compiled 
    97 - to test: (read: http://bc.tech.coop/blog/040606.html how to set up mysql) 
    98 get home directory: in command prompt run: echo %UserProfile% 
    99 downloaded and copied to clsql/examples command-line program for accessing and modifying sql databases 
    100 run it and create empty database: sqlite3.exe ex1 
    101 copy file .clsql-test.config into home directory (first check the path to ex1 database in it) 
    102  
    103 load package 
    104 ;; copied sqlite3.dll to CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS* ;; now it is there 
    105 ;; D:\docums\code\eclipse\jasko.tim.lisp.libs\libs\clsql-4.0.3\uffi 
     97- to test:  
     98shell>sqlite3 ex1 (then just quit - should create empty database in home) 
     99get mysql: I installed 5.0.45-6.fc7.i386.rpm / also get development package 
     100 
     101copy file .clsql-test.config into home directory 
     102 
     103 
    106104(asdf:oos 'asdf:test-op 'clsql) 
     105didn't work - had to go to \jasko.tim.lisp.libs\libs\clsql-4.0.3\uffi folder and run make 
     106then find libsqlite3.so and sqlite3.so (not perfect matches on names) and copy them 
     107into uffi folder. 
     108 
    107109All tests pass. Some tests are skiped since sqlite3 does not support them. 
    108110 
     111also need to run make in db-mysql folder 
     112 
     113---------- this is from Win32, still some is relevant 
    109114FIXME: cannot make it run with mysql! it just cannotfind clsql_mysql.dll. But people were able to run it so find out what is going on. 
    110115- testing mysql. Download and setup mysql (full setup) (enter password for root) 
     
    113118mysql> set password for 'root'@'localhost' = password('secret'); 
    114119mysql> create database ex1; 
    115 ;(pushnew (merge-pathnames "C:/Program Files/MySQL/MySQL Server 5.0/bin") ;clsql-sys:*foreign-library-search-paths*) 
    116 make copy of libsql.dll and rename it to libsqlclient.dll. Copy to: 
    117 D:\docums\code\eclipse\jasko.tim.lisp.libs\libs\clsql-4.0.3\uffi 
    118 copied clsql_mysql.dll from clsql-4.0.3\db-mysql to clsql-4.0.3\uffi and removed its extension 
    119  
    120 ok - easy: it searches for clsql_mysql.dll on d drive. i.e. instead of D:\docums\code\eclipse\jasko.tim.lisp.libs path on C:\docums\code\eclipse\jasko.tim.lisp.libs. 
    121 So if it does not compile, check folder created on c drive and copy dll there. 
     120 
    122121 
    123122----- cl-unicode 0.1.1 - Works 
    124123- compiled 
    125 - testing: after loading library, switch to cl-who and run examples from documentation 
     124- testing: after loading library, switch to cl-unicode and run examples from documentation 
    126125 
    127126 
     
    407406   USOCKET-TEST::SOCKET-FAILURE.2, USOCKET-TEST::SOCKET-NAME.4. 
    408407 
     408============== Test on Linux (Fedora VMWare) with cusp 0.9.375 and sbcl 1.0.20 
     409Ganymede 
     410 
     411---- archive_0.7.0 - Doesn't work (same error as on windows) 
     412 
     413 
     414----- chunga-0.4.3 - Drakma dependency - check if Drackma works 
     415- compiled 
     416- works ? 
     417checked by Drackma? 
     418 
     419----- cl-base64-3.3.2 - skiped testing - I think it is used by other libraries 
     420- compiled 
     421 
     422----- cl-fad-0.6.2 - Works 
     423- compiled 
     424- to test: load package. 
     425(load "D:/docums/code/eclipse/jasko.tim.lisp.libs/libs/cl-fad-0.6.2/test.lisp") 
     426(cl-fad-test::test) 
     427Get All tests passed. 
     428 
     429----- cl-interpol-0.2.1 - Works (all tests pass) 
     430- compiled 
     431- to test: (asdf:oos 'asdf:test-op 'cl-interpol) 
     432 
     433 
     434----- cl-ppcre-2.0.0 - Works 
     435- compiled 
     436- to test: (asdf:oos 'asdf:test-op 'cl-ppcre) 
     437 
     438 
     439----- cl-smtp - Need smtp server to check if it works 
     440- compiled 
     441- didn't test 
     442 
     443 
     444=----- clsql 4.0.3 - Works (at least with sqlite3 and mysql) uses uffi, so checks that too 
     445- compiled 
     446- to test: (read: http://bc.tech.coop/blog/040606.html how to set up mysql) 
     447get home directory: in command prompt run: echo %UserProfile% 
     448downloaded and copied to clsql/examples command-line program for accessing and modifying sql databases 
     449run it and create empty database: sqlite3.exe ex1 
     450copy file .clsql-test.config into home directory (first check the path to ex1 database in it) 
     451 
     452load package 
     453;; copied sqlite3.dll to CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS* ;; now it is there 
     454;; D:\docums\code\eclipse\jasko.tim.lisp.libs\libs\clsql-4.0.3\uffi 
     455(asdf:oos 'asdf:test-op 'clsql) 
     456All tests pass. Some tests are skiped since sqlite3 does not support them. 
     457 
     458FIXME: cannot make it run with mysql! it just cannotfind clsql_mysql.dll. But people were able to run it so find out what is going on. 
     459- testing mysql. Download and setup mysql (full setup) (enter password for root) 
     460Test: c:\>mysql -u root -p. Change root pass to "secret" as in config file, or change config file. 
     461Also create empty database ex1: 
     462mysql> set password for 'root'@'localhost' = password('secret'); 
     463mysql> create database ex1; 
     464;(pushnew (merge-pathnames "C:/Program Files/MySQL/MySQL Server 5.0/bin") ;clsql-sys:*foreign-library-search-paths*) 
     465make copy of libsql.dll and rename it to libsqlclient.dll. Copy to: 
     466D:\docums\code\eclipse\jasko.tim.lisp.libs\libs\clsql-4.0.3\uffi 
     467copied clsql_mysql.dll from clsql-4.0.3\db-mysql to clsql-4.0.3\uffi and removed its extension 
     468 
     469ok - easy: it searches for clsql_mysql.dll on d drive. i.e. instead of D:\docums\code\eclipse\jasko.tim.lisp.libs path on C:\docums\code\eclipse\jasko.tim.lisp.libs. 
     470So if it does not compile, check folder created on c drive and copy dll there. 
     471 
     472----- cl-unicode 0.1.1 - Works 
     473- compiled 
     474- testing: after loading library, switch to cl-who and run examples from documentation 
     475 
     476 
     477----- cl-utilities-1.2.4 - Works, but for tests requires FiveAM to test, FiveAM requires ARNESI - arnesi does not compile 
     478- compiled 
     479- to test: manually - pain. - just couple tests 
     480load package, change package to cl-utilities 
     481run tests expressions from tests.lisp 
     482 
     483----- cl-who-0.11.1 - Works 
     484- compiled 
     485- testing: after loading library run tests with: 
     486 
     487----- closure-common-2007-10-21 is dependency of cxml - don't test it directly 
     488 
     489----- cxml-2007-10-21 
     490- compiled 
     491- testing: after loading: (asdf:operate 'asdf:test-op :cxml) - did not do anything - try examples? 
     492(with-open-file (s "c:/temp/example.xml" :direction :output) 
     493    (write-string "<test a='b'><child/></test>" s)) 
     494 
     495(defparameter *example* (cxml:parse-file "c:/temp/example.xml" (cxml-dom:make-dom-builder))) 
     496(dom:document-element *example*) 
     497* (dom:tag-name (dom:document-element *example*)) 
     498"test" 
     499* (dom:child-nodes (dom:document-element *example*)) 
     500#(#<DOM-IMPL::ELEMENT child @ #x722b6d8a>) 
     501 
     502* (dom:get-attribute (dom:document-element *example*) "a") 
     503"b" 
     504 
     505----- cffi-080216 dependency of cl+ssl - runs, but with my changes some tests fail 
     506- compiles 
     507- testing:  
     508could not compile lib - remove from test files: 
     509 long long and other exotics from libtest.c, defcfun.lisp, callbacks.lisp,  
     510 
     511 
     512 
     513 
     514----- cl+ssl-2007-07-07 dependency of drakma - need cffi, need to install openssl (to test - need trivial-sockets - but even with them, was not able to run tests in test.lisp) 
     515(windows installer included) 
     516- put libeay32.dll, libssl32.dll and ssleay32.dll into cl+ssl folder 
     517I am not sure if it works - it doesn't. Drakma starts OK, and most examples work, but ssl doesn't. 
     518probably don't need to install OpenSsl from installer. 
     519 
     520 
     521----- drakma-0.11.5 works (ssl doesn't work) 
     522- compiled 
     523- tested by following examples in documentation 
     524 
     525----- flexi-streams-1.0.7 works 
     526- compiled 
     527- testing:  All tests passed. 
     528 
     529------ cl-store_0.8.3 works (1 out of 127 tests failed) 
     530- compiled 
     531- testing (asdf:oos 'asdf:test-op 'cl-store) 
     532Test FUNCTION.2 failed 
     533Form: (PROGN 
     534       (STORE #'CL-STORE::MKSTR *TEST-FILE*) 
     535       (LET ((FN (RESTORE *TEST-FILE*))) 
     536         (EVERY 
     537          (LAMBDA (ARGS) 
     538            (STRING= (APPLY FN ARGS) (APPLY #'CL-STORE::MKSTR ARGS))) 
     539          '(("foobar" "baz") ("a" "b" "c") ("1 2" "ab " "f oO"))))) 
     540Expected value: T 
     541Actual value: #<RESTORE-ERROR {24E479C9}>. 
     542 GFUNCTION.1 GFUNCTION.2 GFUNCTION.3 NOCIRC.1 STRUCT-CLASS.1 
     543 SERIALIZATION-UNIT.1 
     5441 out of 127 total tests failed: FUNCTION.2. 
     545 
     546 
     547----- gzip-stream_0.1 doesn't work: (testing examples depend on cl-store) 
     548- compiled 
     549- testing: (gzip "c:/temp/tt/1.log" "c:/temp/tt/1.gz") produces TYPE-ERROR 
     550the following also doesn't produce anything good (TYPE-ERROR) 
     551(defparameter foo (make-hash-table)) 
     552(dotimes (x 1000) (setf (gethash x foo) (princ-to-string x))) 
     553(time (cl-store:store foo "c:/temp/foo.out")) 
     554(gzip-stream:with-open-gzip-file (s "c:/temp/foo.gz") 
     555  (cl-store:restore s)) 
     556(gzip-stream:with-open-gzip-file (s "c:/temp/foo.gz" :direction :output 
     557                        :if-exists :supersede) 
     558  (cl-store:store "Hello" s)) 
     559(cl-store:store "Hello" "c:/temp/foo.no-comp") 
     560(time (gzip-stream:gzip "c:/temp/foo.out" "c:/temp/gzipped-diff.gz")) 
     561(gzip-stream:with-open-gzip-file (s "c:/temp/foo.gz" :direction :output :if-exists :supersede) 
     562  (time (cl-store:store foo s))) 
     563(gzip-stream:gunzip "c:/temp/foo.gz" "E:/temp/foo.nogz") 
     564(cl-store:restore "c:/temp/foo.nogz") 
     565 
     566 
     567------ html-template-0.9.1 works 
     568- compiled 
     569- (load "d:/docums/code/eclipse/jasko.tim.lisp.libs/libs/html-template-0.9.1/test.lisp") 
     570Please wait a couple of seconds. 
     571All tests passed... 
     572 
     573------ hunchentoot-0.15.7 
     574- compiled with error: 
     575   COMPILE-FILE warned while performing #<COMPILE-OP NIL {23A5EC29}> on 
     576   #<CL-SOURCE-FILE "port-sbcl" {23D29D81}>. 
     577erred while invoking #<COMPILE-OP NIL {23A5EC29}> on 
     578#<CL-SOURCE-FILE "port-sbcl" {23D29D81}> 
     579   [Condition of type ASDF:COMPILE-FAILED] 
     580  0: [TRY-RECOMPILING] Try recompiling port-sbcl 
     581  1: [RETRY] Retry performing #<ASDF:COMPILE-OP NIL {23A5EC29}> on #<ASDF:CL-SOURCE-FILE "port-sbcl" {23D29D81}>. 
     582  2: [ACCEPT] Continue, treating #<ASDF:COMPILE-OP NIL {23A5EC29}> on #<ASDF:CL-SOURCE-FILE "port-sbcl" {23D29D81}> as having been successful. 
     583  3: [ABORT] Return to SLIME's top level. 
     584  4: [CLOSE-CONNECTION] Close SLIME connection 
     585  5: [ABORT] Exit debugger, returning to top level. 
     586]> 2 
     587hunchentoot-test compiled without errors 
     588- I have not figured out how to run test file. 
     589I used http://berlinbrowndev.blogspot.com/2008/07/enterprise-common-lisp-setting-up.html 
     590to test: 
     591(hunchentoot:start-server :port 4242) then going to http://localhost:4242/ in webbrowser shows hunchentoot default page, it doesn't stop, so need to restart sbcl 
     592 
     593------- lisp_webapp_example (requires mysql) - testing hunchentoot 
     594adjust the following path to path where index.html is located 
     595(setq html-template:*default-template-pathname*  
     596    #P"c:\\projects\\tools\\home\\projects\\aaageneralprojects\\haskellnotebook\\lisp\\webapp\\") 
     597see later:     
     598 
     599to your location 
     600loaded hunchentoot 
     601loaded clsql-mysql 
     602loaded ghost-trinity 
     603(setq html-template:*default-template-pathname*  
     604    #P"D:/docums/code/eclipse/jasko.tim.lisp.libs/libs/lisp_webapp_example/") 
     605(hunchentoot:start-server :port 4242) 
     606point browser to http://localhost:4242 
     607again - doesn't stop, so need to restart sbcl (this is due to lack of thread support in sbcl+win32) 
     608 
     609----- md5-1.8.5 works 
     610- compiles 
     611- testing: (push :md5-testing *features*), delete all fasls in md5 folder 
     612load and compile package md5, drops into debugger about constant being redefined, select continue 
     613although it says aborted, run tests by: (md5::test-other), all 71 test cases succeeded 
     614 
     615----- meta don't know 
     616- compiles 
     617- don't know how to test 
     618 
     619----- ptester-2.1.2 is used in testing some included libraries (so works) 
     620 
     621----- puri-1.5.1 - works 
     622- compiled 
     623- (asdf:oos 'asdf:test-op 'puri) 126 tests - all passed 
     624 
     625----- rfc2388 - did not test, but it looks like a dependency of something else 
     626- compiled 
     627 
     628----- rt-20040621 - is used in testing some included libraries (so works) 
     629 
     630----- salza-0.7.4 - depricated - superceeded by salza2. This library is included because some 
     631other libs may depend on it 
     632- compiled 
     633 
     634------ salza2-2.0.4 - probably works 
     635- compiled 
     636- testing: load library, change package to salza2,  run (compress-data (sb-ext:string-to-octets "Hello, hello, hello, hello world.")  
     637                 'zlib-compressor), get output, and not sure what to do with it. 
     638 
     639------ split-sequence - works 
     640- compiled 
     641- testing: load library, run examples in index.html: (split-sequence:SPLIT-SEQUENCE #\Space "A stitch in time saves nine.") 
     642 
     643------ trivial-gray-streams-2006-09-16 - used in many libraries, so works 
     644- compiled 
     645 
     646------ uffi-1.6.1 - used by clsql, so works 
     647 
     648------ url-rewrite-0.1.1 - works 
     649- compiled 
     650- testing: load package, change package to url-rewrite 
     651(defvar +session-cookie-name+ "session") 
     652(defun add-session-var (html session-value) 
     653    (with-input-from-string (*standard-input* html) 
     654      (with-output-to-string (*standard-output*) 
     655        (rewrite-urls (lambda (url) 
     656                        (add-get-param-to-url url 
     657                                              +session-cookie-name+ 
     658                                              session-value)))))) 
     659 
     660(add-session-var "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">  
     661 <HTML> 
     662   <BODY BGCOLOR=white> 
     663     This is the <A NAME=foo HREF='first.html?foo=bar'>first link</A>, and this is the <A CLASS=NOBORDER HREF=\"http://www.cliki.net/\" TITLE='bar'>second one</A>. 
     664     And here's a picture: <img src='/pics/cool_pic.gif' width=100 height=100> 
     665   </BODY> 
     666 </HTML>" "foo42") 
     667 
     668get: 
     669"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">  
     670 <HTML> 
     671   <BODY BGCOLOR=white> 
     672     This is the <A NAME=foo HREF='first.html?foo=bar&amp;session=foo42'>first link</A>, and this is the <A CLASS=NOBORDER HREF=\"http://www.cliki.net/\" TITLE='bar'>second one</A>. 
     673     And here's a picture: <img src='/pics/cool_pic.gif?session=foo42' width=100 height=100> 
     674   </BODY> 
     675 </HTML>" 
     676 
     677----- zip - works 
     678- compiles 
     679- testing: create zip file with several entries, say c:\tmp\tmp.zip 
     680(zip:with-zipfile (zf #p"c:/tmp/tmp.zip") (zip:zipfile-entries zf)) 
     681get hashtable with entries in zipfile (can check using inspector) 
     682(zip:unzip #p"c:/tmp/tmp.zip" #p"c:/tmp/t/") 
     683get contents of zip in c:/tmp/t/ 
     684 
     685----- zpb-exif-1.0 - works 
     686-compiles 
     687-testing (use example in .html): load package, change to package: 
     688put file g.jpg (preferably from a digital camera) to c:/tmp, run commands: 
     689(defparameter *exif* (make-exif #p"c:/tmp/g.jpg")) 
     690 
     691(exif-value "FNumber" *exif*), etc. check .html 
     692 
     693 
     694----- usocket-0.3.7- Works (but some tests fail) 
     695- compiled 
     696- to test: load package, load rt 
     697(load "D:/docums/code/eclipse/jasko.tim.lisp.libs/libs/usocket-0.3.7/test/package.lisp") 
     698(load "D:/docums/code/eclipse/jasko.tim.lisp.libs/libs/usocket-0.3.7/test/test-usocket.lisp") 
     699(usocket-test:run-usocket-tests) 
     700 
     701Doing 15 pending tests of 15 tests total. 
     702 USOCKET-TEST::MAKE-SOCKET.1 USOCKET-TEST::MAKE-SOCKET.2 
     703 USOCKET-TEST::SOCKET-NO-CONNECT.1 USOCKET-TEST::SOCKET-NO-CONNECT.2 
     704 USOCKET-TEST::SOCKET-NO-CONNECT.3 
     705#<USOCKET:UNKNOWN-ERROR {2437C029}> 
     706is a USOCKET:UNKNOWN-ERROR. 
     707Its slot values are 
     708(:SOCKET #<USOCKET:STREAM-USOCKET {2437BA51}> :REAL-ERROR 
     709 #<SB-BSD-SOCKETS:SOCKET-ERROR {2437BCB1}>). 
     710#<SB-BSD-SOCKETS:SOCKET-ERROR {2437BCB1}> 
     711is a SB-BSD-SOCKETS:SOCKET-ERROR. 
     712Its slot values are 
     713(:ERRNO 2 :SYSCALL "connect" SB-BSD-SOCKETS::ERRNO 2). 
     714Test USOCKET-TEST::SOCKET-FAILURE.1 failed 
     715Form: (USOCKET-TEST::WITH-CAUGHT-CONDITIONS 
     716       ('USOCKET:NETWORK-UNREACHABLE-ERROR NIL) 
     717       (USOCKET:SOCKET-CONNECT 2130706432 
     718                               USOCKET-TEST::+UNUSED-LOCAL-PORT+) 
     719       :UNREACH) 
     720Expected value: NIL 
     721Actual value: #<USOCKET:UNKNOWN-ERROR {2437C029}>. 
     722#<USOCKET:UNKNOWN-ERROR {244FE991}> 
     723is a USOCKET:UNKNOWN-ERROR. 
     724Its slot values are 
     725(:SOCKET #<USOCKET:STREAM-USOCKET {244FE3C1}> :REAL-ERROR 
     726 #<SB-BSD-SOCKETS:SOCKET-ERROR {244FE619}>). 
     727#<SB-BSD-SOCKETS:SOCKET-ERROR {244FE619}> 
     728is a SB-BSD-SOCKETS:SOCKET-ERROR. 
     729Its slot values are 
     730(:ERRNO 2 :SYSCALL "connect" SB-BSD-SOCKETS::ERRNO 2). 
     731Test USOCKET-TEST::SOCKET-FAILURE.2 failed 
     732Form: (USOCKET-TEST::WITH-CAUGHT-CONDITIONS 
     733       ('USOCKET:HOST-UNREACHABLE-ERROR NIL) 
     734       (USOCKET:SOCKET-CONNECT USOCKET-TEST::+NON-EXISTING-HOST+ 80) 
     735       :UNREACH) 
     736Expected value: NIL 
     737Actual value: #<USOCKET:UNKNOWN-ERROR {244FE991}>. 
     738 USOCKET-TEST::SOCKET-CONNECT.1 USOCKET-TEST::SOCKET-CONNECT.2 
     739 USOCKET-TEST::SOCKET-CONNECT.3 USOCKET-TEST::SOCKET-STREAM.1 
     740 USOCKET-TEST::SOCKET-NAME.1 USOCKET-TEST::SOCKET-NAME.2 
     741 USOCKET-TEST::SOCKET-NAME.3 
     742Test USOCKET-TEST::SOCKET-NAME.4 failed 
     743Form: (USOCKET-TEST::WITH-CAUGHT-CONDITIONS (NIL NIL) 
     744                                            (LET ((USOCKET-TEST::SOCK 
     745                                                   (USOCKET:SOCKET-CONNECT 
     746                                                    USOCKET-TEST::+COMMON-LISP-NET+ 
     747                                                    80))) 
     748                                              (UNWIND-PROTECT 
     749                                                  (USOCKET:GET-LOCAL-ADDRESS 
     750                                                   USOCKET-TEST::SOCK) 
     751                                                (USOCKET:SOCKET-CLOSE 
     752                                                 USOCKET-TEST::SOCK)))) 
     753Expected value: #(192 168 1 65) 
     754Actual value: #(192 168 1 64). 
     7553 out of 15 total tests failed: USOCKET-TEST::SOCKET-FAILURE.1,  
     756   USOCKET-TEST::SOCKET-FAILURE.2, USOCKET-TEST::SOCKET-NAME.4. 
     757