blob: 1b2dbb918f2c6b68b8e39dc9e200771ea7b165ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env bash
set -e
cd `dirname $0`/../..
ROOT=`pwd`
TMP=build/tmp/test
${ROOT}/scripts/build.sh
mkdir -p ${TMP}/flatc_compat
rm -rf ${TMP}/flatc_compat/*
bin/flatcc -a -o ${TMP}/flatc_compat test/monster_test/monster_test.fbs
cp test/flatc_compat/*.{json,mon,c} ${TMP}/flatc_compat/
cd ${TMP}/flatc_compat
cc -g -I ${ROOT}/include flatc_compat.c \
${ROOT}/lib/libflatccrt.a -o flatc_compat_d
echo "Google FPL flatc compatibility test - reading flatc generated binary"
./flatc_compat_d
|