Debian Codegraph @

src/test/Makefile.am

raw
1 # DNS Reply Tool (drool)
2 #
3 # Copyright (c) 2017-2021, OARC, Inc.
4 # Copyright (c) 2017, Comcast Corporation
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 #
14 # 2. Redistributions in binary form must reproduce the above copyright
15 # notice, this list of conditions and the following disclaimer in
16 # the documentation and/or other materials provided with the
17 # distribution.
18 #
19 # 3. Neither the name of the copyright holder nor the names of its
20 # contributors may be used to endorse or promote products derived
21 # from this software without specific prior written permission.
22 #
23 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 # POSSIBILITY OF SUCH DAMAGE.
35
36 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in env.sh
37
38 CLEANFILES = test*.log test*.trs \
39 *.pcap-dist \
40 test2.out test2.out2 \
41 test2-threads.out test2-threads.out2
42
43 TESTS = test1.sh test2.sh
44
45 BUILT_SOURCES = env.sh
46
47 env.sh:
48 echo "export PATH=\"\$$PATH:@DNSJIT_ROOT@/bin\"" >"$@"
49 echo "export LUA_CPATH=\"@DNSJIT_ROOT@/lib/lua/5.1/?.so;;\"" >>"$@"
50 echo "export LUA_PATH=\"@DNSJIT_ROOT@/share/lua/5.1/?.lua;;\"" >>"$@"
51
52 test1.sh: env.sh
53
54 test2.sh: env.sh dns.pcap-dist 1qtcp.pcap-dist
55
56 .pcap.pcap-dist:
57 cp "$<" "$@"
58
59 EXTRA_DIST = $(TESTS) \
60 dns.pcap 1qtcp.pcap \
61 test2.gold