Changeset 14480 in project


Ignore:
Timestamp:
04/27/09 16:09:05 (10 years ago)
Author:
Ivan Raikov
Message:

ported random-test to Chicken 4

Location:
release/4/random-test
Files:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • release/4/random-test/trunk/random-test-eggdoc.scm

    r7358 r14480  
    66     (name "random-test")
    77     (description "Some simple randomness tests for a sequence of numbers.")
    8      (author (url "http://chicken.wiki.br/ivan raikov" "Ivan Raikov"))
     8     (author (url "http://chicken.wiki.br/users/ivan-raikov" "Ivan Raikov"))
    99
    1010     (history
     11      (version "1.7" "Ported to Chicken 4")
    1112      (version "1.6" "Removed testeez dependency")
    1213      (version "1.5" "Build script updated for better cross-platform compatibility")
     
    172173
    173174     (license
    174       "Copyright 2007 Ivan Raikov.
     175      "Copyright 2007-2009 Ivan Raikov.
    175176
    176177This program is free software: you can redistribute it and/or modify
  • release/4/random-test/trunk/random-test.meta

    r9305 r14480  
     1;;;; -*- Hen -*-
     2
    13((egg "random-test.egg") ; This should never change
    24
  • release/4/random-test/trunk/random-test.scm

    r4881 r14480  
    77;;
    88;;
    9 ;; Copyright 2007 Ivan Raikov
     9;; Copyright 2007-2009 Ivan Raikov.
    1010;;
    1111;;
     
    2525;;
    2626
     27(module random-test
     28   
     29  ( make-random-test format-random-stats )
     30
     31  (import scheme chicken foreign extras data-structures srfi-4)
     32 
     33  (require-extension srfi-4 easyffi)
    2734
    2835
     
    118125;;
    119126;;
    120 
    121 (require-extension srfi-4)
    122 (define-extension random-test)
    123 
    124 (declare (export make-random-test format-random-stats))
    125 
    126127
    127128; Parse & embed
     
    391392
    392393<#
     394)
  • release/4/random-test/trunk/random-test.setup

    r6987 r14480  
    1 
    2 (define has-exports? (string>=? (chicken-version) "2.310"))
     1;;;; -*- Hen -*-
    32
    43(define (dynld-name fn)         
    54  (make-pathname #f fn ##sys#load-dynamic-extension))   
    65
    7 (compile  -X easyffi -O2 -d0 -e -s
    8          ,@(if has-exports? '(-check-imports -emit-exports random-test.exports) '())
    9          random-test.scm -lchicken -ldl -lm)
     6(compile  -X easyffi -O2 -d0 -s random-test.scm -j random-test)
     7(compile -O2 -d0 -s random-test.import.scm)
    108
    119(run (csi -qbs random-test-eggdoc.scm > random-test.html))
     
    1715
    1816  ; Files to install for your extension:
    19   `(,(dynld-name "random-test") "random-test.html"
     17  `(,(dynld-name "random-test") ,(dynld-name "random-test.import") "random-test.html"
    2018    "random-test.fig1.png" "random-test.fig2.png" "random-test.fig3.png"
    21     ,@(if has-exports? '("random-test.exports") (list)) )
     19    )
    2220
    2321  ; Assoc list with properties for your extension:
    24   '((version 1.6)
    25     (documentation "random-test.html")
    26     ,@(if has-exports? `((exports "random-test.exports")) (list)) ))
    27 
     22  '((version 1.7)
     23    (documentation "random-test.html")))
Note: See TracChangeset for help on using the changeset viewer.