Guile examples consistency changes
Use new guile_embedded_run target or guile_run target for running the examples like the other target languages (for suppressing stdout if run from top level). Consistency with other target language file renames: use runme.scm for scripts and example.i, example.c for example code. Add class example to examples being tested.
This commit is contained in:
parent
95e2142347
commit
d974e9aced
21 changed files with 27 additions and 47 deletions
|
|
@ -2,9 +2,10 @@ SRCS = example.c
|
|||
TARGET = my-guile
|
||||
IFILE = example.i
|
||||
MKDIR = ..
|
||||
TOP = ../..
|
||||
|
||||
check: $(TARGET)
|
||||
./$(TARGET) -s example.scm
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' guile_embedded_run
|
||||
|
||||
build: $(TARGET)
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ A very simple example.
|
|||
|
||||
To run it, start the program 'my-guile' and type:
|
||||
|
||||
(load "example.scm")
|
||||
(load "runme.scm")
|
||||
|
||||
Alternatively, you can use the shell command:
|
||||
|
||||
./my-guile -s example.scm
|
||||
./my-guile -s runme.scm
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
;;; example.scm
|
||||
|
||||
(define (mdisplay-newline . args) ; does guile-1.3.4 have `format #t'?
|
||||
(for-each display args)
|
||||
|
|
@ -25,4 +24,3 @@
|
|||
(exit (and (= 1932053504 (fact 13))
|
||||
(= 745470.0 (My-variable))))
|
||||
|
||||
;;; example.scm ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue