forked from calio/lua-capnproto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·33 lines (27 loc) · 703 Bytes
/
test.sh
File metadata and controls
executable file
·33 lines (27 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
export PATH=$(pwd)/bin:$PATH
export LUA_PATH="?.lua;lua/?.lua;proto/?.lua;tests/?.lua;$LUA_PATH;;"
echo "[Compile example.capnp]"
capnp --verbose compile -olua proto/example.capnp proto/enums.capnp proto/lua.capnp proto/struct.capnp || exit
echo "[Unit test...]"
make test || exit
#Disabled for now
#echo "[capnp_test...]"
#make test1 || exit
#echo
#echo "[Serialization test...]"
#if [ $(uname) != "Linux" ]; then
# make all || exit
#else
# CXX=g++-4.7 make all || exit
#
#fi
#cpp/main > a.data || exit
#luajit test.lua c.data || exit
#echo
#echo "capnp c++ result:"
#xxd -g 1 a.data || exit
#echo "capnp lua result:"
#xxd -g 1 c.data || exit
#diff a.data c.data
echo "[Done]"