Compare commits

..

4 Commits

Author SHA1 Message Date
Minero Aoki f339ad28bc new target "dist"
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4314 1b9489fe-b721-0410-924e-b54b9192deb8
2009-07-19 05:47:30 +00:00
Minero Aoki 024aec421e do not rely on subversion metadata.
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4312 1b9489fe-b721-0410-924e-b54b9192deb8
2009-07-19 05:28:03 +00:00
Minero Aoki f527d78ce6 * test/test_cbc.sh: do not override CBC environment.
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4311 1b9489fe-b721-0410-924e-b54b9192deb8
2009-07-19 05:22:21 +00:00
Minero Aoki ca0cf20012 use install command instead of cp command to set permissions correctly.
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4310 1b9489fe-b721-0410-924e-b54b9192deb8
2009-07-19 04:33:49 +00:00
6 changed files with 155 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Sun Jul 19 14:21:42 2009 Minero Aoki <aamine@loveruby.net>
* test/test_cbc.sh: do not override CBC environment.
Mon Jul 6 05:21:24 2009 Minero Aoki <aamine@loveruby.net>
* install.sh: tested.

View File

@ -1,4 +1,6 @@
ANT = ant
VERSION = 1.0.1
BINVERSION = 1.0
default: all
@ -21,3 +23,13 @@ check:
unittest:
cd unit; $(MAKE) test
dist:
rm -rf cbc-$(VERSION) cbc-$(BINVERSION)
svn export http://i.loveruby.net/svn/public/cbc/tags/$(VERSION) cbc-$(VERSION)
cd cbc-$(VERSION); $(MAKE)
cd cbc-$(VERSION); $(ANT) clean-build
tar c cbc-$(VERSION) | gzip -n > cbc-$(VERSION).tar.gz
mv cbc-$(VERSION) cbc-$(BINVERSION)
tar c cbc-$(BINVERSION) | gzip -n > cbc-$(BINVERSION).tar.gz
rm -rf cbc-$(BINVERSION)

View File

@ -13,7 +13,7 @@ main()
fi
echo "prefix=$prefix"
invoke mkdir -p "$prefix/bin"
invoke cp $BINS "$prefix/bin"
invoke install -m755 $BINS "$prefix/bin"
invoke mkdir -p "$prefix/lib"
invoke cp $LIBS "$prefix/lib"
invoke rm -rf "$prefix/import"

View File

@ -22,4 +22,4 @@ recompile:
comptest: recompile test
clean:
rm -f *.s *.o `svn pget svn:ignore .`
rm -f a.out *.s *.o tc.* `cat TARGETS`

135
test/TARGETS Normal file
View File

@ -0,0 +1,135 @@
zero
one
hello
hello2
hello3
hello4
funcall0
funcall1
funcall2
funcall3
funcall4
funcall5
param
lvar1
lvar2
comm
scomm
gvar
sgvar
slcomm
slvar
add
sub
mul
div
mod
bitand
bitor
bitxor
bitnot
lshift
rshift
logicalnot
unaryplus
unaryminus
eq
neq
lt
gt
lteq
gteq
assign
opassign
inc
dec
if1
if2
while1
while2
while3
while-break
while-continue
dowhile1
dowhile2
dowhile3
dowhile-break
dowhile-continue
for1
for-break
for-continue
struct
struct2
struct3
union
array
array2
pointer
pointer2
pointer3
pointer4
charops
charops2
ucharops
ucharops2
shortops
shortops2
ushortops
ushortops2
intops
uintops
longops
ulongops
integer
string
logicaland
logicalor
condexpr
struct-semcheck
union-semcheck
cast
cast2
cast3
block
defvar
mbc
ptrmemb
ptrmemb2
assoc
funcptr
funcptr2
funcptr3
funcptr4
usertype
ptrtostruct
initializer
fork
vardecl
empstruct
syntax1
syntax2
syntax3
duplicated-import
staticfunc
switch
utf
sizeof-expr
sizeof-type
sizeof-struct
sizeof-union
noreturn
mdarray
mdarray2
ptrarray
src
varargs
textwrite
validstmt1
decloverride
alloca
alloca2
setjmptest
addressof
const
ptrdiff
implicitaddr

View File

@ -2,6 +2,8 @@
# test_cbc.sh
#
CBC=${CBC:-../bin/cbc}
test_01_exec() {
assert_stat 0 ./zero
assert_stat 1 ./one
@ -379,8 +381,6 @@ assert_private() {
assert_eq "private" `symbol_visibility $1 $2`
}
CBC=../bin/cbc
assert_compile_success() {
assert_status 0 $CBC "$@"
}