README 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. My-Testbin Documentation
  2. NOTE: You must use bmake for building programs
  3. in this directory.
  4. The my-testbin folder is designed to be recompiled with the
  5. remainder of the testcases or on its own.
  6. Whenever bmake <depend|clean|all|install> in the main/toplevel
  7. os161 directory, my-testbin will be recompiled.
  8. The compilation process iterates over all subdirectories in
  9. my-testbin, compiling and linking the code within them.
  10. The final executable will have the name specified
  11. within the Makefile in the subdirectory (usually the same
  12. name as the directory). This, would mean that each test case
  13. would be uniquly identified by the folder name.
  14. HOWTOs:
  15. Create a new Testcase:
  16. * Create a new folder in my-testbin
  17. * Add the .c and .h source to that directory
  18. * Go to my-testbin and execute `bmake`
  19. * Finally run `bmake install` to copy the binaries to
  20. root/my-testbin
  21. Running new testcases:
  22. * The new testcases will be installed in root/my-testbin
  23. * run them with the "p my-testbin/<testname>" options
  24. to the kernel.
  25. See the Makefile in this directory and example/Makefile
  26. for and example of how to add new programs.
  27. It is probably simplest to put each program in a
  28. separate directory. You can copy the Makefile from
  29. the example directory and then modify the line
  30. that defines the program name to the name
  31. of the new program.
  32. PROG=example