mirror_frr/tests
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
..
bgpd bgpd: Treat withdraw variable as a bool 2023-04-06 17:41:32 -04:00
helpers *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
isisd isisd: add option to display isis routes as json 2023-04-18 11:33:15 +02:00
lib tests: Fix out of tree build for lua scripting 2023-05-09 02:05:44 +02:00
ospf6d *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospfd *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
topotests tests: ospf_metric_propagation should not look for a specific vrfId 2023-05-08 08:06:30 -04:00
zebra *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
.gitignore tests: new grpc topotest 2022-03-14 11:14:12 -04:00
Makefile build: non-recursive tests 2018-09-08 21:26:54 +02:00
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py *: reformat python files 2020-10-07 17:22:26 -04:00
subdir.am build: break up tests/subdir.am 2021-11-11 14:40:03 +01:00