5 mpers_sh="${srcdir}/mpers.sh"
7 mpers_dir="mpers-$mpers_name"
10 sample="$mpers_dir/sample.c"
12 #include "mpers_type.h"
13 #include DEF_MPERS_TYPE(int)
17 expected="$mpers_dir/sample.expected"
18 cat > "$expected" <<EOF
21 int32_t ${mpers_name}_int;
22 #define MPERS_${mpers_name}_int ${mpers_name}_int
25 CFLAGS="$CPPFLAGS -I${srcdir}" \
26 CPPFLAGS="$CPPFLAGS -I${srcdir} -DIN_MPERS -DMPERS_IS_${mpers_name}" \
27 "$mpers_sh" "-$mpers_name" "$sample"
28 cmp "$expected" "$mpers_dir"/int.h > /dev/null