Encapsulate unit test Makefile for CI
This commit is contained in:
@@ -128,3 +128,7 @@ clean:
|
|||||||
$(MAKE) -s -C demo/router clean
|
$(MAKE) -s -C demo/router clean
|
||||||
$(MAKE) -s -C demo/router-ipv6 clean
|
$(MAKE) -s -C demo/router-ipv6 clean
|
||||||
$(MAKE) -s -C demo/gateway clean
|
$(MAKE) -s -C demo/gateway clean
|
||||||
|
|
||||||
|
test:
|
||||||
|
$(MAKE)make -s -C test clean all report
|
||||||
|
$(MAKE)make -s -C demo/objects clean all report
|
||||||
|
|||||||
@@ -0,0 +1,146 @@
|
|||||||
|
# Unit tests for the BACnet Stack project
|
||||||
|
|
||||||
|
LOGFILE = test.log
|
||||||
|
|
||||||
|
all: ai ao av bi bo bv csv lc lo lsp \
|
||||||
|
mso msv ms-input netport osv piv command \
|
||||||
|
access_credential access_door access_point access_rights \
|
||||||
|
access_user access_zone credential_data_input
|
||||||
|
|
||||||
|
clean: logfile
|
||||||
|
rm ${LOGFILE}
|
||||||
|
|
||||||
|
logfile:
|
||||||
|
touch ${LOGFILE}
|
||||||
|
|
||||||
|
report:
|
||||||
|
cat ${LOGFILE}
|
||||||
|
|
||||||
|
access_credential: logfile access_credential.mak
|
||||||
|
$(MAKE) -s -f access_credential.mak clean all
|
||||||
|
( ./access_credential >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f access_credential.mak clean
|
||||||
|
|
||||||
|
access_door: logfile access_door.mak
|
||||||
|
$(MAKE) -s -f access_door.mak clean all
|
||||||
|
( ./access_door >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f access_door.mak clean
|
||||||
|
|
||||||
|
access_point: logfile access_point.mak
|
||||||
|
$(MAKE) -s -f access_point.mak clean all
|
||||||
|
( ./access_point >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f access_point.mak clean
|
||||||
|
|
||||||
|
access_rights: logfile access_rights.mak
|
||||||
|
$(MAKE) -s -f access_rights.mak clean all
|
||||||
|
( ./access_rights >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f access_rights.mak clean
|
||||||
|
|
||||||
|
access_user: logfile access_user.mak
|
||||||
|
$(MAKE) -s -f access_user.mak clean all
|
||||||
|
( ./access_user >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f access_user.mak clean
|
||||||
|
|
||||||
|
access_zone: logfile access_zone.mak
|
||||||
|
$(MAKE) -s -f access_zone.mak clean all
|
||||||
|
( ./access_zone >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f access_zone.mak clean
|
||||||
|
|
||||||
|
credential_data_input: logfile credential_data_input.mak
|
||||||
|
$(MAKE) -s -f credential_data_input.mak clean all
|
||||||
|
( ./credential_data_input >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f credential_data_input.mak clean
|
||||||
|
|
||||||
|
ai: logfile ai.mak
|
||||||
|
$(MAKE) -s -f ai.mak clean all
|
||||||
|
( ./analog_input >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f ai.mak clean
|
||||||
|
|
||||||
|
ao: logfile ao.mak
|
||||||
|
$(MAKE) -s -f ao.mak clean all
|
||||||
|
( ./analog_output >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f ao.mak clean
|
||||||
|
|
||||||
|
av: logfile av.mak
|
||||||
|
$(MAKE) -s -f av.mak clean all
|
||||||
|
( ./analog_value >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f av.mak clean
|
||||||
|
|
||||||
|
bi: logfile bi.mak
|
||||||
|
$(MAKE) -s -f bi.mak clean all
|
||||||
|
$(MAKE) -s -f bi.mak clean
|
||||||
|
|
||||||
|
bo: logfile bo.mak
|
||||||
|
$(MAKE) -s -f bo.mak clean all
|
||||||
|
( ./binary_output >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bo.mak clean
|
||||||
|
|
||||||
|
bv: logfile bv.mak
|
||||||
|
$(MAKE) -s -f bv.mak clean all
|
||||||
|
( ./binary_value >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bv.mak clean
|
||||||
|
|
||||||
|
command: logfile command.mak
|
||||||
|
$(MAKE) -s -f command.mak clean all
|
||||||
|
( ./command >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f command.mak clean
|
||||||
|
|
||||||
|
csv: logfile csv.mak
|
||||||
|
$(MAKE) -s -f csv.mak clean all
|
||||||
|
( ./characterstring_value >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f csv.mak clean
|
||||||
|
|
||||||
|
device: logfile device.mak
|
||||||
|
$(MAKE) -s -f device.mak clean all
|
||||||
|
( ./device >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f device.mak clean
|
||||||
|
|
||||||
|
lc: logfile lc.mak
|
||||||
|
$(MAKE) -s -f lc.mak clean all
|
||||||
|
( ./load_control >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f lc.mak clean
|
||||||
|
|
||||||
|
lo: logfile lo.mak
|
||||||
|
$(MAKE) -s -f lo.mak clean all
|
||||||
|
( ./lighting_output >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f lo.mak clean
|
||||||
|
|
||||||
|
lsp: logfile lsp.mak
|
||||||
|
$(MAKE) -s -f lsp.mak clean all
|
||||||
|
( ./life_safety_point >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f lsp.mak clean
|
||||||
|
|
||||||
|
ms-input: logfile ms-input.mak
|
||||||
|
$(MAKE) -s -f ms-input.mak clean all
|
||||||
|
( ./multistate_input >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f ms-input.mak clean
|
||||||
|
|
||||||
|
mso: logfile mso.mak
|
||||||
|
$(MAKE) -s -f mso.mak clean all
|
||||||
|
( ./multistate_output >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f mso.mak clean
|
||||||
|
|
||||||
|
msv: logfile msv.mak
|
||||||
|
$(MAKE) -s -f msv.mak clean all
|
||||||
|
( ./multistate_value >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f msv.mak clean
|
||||||
|
|
||||||
|
osv: logfile osv.mak
|
||||||
|
$(MAKE) -s -f osv.mak clean all
|
||||||
|
( ./octetstring_value >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f osv.mak clean
|
||||||
|
|
||||||
|
netport: logfile netport.mak
|
||||||
|
$(MAKE) -s -f netport.mak clean all
|
||||||
|
( ./network_port >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f netport.mak clean
|
||||||
|
|
||||||
|
piv: logfile piv.mak
|
||||||
|
$(MAKE) -s -f piv.mak clean all
|
||||||
|
( ./positiveinteger_value >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f piv.mak clean
|
||||||
|
|
||||||
|
schedule: logfile schedule.mak
|
||||||
|
$(MAKE) -s -f schedule.mak clean all
|
||||||
|
( ./schedule >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f schedule.mak clean
|
||||||
@@ -1,356 +0,0 @@
|
|||||||
# tools - only if you need them.
|
|
||||||
# Most platforms have this already defined
|
|
||||||
# CC = gcc
|
|
||||||
# AR = ar
|
|
||||||
# MAKE = $(MAKE)
|
|
||||||
# SIZE = size
|
|
||||||
#
|
|
||||||
# Assumes rm, touch, and cp are available
|
|
||||||
|
|
||||||
LOGFILE = test.log
|
|
||||||
|
|
||||||
all: abort address arf awf bvlc6 bacapp bacdcode bacerror bacint bacstr \
|
|
||||||
cov crc datetime dcc event filename fifo getevent iam ihave \
|
|
||||||
indtext keylist key memcopy npdu proplist ptransfer \
|
|
||||||
rd reject ringbuf rp rpm sbuf timesync vmac \
|
|
||||||
whohas whois wp objects lighting
|
|
||||||
|
|
||||||
clean: logfile
|
|
||||||
rm ${LOGFILE}
|
|
||||||
|
|
||||||
logfile:
|
|
||||||
touch ${LOGFILE}
|
|
||||||
|
|
||||||
abort: logfile test/abort.mak
|
|
||||||
$(MAKE) -s -C test -f abort.mak clean all
|
|
||||||
( ./test/abort >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f abort.mak clean
|
|
||||||
|
|
||||||
address: logfile test/address.mak
|
|
||||||
$(MAKE) -s -C test -f address.mak clean all
|
|
||||||
( ./test/address >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f address.mak clean
|
|
||||||
|
|
||||||
arf: logfile test/arf.mak
|
|
||||||
$(MAKE) -s -C test -f arf.mak clean all
|
|
||||||
( ./test/arf >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f arf.mak clean
|
|
||||||
|
|
||||||
awf: logfile test/awf.mak
|
|
||||||
$(MAKE) -s -C test -f awf.mak clean all
|
|
||||||
( ./test/awf >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f awf.mak clean
|
|
||||||
|
|
||||||
bacapp: logfile test/bacapp.mak
|
|
||||||
$(MAKE) -s -C test -f bacapp.mak clean all
|
|
||||||
( ./test/bacapp >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f bacapp.mak clean
|
|
||||||
|
|
||||||
bacdcode: logfile test/bacdcode.mak
|
|
||||||
$(MAKE) -s -C test -f bacdcode.mak clean all
|
|
||||||
( ./test/bacdcode >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f bacdcode.mak clean
|
|
||||||
|
|
||||||
bacerror: logfile test/bacerror.mak
|
|
||||||
$(MAKE) -s -C test -f bacerror.mak clean all
|
|
||||||
( ./test/bacerror >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f bacerror.mak clean
|
|
||||||
|
|
||||||
bacint: logfile test/bacint.mak
|
|
||||||
$(MAKE) -s -C test -f bacint.mak clean all
|
|
||||||
( ./test/bacint >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f bacint.mak clean
|
|
||||||
|
|
||||||
bacstr: logfile test/bacstr.mak
|
|
||||||
$(MAKE) -s -C test -f bacstr.mak clean all
|
|
||||||
( ./test/bacstr >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f bacstr.mak clean
|
|
||||||
|
|
||||||
bvlc6: logfile test/bvlc6.mak
|
|
||||||
$(MAKE) -s -C test -f bvlc6.mak clean all
|
|
||||||
( ./test/bvlc6 >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f bvlc6.mak clean
|
|
||||||
|
|
||||||
cov: logfile test/cov.mak
|
|
||||||
$(MAKE) -s -C test -f cov.mak clean all
|
|
||||||
( ./test/cov >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f cov.mak clean
|
|
||||||
|
|
||||||
crc: logfile test/crc.mak
|
|
||||||
$(MAKE) -s -C test -f crc.mak clean all
|
|
||||||
( ./test/crc >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f crc.mak clean
|
|
||||||
|
|
||||||
datetime: logfile test/datetime.mak
|
|
||||||
$(MAKE) -s -C test -f datetime.mak clean all
|
|
||||||
( ./test/datetime >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f datetime.mak clean
|
|
||||||
|
|
||||||
dcc: logfile test/dcc.mak
|
|
||||||
$(MAKE) -s -C test -f dcc.mak clean all
|
|
||||||
( ./test/dcc >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f dcc.mak clean
|
|
||||||
|
|
||||||
event: logfile test/event.mak
|
|
||||||
$(MAKE) -s -C test -f event.mak clean all
|
|
||||||
( ./test/event >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f event.mak clean
|
|
||||||
|
|
||||||
filename: logfile test/filename.mak
|
|
||||||
$(MAKE) -s -C test -f filename.mak clean all
|
|
||||||
( ./test/filename >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f filename.mak clean
|
|
||||||
|
|
||||||
fifo: logfile test/fifo.mak
|
|
||||||
$(MAKE) -s -C test -f fifo.mak clean all
|
|
||||||
( ./test/fifo >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f fifo.mak clean
|
|
||||||
|
|
||||||
getevent: logfile test/getevent.mak
|
|
||||||
$(MAKE) -s -C test -f getevent.mak clean all
|
|
||||||
( ./test/getevent >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f getevent.mak clean
|
|
||||||
|
|
||||||
iam: logfile test/iam.mak
|
|
||||||
$(MAKE) -s -C test -f iam.mak clean all
|
|
||||||
( ./test/iam >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f iam.mak clean
|
|
||||||
|
|
||||||
ihave: logfile test/ihave.mak
|
|
||||||
$(MAKE) -s -C test -f ihave.mak clean all
|
|
||||||
( ./test/ihave >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f ihave.mak clean
|
|
||||||
|
|
||||||
indtext: logfile test/indtext.mak
|
|
||||||
$(MAKE) -s -C test -f indtext.mak clean all
|
|
||||||
( ./test/indtext >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f indtext.mak clean
|
|
||||||
|
|
||||||
keylist: logfile test/keylist.mak
|
|
||||||
$(MAKE) -s -C test -f keylist.mak clean all
|
|
||||||
( ./test/keylist >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f keylist.mak clean
|
|
||||||
|
|
||||||
key: logfile test/key.mak
|
|
||||||
$(MAKE) -s -C test -f key.mak clean all
|
|
||||||
( ./test/key >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f key.mak clean
|
|
||||||
|
|
||||||
lighting: logfile test/lighting.mak
|
|
||||||
$(MAKE) -s -C test -f lighting.mak clean all
|
|
||||||
( ./test/lighting >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f lighting.mak clean
|
|
||||||
|
|
||||||
memcopy: logfile test/memcopy.mak
|
|
||||||
$(MAKE) -s -C test -f memcopy.mak clean all
|
|
||||||
( ./test/memcopy >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f memcopy.mak clean
|
|
||||||
|
|
||||||
npdu: logfile test/npdu.mak
|
|
||||||
$(MAKE) -s -C test -f npdu.mak clean all
|
|
||||||
( ./test/npdu >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f npdu.mak clean
|
|
||||||
|
|
||||||
proplist: logfile test/proplist.mak
|
|
||||||
$(MAKE) -s -C test -f proplist.mak clean all
|
|
||||||
( ./test/proplist >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f proplist.mak clean
|
|
||||||
|
|
||||||
ptransfer: logfile test/ptransfer.mak
|
|
||||||
$(MAKE) -s -C test -f ptransfer.mak clean all
|
|
||||||
( ./test/ptransfer >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f ptransfer.mak clean
|
|
||||||
|
|
||||||
rd: logfile test/rd.mak
|
|
||||||
$(MAKE) -s -C test -f rd.mak clean all
|
|
||||||
( ./test/rd >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f rd.mak clean
|
|
||||||
|
|
||||||
reject: logfile test/reject.mak
|
|
||||||
$(MAKE) -s -C test -f reject.mak clean all
|
|
||||||
( ./test/reject >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f reject.mak clean
|
|
||||||
|
|
||||||
ringbuf: logfile test/ringbuf.mak
|
|
||||||
$(MAKE) -s -C test -f ringbuf.mak clean all
|
|
||||||
( ./test/ringbuf >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f ringbuf.mak clean
|
|
||||||
|
|
||||||
rp: logfile test/rp.mak
|
|
||||||
$(MAKE) -s -C test -f rp.mak clean all
|
|
||||||
( ./test/rp >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f rp.mak clean
|
|
||||||
|
|
||||||
rpm: logfile test/rpm.mak
|
|
||||||
$(MAKE) -s -C test -f rpm.mak clean all
|
|
||||||
( ./test/rpm >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f rpm.mak clean
|
|
||||||
|
|
||||||
sbuf: logfile test/sbuf.mak
|
|
||||||
$(MAKE) -s -C test -f sbuf.mak clean all
|
|
||||||
( ./test/sbuf >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f sbuf.mak clean
|
|
||||||
|
|
||||||
timesync: logfile test/timesync.mak
|
|
||||||
$(MAKE) -s -C test -f timesync.mak clean all
|
|
||||||
( ./test/timesync >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f timesync.mak clean
|
|
||||||
|
|
||||||
vmac: logfile test/vmac.mak
|
|
||||||
$(MAKE) -s -C test -f vmac.mak clean all
|
|
||||||
( ./test/vmac >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f vmac.mak clean
|
|
||||||
|
|
||||||
whohas: logfile test/whohas.mak
|
|
||||||
$(MAKE) -s -C test -f whohas.mak clean all
|
|
||||||
( ./test/whohas >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f whohas.mak clean
|
|
||||||
|
|
||||||
whois: logfile test/whois.mak
|
|
||||||
$(MAKE) -s -C test -f whois.mak clean all
|
|
||||||
( ./test/whois >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f whois.mak clean
|
|
||||||
|
|
||||||
wp: logfile test/wp.mak
|
|
||||||
$(MAKE) -s -C test -f wp.mak clean all
|
|
||||||
( ./test/wp >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f wp.mak clean
|
|
||||||
|
|
||||||
objects: ai ao av bi bo bv csv lc lo lso lsp \
|
|
||||||
mso msv ms-input netport osv piv command \
|
|
||||||
access_credential access_door access_point access_rights \
|
|
||||||
access_user access_zone credential_data_input
|
|
||||||
|
|
||||||
access_credential: logfile demo/object/access_credential.mak
|
|
||||||
$(MAKE) -s -C demo/object -f access_credential.mak clean all
|
|
||||||
( ./demo/object/access_credential >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f access_credential.mak clean
|
|
||||||
|
|
||||||
access_door: logfile demo/object/access_door.mak
|
|
||||||
$(MAKE) -s -C demo/object -f access_door.mak clean all
|
|
||||||
( ./demo/object/access_door >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f access_door.mak clean
|
|
||||||
|
|
||||||
access_point: logfile demo/object/access_point.mak
|
|
||||||
$(MAKE) -s -C demo/object -f access_point.mak clean all
|
|
||||||
( ./demo/object/access_point >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f access_point.mak clean
|
|
||||||
|
|
||||||
access_rights: logfile demo/object/access_rights.mak
|
|
||||||
$(MAKE) -s -C demo/object -f access_rights.mak clean all
|
|
||||||
( ./demo/object/access_rights >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f access_rights.mak clean
|
|
||||||
|
|
||||||
access_user: logfile demo/object/access_user.mak
|
|
||||||
$(MAKE) -s -C demo/object -f access_user.mak clean all
|
|
||||||
( ./demo/object/access_user >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f access_user.mak clean
|
|
||||||
|
|
||||||
access_zone: logfile demo/object/access_zone.mak
|
|
||||||
$(MAKE) -s -C demo/object -f access_zone.mak clean all
|
|
||||||
( ./demo/object/access_zone >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f access_zone.mak clean
|
|
||||||
|
|
||||||
credential_data_input: logfile demo/object/credential_data_input.mak
|
|
||||||
$(MAKE) -s -C demo/object -f credential_data_input.mak clean all
|
|
||||||
( ./demo/object/credential_data_input >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f credential_data_input.mak clean
|
|
||||||
|
|
||||||
ai: logfile demo/object/ai.mak
|
|
||||||
$(MAKE) -s -C demo/object -f ai.mak clean all
|
|
||||||
( ./demo/object/analog_input >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f ai.mak clean
|
|
||||||
|
|
||||||
ao: logfile demo/object/ao.mak
|
|
||||||
$(MAKE) -s -C demo/object -f ao.mak clean all
|
|
||||||
( ./demo/object/analog_output >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f ao.mak clean
|
|
||||||
|
|
||||||
av: logfile demo/object/av.mak
|
|
||||||
$(MAKE) -s -C demo/object -f av.mak clean all
|
|
||||||
( ./demo/object/analog_value >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f av.mak clean
|
|
||||||
|
|
||||||
bi: logfile demo/object/bi.mak
|
|
||||||
$(MAKE) -s -C demo/object -f bi.mak clean all
|
|
||||||
$(MAKE) -s -C demo/object -f bi.mak clean
|
|
||||||
|
|
||||||
bo: logfile demo/object/bo.mak
|
|
||||||
$(MAKE) -s -C demo/object -f bo.mak clean all
|
|
||||||
( ./demo/object/binary_output >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f bo.mak clean
|
|
||||||
|
|
||||||
bv: logfile demo/object/bv.mak
|
|
||||||
$(MAKE) -s -C demo/object -f bv.mak clean all
|
|
||||||
( ./demo/object/binary_value >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f bv.mak clean
|
|
||||||
|
|
||||||
command: logfile demo/object/command.mak
|
|
||||||
$(MAKE) -s -C demo/object -f command.mak clean all
|
|
||||||
( ./demo/object/command >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f command.mak clean
|
|
||||||
|
|
||||||
csv: logfile demo/object/csv.mak
|
|
||||||
$(MAKE) -s -C demo/object -f csv.mak clean all
|
|
||||||
( ./demo/object/characterstring_value >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f csv.mak clean
|
|
||||||
|
|
||||||
device: logfile demo/object/device.mak
|
|
||||||
$(MAKE) -s -C demo/object -f device.mak clean all
|
|
||||||
( ./demo/object/device >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f device.mak clean
|
|
||||||
|
|
||||||
lc: logfile demo/object/lc.mak
|
|
||||||
$(MAKE) -s -C demo/object -f lc.mak clean all
|
|
||||||
( ./demo/object/load_control >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f lc.mak clean
|
|
||||||
|
|
||||||
lo: logfile demo/object/lo.mak
|
|
||||||
$(MAKE) -s -C demo/object -f lo.mak clean all
|
|
||||||
( ./demo/object/lighting_output >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f lo.mak clean
|
|
||||||
|
|
||||||
lso: logfile test/lso.mak
|
|
||||||
$(MAKE) -s -C test -f lso.mak clean all
|
|
||||||
( ./test/lso >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C test -f lso.mak clean
|
|
||||||
|
|
||||||
lsp: logfile demo/object/lsp.mak
|
|
||||||
$(MAKE) -s -C demo/object -f lsp.mak clean all
|
|
||||||
( ./demo/object/life_safety_point >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f lsp.mak clean
|
|
||||||
|
|
||||||
ms-input: logfile demo/object/ms-input.mak
|
|
||||||
$(MAKE) -s -C demo/object -f ms-input.mak clean all
|
|
||||||
( ./demo/object/multistate_input >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f ms-input.mak clean
|
|
||||||
|
|
||||||
mso: logfile demo/object/mso.mak
|
|
||||||
$(MAKE) -s -C demo/object -f mso.mak clean all
|
|
||||||
( ./demo/object/multistate_output >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f mso.mak clean
|
|
||||||
|
|
||||||
msv: logfile demo/object/msv.mak
|
|
||||||
$(MAKE) -s -C demo/object -f msv.mak clean all
|
|
||||||
( ./demo/object/multistate_value >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f msv.mak clean
|
|
||||||
|
|
||||||
osv: logfile demo/object/osv.mak
|
|
||||||
$(MAKE) -s -C demo/object -f osv.mak clean all
|
|
||||||
( ./demo/object/octetstring_value >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f osv.mak clean
|
|
||||||
|
|
||||||
netport: logfile demo/object/netport.mak
|
|
||||||
$(MAKE) -s -C demo/object -f netport.mak clean all
|
|
||||||
( ./demo/object/network_port >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f netport.mak clean
|
|
||||||
|
|
||||||
piv: logfile demo/object/piv.mak
|
|
||||||
$(MAKE) -s -C demo/object -f piv.mak clean all
|
|
||||||
( ./demo/object/positiveinteger_value >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f piv.mak clean
|
|
||||||
|
|
||||||
schedule: logfile demo/object/schedule.mak
|
|
||||||
$(MAKE) -s -C demo/object -f schedule.mak clean all
|
|
||||||
( ./demo/object/schedule >> ${LOGFILE} )
|
|
||||||
$(MAKE) -s -C demo/object -f schedule.mak clean
|
|
||||||
+218
@@ -0,0 +1,218 @@
|
|||||||
|
# Unit tests for the BACnet Stack project
|
||||||
|
|
||||||
|
LOGFILE = test.log
|
||||||
|
|
||||||
|
all: abort address arf awf bvlc6 bacapp bacdcode bacerror bacint bacstr \
|
||||||
|
cov crc datetime dcc event filename fifo getevent iam ihave \
|
||||||
|
indtext keylist key lighting lso memcopy npdu proplist ptransfer \
|
||||||
|
rd reject ringbuf rp rpm sbuf timesync vmac \
|
||||||
|
whohas whois wp
|
||||||
|
|
||||||
|
clean: logfile
|
||||||
|
rm ${LOGFILE}
|
||||||
|
|
||||||
|
logfile:
|
||||||
|
touch ${LOGFILE}
|
||||||
|
|
||||||
|
report:
|
||||||
|
cat ${LOGFILE}
|
||||||
|
|
||||||
|
abort: logfile abort.mak
|
||||||
|
$(MAKE) -s -f abort.mak clean all
|
||||||
|
( ./abort >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f abort.mak clean
|
||||||
|
|
||||||
|
address: logfile address.mak
|
||||||
|
$(MAKE) -s -f address.mak clean all
|
||||||
|
( ./address >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f address.mak clean
|
||||||
|
|
||||||
|
arf: logfile arf.mak
|
||||||
|
$(MAKE) -s -f arf.mak clean all
|
||||||
|
( ./arf >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f arf.mak clean
|
||||||
|
|
||||||
|
awf: logfile awf.mak
|
||||||
|
$(MAKE) -s -f awf.mak clean all
|
||||||
|
( ./awf >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f awf.mak clean
|
||||||
|
|
||||||
|
bacapp: logfile bacapp.mak
|
||||||
|
$(MAKE) -s -f bacapp.mak clean all
|
||||||
|
( ./bacapp >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bacapp.mak clean
|
||||||
|
|
||||||
|
bacdcode: logfile bacdcode.mak
|
||||||
|
$(MAKE) -s -f bacdcode.mak clean all
|
||||||
|
( ./bacdcode >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bacdcode.mak clean
|
||||||
|
|
||||||
|
bacerror: logfile bacerror.mak
|
||||||
|
$(MAKE) -s -f bacerror.mak clean all
|
||||||
|
( ./bacerror >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bacerror.mak clean
|
||||||
|
|
||||||
|
bacint: logfile bacint.mak
|
||||||
|
$(MAKE) -s -f bacint.mak clean all
|
||||||
|
( ./bacint >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bacint.mak clean
|
||||||
|
|
||||||
|
bacstr: logfile bacstr.mak
|
||||||
|
$(MAKE) -s -f bacstr.mak clean all
|
||||||
|
( ./bacstr >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bacstr.mak clean
|
||||||
|
|
||||||
|
bvlc6: logfile bvlc6.mak
|
||||||
|
$(MAKE) -s -f bvlc6.mak clean all
|
||||||
|
( ./bvlc6 >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f bvlc6.mak clean
|
||||||
|
|
||||||
|
cov: logfile cov.mak
|
||||||
|
$(MAKE) -s -f cov.mak clean all
|
||||||
|
( ./cov >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f cov.mak clean
|
||||||
|
|
||||||
|
crc: logfile crc.mak
|
||||||
|
$(MAKE) -s -f crc.mak clean all
|
||||||
|
( ./crc >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f crc.mak clean
|
||||||
|
|
||||||
|
datetime: logfile datetime.mak
|
||||||
|
$(MAKE) -s -f datetime.mak clean all
|
||||||
|
( ./datetime >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f datetime.mak clean
|
||||||
|
|
||||||
|
dcc: logfile dcc.mak
|
||||||
|
$(MAKE) -s -f dcc.mak clean all
|
||||||
|
( ./dcc >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f dcc.mak clean
|
||||||
|
|
||||||
|
event: logfile event.mak
|
||||||
|
$(MAKE) -s -f event.mak clean all
|
||||||
|
( ./event >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f event.mak clean
|
||||||
|
|
||||||
|
filename: logfile filename.mak
|
||||||
|
$(MAKE) -s -f filename.mak clean all
|
||||||
|
( ./filename >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f filename.mak clean
|
||||||
|
|
||||||
|
fifo: logfile fifo.mak
|
||||||
|
$(MAKE) -s -f fifo.mak clean all
|
||||||
|
( ./fifo >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f fifo.mak clean
|
||||||
|
|
||||||
|
getevent: logfile getevent.mak
|
||||||
|
$(MAKE) -s -f getevent.mak clean all
|
||||||
|
( ./getevent >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f getevent.mak clean
|
||||||
|
|
||||||
|
iam: logfile iam.mak
|
||||||
|
$(MAKE) -s -f iam.mak clean all
|
||||||
|
( ./iam >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f iam.mak clean
|
||||||
|
|
||||||
|
ihave: logfile ihave.mak
|
||||||
|
$(MAKE) -s -f ihave.mak clean all
|
||||||
|
( ./ihave >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f ihave.mak clean
|
||||||
|
|
||||||
|
indtext: logfile indtext.mak
|
||||||
|
$(MAKE) -s -f indtext.mak clean all
|
||||||
|
( ./indtext >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f indtext.mak clean
|
||||||
|
|
||||||
|
keylist: logfile keylist.mak
|
||||||
|
$(MAKE) -s -f keylist.mak clean all
|
||||||
|
( ./keylist >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f keylist.mak clean
|
||||||
|
|
||||||
|
key: logfile key.mak
|
||||||
|
$(MAKE) -s -f key.mak clean all
|
||||||
|
( ./key >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f key.mak clean
|
||||||
|
|
||||||
|
lighting: logfile lighting.mak
|
||||||
|
$(MAKE) -s -f lighting.mak clean all
|
||||||
|
( ./lighting >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f lighting.mak clean
|
||||||
|
|
||||||
|
lso: logfile lso.mak
|
||||||
|
$(MAKE) -s -f lso.mak clean all
|
||||||
|
( ./lso >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f lso.mak clean
|
||||||
|
|
||||||
|
memcopy: logfile memcopy.mak
|
||||||
|
$(MAKE) -s -f memcopy.mak clean all
|
||||||
|
( ./memcopy >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f memcopy.mak clean
|
||||||
|
|
||||||
|
npdu: logfile npdu.mak
|
||||||
|
$(MAKE) -s -f npdu.mak clean all
|
||||||
|
( ./npdu >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f npdu.mak clean
|
||||||
|
|
||||||
|
proplist: logfile proplist.mak
|
||||||
|
$(MAKE) -s -f proplist.mak clean all
|
||||||
|
( ./proplist >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f proplist.mak clean
|
||||||
|
|
||||||
|
ptransfer: logfile ptransfer.mak
|
||||||
|
$(MAKE) -s -f ptransfer.mak clean all
|
||||||
|
( ./ptransfer >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f ptransfer.mak clean
|
||||||
|
|
||||||
|
rd: logfile rd.mak
|
||||||
|
$(MAKE) -s -f rd.mak clean all
|
||||||
|
( ./rd >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f rd.mak clean
|
||||||
|
|
||||||
|
reject: logfile reject.mak
|
||||||
|
$(MAKE) -s -f reject.mak clean all
|
||||||
|
( ./reject >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f reject.mak clean
|
||||||
|
|
||||||
|
ringbuf: logfile ringbuf.mak
|
||||||
|
$(MAKE) -s -f ringbuf.mak clean all
|
||||||
|
( ./ringbuf >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f ringbuf.mak clean
|
||||||
|
|
||||||
|
rp: logfile rp.mak
|
||||||
|
$(MAKE) -s -f rp.mak clean all
|
||||||
|
( ./rp >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f rp.mak clean
|
||||||
|
|
||||||
|
rpm: logfile rpm.mak
|
||||||
|
$(MAKE) -s -f rpm.mak clean all
|
||||||
|
( ./rpm >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f rpm.mak clean
|
||||||
|
|
||||||
|
sbuf: logfile sbuf.mak
|
||||||
|
$(MAKE) -s -f sbuf.mak clean all
|
||||||
|
( ./sbuf >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f sbuf.mak clean
|
||||||
|
|
||||||
|
timesync: logfile timesync.mak
|
||||||
|
$(MAKE) -s -f timesync.mak clean all
|
||||||
|
( ./timesync >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f timesync.mak clean
|
||||||
|
|
||||||
|
vmac: logfile vmac.mak
|
||||||
|
$(MAKE) -s -f vmac.mak clean all
|
||||||
|
( ./vmac >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f vmac.mak clean
|
||||||
|
|
||||||
|
whohas: logfile whohas.mak
|
||||||
|
$(MAKE) -s -f whohas.mak clean all
|
||||||
|
( ./whohas >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f whohas.mak clean
|
||||||
|
|
||||||
|
whois: logfile whois.mak
|
||||||
|
$(MAKE) -s -f whois.mak clean all
|
||||||
|
( ./whois >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f whois.mak clean
|
||||||
|
|
||||||
|
wp: logfile wp.mak
|
||||||
|
$(MAKE) -s -f wp.mak clean all
|
||||||
|
( ./wp >> ${LOGFILE} )
|
||||||
|
$(MAKE) -s -f wp.mak clean
|
||||||
+2
-2
@@ -6,5 +6,5 @@ set CC=gcc
|
|||||||
set AR=ar
|
set AR=ar
|
||||||
set MAKE=make
|
set MAKE=make
|
||||||
rem make BACNET_PORT=win32 BUILD=release -f test.mak clean all
|
rem make BACNET_PORT=win32 BUILD=release -f test.mak clean all
|
||||||
make -s -f test.mak clean all
|
make -s -C test clean all report
|
||||||
|
make -s -C demo/object clean all report
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Unit tests builder / runner for this project
|
|
||||||
|
|
||||||
make -s -f test.mak clean
|
|
||||||
make -f test.mak
|
|
||||||
cat test.log | grep Failed
|
|
||||||
Reference in New Issue
Block a user