[LTP] [PATCH 0/3] Move container utils to testcases/lib/

Cyril Hrubis chrubis@suse.cz
Mon Mar 13 16:06:19 CET 2023


Hi!
> Preparation for https://github.com/linux-test-project/ltp/issues/991.
> 
> NOTE: this patch conflicts with my other patch [1]
> (touching testcases/lib/{Makefile,.gitignore}).
> 
> Kind regards,
> Petr
> 
> [1] https://patchwork.ozlabs.org/project/ltp/patch/20230307145517.1359-2-pvorel@suse.cz/
> 
> 
> Petr Vorel (3):
>   ns_exec.c: Rename to testcases/lib/tst_ns_exec.c
>   ns_create.c: Rename to testcases/lib/tst_ns_create.c
>   ns_ifmove.c: Rename to testcases/lib/tst_ns_ifmove.c
> 
>  doc/namespaces-helper-tools.txt               | 14 ++++++------
>  .../ns_common.h => include/tst_ns_common.h    |  6 ++---

I'm not sure about moving this header into top level include, it would
probably make more sense to add it next to the C files that include it.

>  .../kernel/containers/netns/netns_lib.sh      | 22 +++++++++----------
>  .../kernel/containers/netns/netns_sysfs.sh    | 13 ++++++-----
>  testcases/kernel/containers/share/.gitignore  |  3 ---
>  testcases/kernel/containers/share/Makefile    | 22 -------------------
>  testcases/kernel/fs/fs_bind/fs_bind_lib.sh    |  7 +++---
>  testcases/lib/.gitignore                      |  3 +++
>  testcases/lib/Makefile                        |  2 +-
>  testcases/lib/tst_net.sh                      | 16 +++++++-------
>  .../share/ns_create.c => lib/tst_ns_create.c} |  5 +++--
>  .../share/ns_exec.c => lib/tst_ns_exec.c}     |  8 +++----
>  .../share/ns_ifmove.c => lib/tst_ns_ifmove.c} |  2 +-
>  13 files changed, 52 insertions(+), 71 deletions(-)
>  rename testcases/kernel/containers/share/ns_common.h => include/tst_ns_common.h (89%)
>  delete mode 100644 testcases/kernel/containers/share/.gitignore
>  delete mode 100644 testcases/kernel/containers/share/Makefile
>  rename testcases/{kernel/containers/share/ns_create.c => lib/tst_ns_create.c} (92%)
>  rename testcases/{kernel/containers/share/ns_exec.c => lib/tst_ns_exec.c} (91%)
>  rename testcases/{kernel/containers/share/ns_ifmove.c => lib/tst_ns_ifmove.c} (97%)
> 
> -- 
> 2.39.2
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list