Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -18,5 +18,7 @@ tcc4tcl.so tcc4tcl.sl tcc4tcl.dylib tcc4tcl.syms tcc4tcl.vers +TEST-STATUS +__TMP__ Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -80,14 +80,21 @@ mkdir -p "$$dstdir"; \ echo cp "$$src" "$$dst"; \ cp "$$src" "$$dst"; \ done +test: + rm -rf __TMP__ + $(MAKE) install tcllibdir=$(shell pwd)/__TMP__ + cd __TMP__/* && ../../test + echo Tests Completed OK > TEST-STATUS + clean: rm -f tcc4tcl.o rm -f tcc4tcl.@SHOBJEXT@ tcc4tcl-static.a rm -f tcc4tcl.@SHOBJEXT@.a tcc4tcl.@SHOBJEXT@.def + rm -f TEST-STATUS -$(MAKE) -C tcc clean distclean: clean rm -rf autom4te.cache rm -f config.log config.status @@ -99,6 +106,6 @@ rm -rf __TMP__ rm -rf tcc rm -f configure aclocal.m4 rm -f config.guess config.sub install-sh -.PHONY: all install clean distclean mrproper +.PHONY: all install test clean distclean mrproper Index: build/makearch.info ================================================================== --- build/makearch.info +++ build/makearch.info @@ -4,11 +4,12 @@ # This is the name of output files that should exist after configure # procedures. BINS="tcc4tcl.so" # This lists the name of files that are required to exist -REQS="pkgIndex.tcl" +## TEST-STATUS is only created if "make test" succeeds +REQS="pkgIndex.tcl TEST-STATUS" # Version of utility, if empty it will be guessed. # If set to "auto" it will be maintained in a file called .version # in the source directory and the revision will be incremented # each time a "makearch" is done. ADDED test Index: test ================================================================== --- /dev/null +++ test @@ -0,0 +1,6 @@ +#! /usr/bin/env tclsh + +source tcc4tcl.tcl +tcc4tcl::cproc test {int i} int { return(i+42); } +tcc4tcl::cproc test1 {int i} int { return(i+42); } +puts [test 1]