mirror_frr/tests/lib
Eugene Crosser 5b2ee104c2 tests: Fix out of tree build for lua scripting
test_frrscript is run from the `tests` directory and expects the sample
lua script `script1.lua` to be present in the `lib` directory. When the
package is built out of tree (which always happens when a debian
package is built), and scripting is enabled, test fails because the lua
file is not present in the `tests/lib/` subdir of the _build_ directory.

Fix this by adding `script1.lua` as an extra dependency for
`test_frrscript`, and a recipe that copies the file from the source tree
to the build tree (note: it needs to be marked ".PHONY" because
otherwise `make` thinks that it already exists, in the source tree).

After this commit, the following command starts to work:

    dpkg-buildpackage --build-profiles=pkg.frr.lua -b -uc

Signed-off-by: Eugene Crosser <crosser@average.org>
2023-05-09 02:05:44 +02:00
..
cli *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
northbound *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
cxxcompat.c lib: Remove getopt.c and getopt1.c 2023-03-28 10:07:38 -04:00
fuzz_zlog_inputs.py *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
fuzz_zlog.c *: Convert thread_master_XXX functions to event_master_XXX 2023-03-24 08:32:17 -04:00
script1.lua tests: Add more examples to get_result 2021-07-18 06:32:03 +08:00
subdir.am tests: Fix out of tree build for lua scripting 2023-05-09 02:05:44 +02:00
test_assert.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_assert.py lib: rework how we "override" assert() 2021-05-02 16:27:17 +02:00
test_atomlist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_atomlist.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_buffer.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_checksum.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_frrlua.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_frrlua.py tests: put lua scripting unit tests behind flag 2021-06-25 17:29:15 +08:00
test_frrscript.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_frrscript.py tests: put lua scripting unit tests behind flag 2021-06-25 17:29:15 +08:00
test_graph.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_graph.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_graph.refout lib: add DFS + DOT dumping to graph datastructure 2018-04-19 13:04:58 -04:00
test_grpc.cpp *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_grpc.py tests: skip grpc test if frr not installed 2022-03-29 16:16:35 -04:00
test_heavy_thread.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_heavy_wq.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_heavy.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_idalloc.c *: config.h or zebra.h is the first #include 2019-06-13 13:35:33 +02:00
test_idalloc.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_memory.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_nexthop_iter.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_nexthop_iter.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_nexthop.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_nexthop.py tests: add unit test for nexthop comparisons 2021-05-04 15:51:01 -04:00
test_ntop.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_ntop.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_plist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_prefix2str.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_prefix2str.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_printfrr.c Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
test_printfrr.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_privs.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_resolver.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_ringbuf.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_ringbuf.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_segv.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_seqlock.c *: remove some leftover license blurbs 2023-02-09 14:09:11 +01:00
test_sig.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_skiplist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_srcdest_table.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_srcdest_table.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_stream.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_stream.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_stream.refout tests: reorganize tests hierarchically 2017-02-13 16:54:48 +01:00
test_table.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_table.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_timer_correctness.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_timer_correctness.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_timer_performance.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
test_ttable.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_ttable.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_ttable.refout lib: add table generator 2017-06-16 02:02:42 +00:00
test_typelist.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_typelist.h lib: fix _hash_member() crash w/ empty hash 2023-04-21 16:30:32 +02:00
test_typelist.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_versioncmp.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_versioncmp.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_xref.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_xref.py tests: add unit test for xrefs 2021-02-01 17:28:11 +01:00
test_zlog.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_zlog.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_zmq.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_zmq.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_zmq.refout lib: Address ZMQ lib TODOs 2017-11-23 12:50:27 +01:00