Made changes to directory references to allow out of source builds.

This commit is contained in:
zeekec 2005-01-28 21:26:20 +00:00
parent 484350cfa2
commit 3b6b7d0b2f
63 changed files with 551 additions and 550 deletions

View File

@ -19,4 +19,4 @@ AC_OUTPUT([ Makefile \
msc/Makefile \
msc/examples/Makefile \
tests/Makefile], \
[chmod a+x tests/*.sh])
[chmod a+x $ac_top_srcdir/tests/*.sh])

File diff suppressed because it is too large Load Diff

View File

@ -123,3 +123,4 @@ EXTRA_DIST = $(TESTS) \
test59.out \
test60.out
CLEANFILES = tmp.out

View File

@ -3,9 +3,9 @@
# success
../examples/test1 -r -n mike > tmp.out 2>&1
if cmp -s tmp.out test1.out; then
if cmp -s tmp.out $srcdir/test1.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test2 -i 10 -s hello > tmp.out 2>&1
if cmp -s tmp.out test10.out; then
if cmp -s tmp.out $srcdir/test10.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test2 -i 10 -s hello -i 9 > tmp.out 2>&1
if cmp -s tmp.out test11.out; then
if cmp -s tmp.out $srcdir/test11.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test2 -i 10 -s hello -f nine > tmp.out 2>&1
if cmp -s tmp.out test12.out; then
if cmp -s tmp.out $srcdir/test12.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test3 --stringTest=bill -i=9 -i=8 -B homer marge bart > tmp.out 2>&1
if cmp -s tmp.out test13.out; then
if cmp -s tmp.out $srcdir/test13.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test3 --stringTest=aaa homer marge bart -- one two > tmp.out 2>&1
if cmp -s tmp.out test14.out; then
if cmp -s tmp.out $srcdir/test14.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test3 --stringTest bbb homer marge bart -- -hv two > tmp.out 2>&1
if cmp -s tmp.out test15.out; then
if cmp -s tmp.out $srcdir/test15.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test3 --stringTest one homer -B -Bh > tmp.out 2>&1
if cmp -s tmp.out test16.out; then
if cmp -s tmp.out $srcdir/test16.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test3 --stringTest=one homer -B > tmp.out 2>&1
if cmp -s tmp.out test17.out; then
if cmp -s tmp.out $srcdir/test17.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test4 -Bs --Bs asdf > tmp.out 2>&1
if cmp -s tmp.out test18.out; then
if cmp -s tmp.out $srcdir/test18.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test4 -BA --Bs asdf > tmp.out 2>&1
if cmp -s tmp.out test19.out; then
if cmp -s tmp.out $srcdir/test19.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test1 -n mike > tmp.out 2>&1
if cmp -s tmp.out test2.out; then
if cmp -s tmp.out $srcdir/test2.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test5 -a asdf -c fdas --eee blah -i sss -i fdsf > tmp.out 2>&1
if cmp -s tmp.out test20.out; then
if cmp -s tmp.out $srcdir/test20.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test5 -b asdf -c fdas -g asdf -j homer > tmp.out 2>&1
if cmp -s tmp.out test21.out; then
if cmp -s tmp.out $srcdir/test21.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test5 -a fdsa -b asdf -c fdas > tmp.out 2>&1
if cmp -s tmp.out test22.out; then
if cmp -s tmp.out $srcdir/test22.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test5 -d junk -c fdas > tmp.out 2>&1
if cmp -s tmp.out test23.out; then
if cmp -s tmp.out $srcdir/test23.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test5 --aaa dilbert -b asdf -c fdas > tmp.out 2>&1
if cmp -s tmp.out test24.out; then
if cmp -s tmp.out $srcdir/test24.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two > tmp.out 2>&1
if cmp -s tmp.out test25.out; then
if cmp -s tmp.out $srcdir/test25.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test2 -i 2 -f 4..2 -s asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test26.out; then
if cmp -s tmp.out $srcdir/test26.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test2 -i 2 -f 4.0.2 -s asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test27.out; then
if cmp -s tmp.out $srcdir/test27.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test2 -i 2a -f 4.2 -s asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test28.out; then
if cmp -s tmp.out $srcdir/test28.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure ! ack no hex :(
../examples/test2 -i 0x2 -f 4.2 -s asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test29.out; then
if cmp -s tmp.out $srcdir/test29.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test1 -n mike -r > tmp.out 2>&1
if cmp -s tmp.out test3.out; then
if cmp -s tmp.out $srcdir/test3.out; then
exit 0
else
else
exit 1
fi

View File

@ -1,11 +1,11 @@
#!/bin/sh
# failure
# failure
../examples/test2 -i 2.1 -f 4.2 -s asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test30.out; then
if cmp -s tmp.out $srcdir/test30.out; then
exit 0
else
else
exit 1
fi

View File

@ -1,11 +1,11 @@
#!/bin/sh
# failure
# failure
../examples/test3 -i=9a -i=1 -s=asdf asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test31.out; then
if cmp -s tmp.out $srcdir/test31.out; then
exit 0
else
else
exit 1
fi

View File

@ -1,11 +1,11 @@
#!/bin/sh
# failure
# failure
../examples/test3 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test32.out; then
if cmp -s tmp.out $srcdir/test32.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test5 -a asdf -c fdas --eee blah --ddd -j o --jjj t > tmp.out 2>&1
if cmp -s tmp.out test33.out; then
if cmp -s tmp.out $srcdir/test33.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test6 -n homer 2 > tmp.out 2>&1
if cmp -s tmp.out test34.out; then
if cmp -s tmp.out $srcdir/test34.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test6 -n mike 2 > tmp.out 2>&1
if cmp -s tmp.out test35.out; then
if cmp -s tmp.out $srcdir/test35.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test6 -n homer 6 > tmp.out 2>&1
if cmp -s tmp.out test36.out; then
if cmp -s tmp.out $srcdir/test36.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test7 -n homer 2 -n marge 1 3 > tmp.out 2>&1
if cmp -s tmp.out test37.out; then
if cmp -s tmp.out $srcdir/test37.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test7 -n mike 2 1 > tmp.out 2>&1
if cmp -s tmp.out test38.out; then
if cmp -s tmp.out $srcdir/test38.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test7 2 -n homer -n bart 6 > tmp.out 2>&1
if cmp -s tmp.out test39.out; then
if cmp -s tmp.out $srcdir/test39.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test1 > tmp.out 2>&1
if cmp -s tmp.out test4.out; then
if cmp -s tmp.out $srcdir/test4.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test1 --help > tmp.out 2>&1
if cmp -s tmp.out test40.out; then
if cmp -s tmp.out $srcdir/test40.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 --help > tmp.out 2>&1
if cmp -s tmp.out test41.out; then
if cmp -s tmp.out $srcdir/test41.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test3 --help > tmp.out 2>&1
if cmp -s tmp.out test42.out; then
if cmp -s tmp.out $srcdir/test42.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test4 --help > tmp.out 2>&1
if cmp -s tmp.out test43.out; then
if cmp -s tmp.out $srcdir/test43.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test5 --help > tmp.out 2>&1
if cmp -s tmp.out test44.out; then
if cmp -s tmp.out $srcdir/test44.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test6 --help > tmp.out 2>&1
if cmp -s tmp.out test45.out; then
if cmp -s tmp.out $srcdir/test45.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test7 --help > tmp.out 2>&1
if cmp -s tmp.out test46.out; then
if cmp -s tmp.out $srcdir/test46.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test8 -s=bill -i=9 -i=8 -B homer marge bart > tmp.out 2>&1
if cmp -s tmp.out test47.out; then
if cmp -s tmp.out $srcdir/test47.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test8 -s=aaa homer marge bart -- one two > tmp.out 2>&1
if cmp -s tmp.out test48.out; then
if cmp -s tmp.out $srcdir/test48.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test8 -s bbb homer marge bart -- -hv two > tmp.out 2>&1
if cmp -s tmp.out test49.out; then
if cmp -s tmp.out $srcdir/test49.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 -i 10 -s homer marge bart lisa > tmp.out 2>&1
if cmp -s tmp.out test5.out; then
if cmp -s tmp.out $srcdir/test5.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test8 -s one homer -B -Bh > tmp.out 2>&1
if cmp -s tmp.out test50.out; then
if cmp -s tmp.out $srcdir/test50.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test8 -s=one homer -B > tmp.out 2>&1
if cmp -s tmp.out test51.out; then
if cmp -s tmp.out $srcdir/test51.out; then
exit 0
else
else
exit 1
fi

View File

@ -1,11 +1,11 @@
#!/bin/sh
# failure
# failure
../examples/test8 -i=9a -i=1 -s=asdf asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test52.out; then
if cmp -s tmp.out $srcdir/test52.out; then
exit 0
else
else
exit 1
fi

View File

@ -1,11 +1,11 @@
#!/bin/sh
# failure
# failure
../examples/test8 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1
if cmp -s tmp.out test53.out; then
if cmp -s tmp.out $srcdir/test53.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test8 --help > tmp.out 2>&1
if cmp -s tmp.out test54.out; then
if cmp -s tmp.out $srcdir/test54.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test3 --stringTest=asdf - asdf zero one > tmp.out 2>&1
if cmp -s tmp.out test55.out; then
if cmp -s tmp.out $srcdir/test55.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 -i 1 - -s fdsa one two > tmp.out 2>&1
if cmp -s tmp.out test56.out; then
if cmp -s tmp.out $srcdir/test56.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two -j huh > tmp.out 2>&1
if cmp -s tmp.out test57.out; then
if cmp -s tmp.out $srcdir/test57.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test9 > tmp.out 2>&1
if cmp -s tmp.out test58.out; then
if cmp -s tmp.out $srcdir/test58.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test9 -VVV -N --noise -r blah > tmp.out 2>&1
if cmp -s tmp.out test59.out; then
if cmp -s tmp.out $srcdir/test59.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 -i 10 -s hello goodbye -ABC > tmp.out 2>&1
if cmp -s tmp.out test6.out; then
if cmp -s tmp.out $srcdir/test6.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# failure
../examples/test9 -VVV -N --noise -rr > tmp.out 2>&1
if cmp -s tmp.out test60.out; then
if cmp -s tmp.out $srcdir/test60.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 -i 10 -s hello goodbye -hABC > tmp.out 2>&1
if cmp -s tmp.out test7.out; then
if cmp -s tmp.out $srcdir/test7.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 --version > tmp.out 2>&1
if cmp -s tmp.out test8.out; then
if cmp -s tmp.out $srcdir/test8.out; then
exit 0
else
else
exit 1
fi

View File

@ -3,9 +3,9 @@
# success
../examples/test2 -i 10 -s hello goodbye -- -hv one two > tmp.out 2>&1
if cmp -s tmp.out test9.out; then
if cmp -s tmp.out $srcdir/test9.out; then
exit 0
else
else
exit 1
fi