# Run this from the "test" directory.
#
# Copyright (c) 2001 Invisible Worlds, Inc.  All rights reserved.
# 
# The contents of this file are subject to the Blocks Public License (the
# "License"); You may not use this file except in compliance with the License.
# 
# You may obtain a copy of the License at http://www.beepcore.org/
# 
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the License
# for the specific language governing rights and limitations under the
# License.
#
#


rm -f a.out

echo TESTING IO
gcc -Wall -pedantic -O2 -I . -I ../generic unit_cbeep_io.c ../generic/CBEEP.c ../generic/channel_0.c ../generic/base64.c ../generic/xml_entities.c -o a.out
a.out 2>&1 >unit_cbeep_io.out
diff unit_cbeep_io.save unit_cbeep_io.out

echo TESTING QUERY
gcc -Wall -pedantic -O2 -I . -I ../generic unit_cbeep_query.c ../generic/CBEEP.c ../generic/channel_0.c ../generic/base64.c  ../generic/xml_entities.c -o a.out
a.out 2>&1 >unit_cbeep_query.out
diff unit_cbeep_query.save unit_cbeep_query.out

echo TESTING SHORTFRAME
gcc -Wall -pedantic -I . -I ../generic unit_cbeep_shortframe.c ../generic/CBEEP.c ../generic/channel_0.c ../generic/base64.c ../generic/xml_entities.c -o a.out
a.out 2>&1 >unit_cbeep_shortframe.out
diff unit_cbeep_shortframe.save unit_cbeep_shortframe.out

echo TESTING NOTIFIES
gcc -Wall -pedantic -I . -I ../generic unit_cbeep_notify.c ../generic/CBEEP.c ../generic/channel_0.c ../generic/base64.c ../generic/xml_entities.c -o a.out
a.out 2>&1 >unit_cbeep_notify.out
diff unit_cbeep_notify.save unit_cbeep_notify.out

rm a.out
