~ chicken-core (master) /tests/repository-path.scm
Trap1(import (chicken platform)2 (chicken process-context)3 (chicken condition))45(include "test.scm")67(test-equal "find-file on #f"8 (chicken.load#find-file "repository-path.scm" #f)9 #f)1011(test-equal "find-file on string"12 (chicken.load#find-file "repository-path.scm" ".")13 "./repository-path.scm")1415(test-equal "find-file on list"16 (chicken.load#find-file "repository-path.scm" '(".." "."))17 "./repository-path.scm")1819(test-equal "(repository-path) is populated by CHICKEN_REPOSITORY_PATH"20 (repository-path)21 (command-line-arguments))2223(repository-path24 (cons (get-environment-variable "CHICKEN_INSTALL_REPOSITORY")25 (repository-path)))2627(test-assert "setting (repository-path) and loading a library"28 (handle-exceptions exn #f (begin (require-library sample-module) #t)))2930(test-error "Putting garbage in (repository-path)"31 (repository-path '(foo)))3233(test-exit)