Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -84,11 +84,12 @@ done test: rm -rf __TMP__ $(MAKE) install tcllibdir=$(shell pwd)/__TMP__ - cd __TMP__/* && ../../test + -if [ "$(PACKAGE_VERSION)" = '@@VERS@@' ]; then cd __TMP__/* && sed -i 's|@@VERS@@|0.0.0.11|g' tcc4tcl.@SHOBJEXT@ pkgIndex.tcl; fi + tclsh test echo Tests Completed OK > TEST-STATUS rm -rf __TMP__ clean: rm -f tcc4tcl.o Index: test ================================================================== --- test +++ test @@ -1,6 +1,8 @@ #! /usr/bin/env tclsh -source tcc4tcl.tcl +lappend auto_path __TMP__ +package require tcc4tcl + tcc4tcl::cproc test {int i} int { return(i+42); } tcc4tcl::cproc test1 {int i} int { return(i+42); } puts [test 1]