Notes on adding a test

Dan Kegel dank at kegel.com
Tue Apr 5 11:17:17 CDT 2005


Thomas Kho mentioned that
http://www.geekymedia.com/twiki/bin/view.cgi/WineDev/AddingMakefile
was helpful to him.  Since the webmaster there says he's
taking down that wiki soon, here's a copy for posterity.

-- snip --
Topic: AddingMakefile (as part of a new Wine test)

Follow the example of the lzexpand test patch:
http://www.winehq.com/hypermail/wine-patches/2004/11/0182.html

Basic steps. (you'll have to chmod mod most of the files to 644 before you can edit them)
    1. In your tests directory, look over wine/dlls/lzexpand/Makefile.in and wine/dlls/lzexpand/tests/Makefile.in
    2. Now look at the Makefile.in in your dll directory. Copy it into your tests dir and change the list of .c files to your test .c file
    3. Edit the Makefile.in file in your dll directory to add a subdirs line (see lzexpand/Makefile.in for an example)
    4. In your wine directory, chmod 644 configure.ac
    5. Edit configure.ac, find your dll directory in the AC_CONFIG_FILES and then add the path to your tests directory after it.
    6. In your wine directory, run autoconf. Make sure you have 2.53 installed (autoconf --version).
    7. Run configure. Your Makefile should be listed at the end now.
-- snip --

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html



More information about the wine-devel mailing list