diff --git a/generator/C/test/posix/Makefile b/generator/C/test/posix/Makefile index 8e51c8074952e1837314ca5692d81c5162b7a188..2ff2081ecffdc272a426c1b660e2fad94c79ee29 100644 --- a/generator/C/test/posix/Makefile +++ b/generator/C/test/posix/Makefile @@ -2,7 +2,7 @@ # errors in the generator, but without it, we can't run the tests to completion. # particular issues are with pointers to arrays right now. TODO - fix the generator and remove this. CFLAGS = -g -Wall -Werror -O0 -Wno-address-of-packed-member -TESTPROTOCOL = common +TESTPROTOCOL = ardupilotmega ALLPROTOCOLS = minimal test common pixhawk ardupilotmega slugs ualberta all: diff --git a/test_generator.sh b/test_generator.sh index 7a9472cab159b41e718a96d0a76c689c00f463c9..68565bc4ebd5c6297ddd0e80d252f4f1c8cdd1f9 100755 --- a/test_generator.sh +++ b/test_generator.sh @@ -13,16 +13,14 @@ test -z "$MDEF" && MDEF="../message_definitions" # MAVLINK_DIALECT=ardupilotmega python setup.py clean build install --user -mavgen.py --lang C $MDEF/v1.0/ardupilotmega.xml -o generator/C/include_v1.0 --wire-protocol=1.0 -mavgen.py --lang C $MDEF/v1.0/ardupilotmega.xml -o generator/C/include_v2.0 --wire-protocol=2.0 - -mavgen.py --lang C++11 $MDEF/v1.0/ardupilotmega.xml -o generator/CPP11/include_v2.0 --wire-protocol=2.0 +tools/mavgen.py --lang C $MDEF/v1.0/all.xml -o generator/C/include_v1.0 --wire-protocol=1.0 +tools/mavgen.py --lang C $MDEF/v1.0/all.xml -o generator/C/include_v2.0 --wire-protocol=2.0 +tools/mavgen.py --lang C++11 $MDEF/v1.0/all.xml -o generator/CPP11/include_v2.0 --wire-protocol=2.0 pushd generator/C/test/posix -make clean testmav1.0_common testmav2.0_common testmav1.0_ardupilotmega testmav2.0_ardupilotmega testmav2.0_minimal +make clean testmav1.0_ardupilotmega testmav2.0_ardupilotmega + # these test tools emit the test packet as hexadecimal and human-readable, other tools consume it as a cross-reference, we ignore the hex here. -./testmav1.0_common | egrep -v '(^fe|^fd)' -./testmav2.0_common | egrep -v '(^fe|^fd)' ./testmav1.0_ardupilotmega | egrep -v '(^fe|^fd)' ./testmav2.0_ardupilotmega | egrep -v '(^fe|^fd)' popd