SConscript 438 B

123456789101112131415
  1. # Simulate io errors when encoding and decoding
  2. Import("env")
  3. c = Copy("$TARGET", "$SOURCE")
  4. env.Command("alltypes.proto", "#alltypes/alltypes.proto", c)
  5. env.NanopbProto(["alltypes", "alltypes.options"])
  6. ioerr = env.Program(["io_errors.c", "alltypes.pb.c",
  7. "$COMMON/pb_encode.o", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
  8. env.RunTest("io_errors.output", [ioerr, "$BUILD/alltypes/encode_alltypes.output"])