Am 19.04.2007 um 15:42 schrieb [EMAIL PROTECTED]:

Jens Miltner <[EMAIL PROTECTED]> wrote:
How do I run the tests with an amalgamized build?

You may need to adjust a pathname or two, but the
following is the general idea:

  make sqlite3.c
  gcc -o testfixure -g -O3 -Wall \
      -DSQLITE_NO_SYNC=1 \
      -DSQLITE_DEBUG=1 \
      -DSQLITE_MEMDEBUG=1 \
      -DHAVE_FDATASYNC=1 \
      -DTHREADSAFE=0 \
      -DHAVE_USLEEP=1 \
      -DSQLITE_CRASH_TEST=1 \
      -DSQLITE_SERVER=1 \
      -DSQLITE_TEST=1 \
      -DOS_UNIX=1 \
      -DTCLSH=1 \
      -I/home/drh/tcltk/85linux \
      -I../sqlite/src -I. -Itsrc \
      tclsqlite3.c ../sqlite/src/test*.c \
      /home/drh/tcltk/85linux/libtcl8.5.a -lm -ldl
  ./testfixture ../sqlite/test/all.test

Ah - thanks, this works, except tclsqlite3.c wasn't generated by the standard Makefile.
After adding the lines

        cp sqlite3.c tclsqlite3.c
        cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
        tclsh $(TOP)/tool/mksqlite3internalh.tcl

(which I copied from main.mk) to the sqlite3.c make target in Makefile, the file was generated and I could manually compile and run textfixure...

Maybe this should be added to Makefile.in?

Also, it would be nice if there was a way to trigger the amalgamized tests from make...


</jum>



-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to