README 994 B

123456789101112131415161718192021222324252627282930
  1. -*-text-*-
  2. These tests use the standard automake TESTS mechanism. Tests should
  3. be listed in TESTS in Makefile.am, and should exit with 0 on success,
  4. non-zero on failure, and 77 if the result should be ignored. See the
  5. automake info pages for more information.
  6. If you want to use a scheme script, prefix it as follows:
  7. #!/bin/sh
  8. exec guile -s "$0" "$@"
  9. !#
  10. Makefile.am will arrange for all tests (scripts or executables) to be
  11. run under uninstalled-env so that the PATH, LD_LIBRARY_PATH, and
  12. GUILE_LOAD_PATH will be augmented appropriately.
  13. The Makefile.am has an example of creating a shared library to be used
  14. from a test scheme script as well.
  15. You can also create standalone executables that include your own code,
  16. are linked against libguile, and that run a given test script (or
  17. scripts). One way to do this is to create the binary, make sure it
  18. calls scm_shell (argc, argv) as its final action, and put this bit at
  19. the top of your test script:
  20. #!./my-test-binary -s
  21. !#