capnproto

FORK: Cap'n Proto serialization/RPC system - core tools and C++ library
git clone https://git.neptards.moe/neptards/capnproto.git
Log | Files | Refs | README | LICENSE

capnp-test.ekam-rule (2219B)


      1 #! /bin/sh
      2 
      3 # Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
      4 # Licensed under the MIT License:
      5 #
      6 # Permission is hereby granted, free of charge, to any person obtaining a copy
      7 # of this software and associated documentation files (the "Software"), to deal
      8 # in the Software without restriction, including without limitation the rights
      9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     10 # copies of the Software, and to permit persons to whom the Software is
     11 # furnished to do so, subject to the following conditions:
     12 #
     13 # The above copyright notice and this permission notice shall be included in
     14 # all copies or substantial portions of the Software.
     15 #
     16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     22 # THE SOFTWARE.
     23 
     24 # This is a one-off test rule.
     25 
     26 set -eu
     27 
     28 echo findProvider file:capnp
     29 read CAPNP
     30 export CAPNP
     31 
     32 echo findProvider file:capnp/compiler/capnp-test.sh
     33 read CAPNP_TEST
     34 
     35 # Register our interest in the testdata files.
     36 echo findProvider file:capnp/testdata/binary; read JUNK
     37 echo findProvider file:capnp/testdata/flat; read JUNK
     38 echo findProvider file:capnp/testdata/packed; read JUNK
     39 echo findProvider file:capnp/testdata/segmented; read JUNK
     40 echo findProvider file:capnp/testdata/segmented-packed; read JUNK
     41 echo findProvider file:capnp/testdata/pretty.txt; read JUNK
     42 echo findProvider file:capnp/testdata/short.txt; read JUNK
     43 echo findProvider file:capnp/testdata/errors.capnp.nobuild; read JUNK
     44 echo findProvider file:capnp/testdata/errors.txt; read JUNK
     45 echo findProvider file:capnp/testdata/errors2.capnp.nobuild; read JUNK
     46 echo findProvider file:capnp/testdata/errors2.txt; read JUNK
     47 
     48 # Register our interest in the schema files.
     49 echo findProvider file:capnp/c++.capnp
     50 echo findProvider file:capnp/test.capnp
     51 
     52 $CAPNP_TEST >&2
     53 
     54 echo passed