..bits & bytes teleported

Wednesday Aug 13, 2008

Relevant Source code directories and Notes

  • mysql-test- test suite for the MySQL daemon. Uses Perl script to run tests using a pre-defined framework and test language
    • To run the tests in this test-suite, go to mysql-test and run the 'mysql-test-run.pl' script
    • 'make test' also does the above after running the tests in 'unittest'
  • tests- C & perl scripts to perform various client -like tasks- uses libmysql (C lib) Perl API respectively (mainly tests features which are not possible via above)
    • No where in the top-level Makefile is the 'tests' directory mentioned
    • what is the 'mysql_client_test.c' doing?
    • mysql_client_test- shell script wrapper for .libs/mysql_client_test
      • the other tests- Perl scripts + c binaries can be executed independently; binaries are copied to .libs directory under 'tests'
    • 'make install' in tests shows the following:
      • :"/home/as227057/dev-tools/mysql-5.1.25-rc/tests" 104 $ make install
        make[1]: Entering directory `/home/as227057/dev-tools/mysql-5.1.25-rc/tests'
        test -z "/home/as227057/mysql-linux/bin" || mkdir -p -- "/home/as227057/mysql-linux/bin"
          /bin/sh ../libtool --preserve-dup-deps --mode=install /usr/bin/install -c 'mysql_client_test' '/home/as227057/mysql-linux/bin/mysql_client_test'
        /usr/bin/install -c .libs/mysql_client_test /home/as227057/mysql-linux/bin/mysql_client_test
        make[1]: Nothing to be done for `install-data-am'.
        make[1]: Leaving directory `/home/as227057/dev-tools/mysql-5.1.25-rc/tests'
      • As is apparent, 'make install' installs the 'mysql_client_test' wrapper script in the bin/ directory which can be executed as before

    • http://lists.mysql.com/internals/35865
  • unittest- contains the implementation of the MyTAP library and some example tests using MyTAP- no MySQL relevant tests
    • make test-unit
    • new tests can be inserted and run by adding relevant info in Makefile.am
Reference
Comments:

Post a Comment:
Comments are closed for this entry.