Check-in [5b5e7e38ed]
Overview
Comment:Updated to test with package
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5b5e7e38edce827b5c4228379545b90599a0c5fe
User & Date: rkeene on 2014-05-06 20:12:23
Other Links: manifest | tags
Context
2014-05-06
21:28
Deleted huge patch from original TclTCC distribution check-in: d00df72845 user: rkeene tags: trunk
20:12
Updated to test with package check-in: 5b5e7e38ed user: rkeene tags: trunk
06:06
Updated to normalize correctly check-in: af00e9d27e user: rkeene tags: trunk
Changes

Modified Makefile.in from [f3dd26de50] to [c1f1b242f5].

82
83
84
85
86
87
88
89

90
91
92
93
94
95
96
			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
	rm -rf __TMP__

clean:
	rm -f tcc4tcl.o
	rm -f tcc4tcl.@SHOBJEXT@ tcc4tcl-static.a
	rm -f tcc4tcl.@SHOBJEXT@.a tcc4tcl.@SHOBJEXT@.def







|
>







82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
			echo cp "$$src" "$$dst"; \
			cp "$$src" "$$dst"; \
		done

test:
	rm -rf __TMP__
	$(MAKE) install tcllibdir=$(shell pwd)/__TMP__
	-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
	rm -f tcc4tcl.@SHOBJEXT@ tcc4tcl-static.a
	rm -f tcc4tcl.@SHOBJEXT@.a tcc4tcl.@SHOBJEXT@.def

Modified test from [c72233bf30] to [e0d226705d].

1
2
3


4
5
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]


|
>
>



1
2
3
4
5
6
7
8
#! /usr/bin/env tclsh

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]