Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
5e4d9cea
Commit
5e4d9cea
authored
Feb 11, 2018
by
Harris
Committed by
Harris Hancock
Feb 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
super-test.sh: Factor out test running commands
parent
a8c462ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
super-test.sh
super-test.sh
+18
-20
No files found.
super-test.sh
View file @
5e4d9cea
...
...
@@ -7,6 +7,19 @@ doit() {
"
$@
"
}
function
test_samples
()
{
echo
"@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
./calculator-client unix:/tmp/capnp-calculator-example-
$$
kill
%+
wait
%+
||
true
rm
-f
/tmp/capnp-calculator-example-
$$
}
QUICK
=
PARALLEL
=
$(
nproc
2>/dev/null
||
echo
1
)
...
...
@@ -228,15 +241,7 @@ while [ $# -gt 0 ]; do
-DCAPNPC_FLAGS
=
--no-standard-import
-DCAPNPC_IMPORT_DIRS
=
"
$WORKSPACE
/inst/include"
doit make
-j
$PARALLEL
echo
"@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
./calculator-client unix:/tmp/capnp-calculator-example-
$$
kill
%+
wait
%+
||
true
test_samples
echo
"========================================================================="
echo
"Cap'n Proto (
$CONFIGURATION
) installs a working CMake config package."
...
...
@@ -375,23 +380,16 @@ cd samples
doit capnp compile
-oc
++ addressbook.capnp
-I
"
$STAGING
"
/include
--no-standard-import
doit
${
CXX
:-
g
++
}
-std
=
c++11 addressbook.c++ addressbook.capnp.c++
-o
addressbook
\
$CXXFLAGS
$(
pkg-config
--cflags
--libs
capnp
)
echo
"@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
addressbook addressbook.capnp.c++ addressbook.capnp.h
doit capnp compile
-oc
++ calculator.capnp
-I
"
$STAGING
"
/include
--no-standard-import
doit
${
CXX
:-
g
++
}
-std
=
c++11 calculator-client.c++ calculator.capnp.c++
-o
calculator-client
\
$CXXFLAGS
$(
pkg-config
--cflags
--libs
capnp-rpc
)
doit
${
CXX
:-
g
++
}
-std
=
c++11 calculator-server.c++ calculator.capnp.c++
-o
calculator-server
\
$CXXFLAGS
$(
pkg-config
--cflags
--libs
capnp-rpc
)
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
./calculator-client unix:/tmp/capnp-calculator-example-
$$
kill
%+
wait
%+
||
true
rm
calculator-client calculator-server calculator.capnp.c++ calculator.capnp.h /tmp/capnp-calculator-example-
$$
test_samples
rm
addressbook addressbook.capnp.c++ addressbook.capnp.h
rm
calculator-client calculator-server calculator.capnp.c++ calculator.capnp.h
cd
..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment