Add 'CAN-binder/libs/nanopb/' from commit '278ffb890e3d8722e4c7d824baaf221a1e375fc4'
[apps/agl-service-can-low-level.git] / CAN-binder / libs / nanopb / tests / io_errors / SConscript
1 # Simulate io errors when encoding and decoding
2
3 Import("env")
4
5 c = Copy("$TARGET", "$SOURCE")
6 env.Command("alltypes.proto", "#alltypes/alltypes.proto", c)
7
8 env.NanopbProto(["alltypes", "alltypes.options"])
9
10 ioerr = env.Program(["io_errors.c", "alltypes.pb.c",
11                      "$COMMON/pb_encode.o", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
12
13 env.RunTest("io_errors.output", [ioerr, "$BUILD/alltypes/encode_alltypes.output"])
14
15