readme.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. These tests are to thest the fppkg system.
  2. The tests have the structure of unit-tests, but are not real unit-tests, altough
  3. some tests may test the TpkgFPpkg-class in a unit-test way.
  4. To be able to test fppkg, fpc-installations are made in in the templates-
  5. directory. They can have several settings and options.
  6. On each test one of these templates is synchronised to the current-test
  7. directory. Then the test can do something to this current-test environment
  8. without influencing the environment for other tests. And without having to
  9. re-build the test-environment for each test.
  10. To be able to build the test-templates, the tests need the full sources of fpc
  11. and a start-compiler.
  12. Usage is the same as for other unit-tests. Special options are:
  13. -f <path> or --fpcsrcpath=<path>
  14. The location of the full fpc-sources (fpcsrc)
  15. -t <path> or --testpath=<path>
  16. The location where the test-environment and templates has are build
  17. The default is the 'testroot' sub-directory of the directory where the
  18. executable resides.
  19. -p <path> or --packagespath=<path>
  20. The location of the packages which are used in the tests. This are the
  21. packages which are in the 'packages' directory that belongs to these tests.
  22. The default is the 'packages' sub-directory of the directory where the
  23. executable resides.
  24. -s <startcompiler> or --startcompiler=<startcompiler>
  25. The compiler that has to be used to compile fpc
  26. -T or --skipbuildtemplate
  27. Do not (re)-build the fpc-installation templates. To speed up the tests
  28. when it is not necessary to recompile fpc.
  29. For example, to run the tests:
  30. fppkg_tests --all --fpcsrcpath=~/svn/fpc-trunk --startcompiler=ppcx64_3.0.0
  31. Or to run the tests, but use a temporary directory for the test-setup:
  32. fppkg_tests --all --fpcsrcpath=~/svn/fpc-trunk --startcompiler=ppcx64_3.0.0 --testpath=/tmp/temptest
  33. Or to run successive tests, without re-building the setup:
  34. fppkg_tests --all --testpath=/tmp/temptest --skipbuildtemplate