[CRIU] [RFC 0/4] Add tests to compel tool

Dmitry Safonov dsafonov at virtuozzo.com
Fri May 6 09:14:55 PDT 2016


I think it's handy while porting compel on other targets,
also add build-test for the tool to know that it
does relocs properly.
Those are only initial patches, so mostly they test only
just ELF header yet.

Dmitry Safonov (4):
  compel: separate get_strings_section from __handle_elf
  compel: make output streams options
  compel: add error constants
  compel: add tests for compel

 Makefile                                           |  4 ++
 compel/Makefile                                    | 16 ++++-
 compel/arch/aarch64/handle-elf.c                   |  3 +-
 compel/arch/arm/handle-elf.c                       |  3 +-
 compel/arch/ppc64/handle-elf.c                     |  3 +-
 compel/arch/x86/handle-elf.c                       |  3 +-
 compel/handle-elf.c                                | 81 +++++++++++++++++++---
 compel/include/piegen.h                            | 32 +++++++--
 compel/include/uapi/piegen-err.h                   | 10 +++
 compel/main.c                                      | 14 ++--
 test/compel/Makefile                               | 18 +++++
 .../arch/aarch64/include/arch_test_handle_binary.h | 21 ++++++
 .../arch/arm/include/arch_test_handle_binary.h     | 18 +++++
 .../arch/ppc64/include/arch_test_handle_binary.h   | 21 ++++++
 .../arch/x86/include/arch_test_handle_binary.h     | 45 ++++++++++++
 test/compel/handle_binary.c                        | 39 +++++++++++
 test/compel/handle_binary_32.c                     |  1 +
 test/compel/main.c                                 | 54 +++++++++++++++
 18 files changed, 358 insertions(+), 28 deletions(-)
 create mode 100644 compel/include/uapi/piegen-err.h
 create mode 100644 test/compel/Makefile
 create mode 100644 test/compel/arch/aarch64/include/arch_test_handle_binary.h
 create mode 100644 test/compel/arch/arm/include/arch_test_handle_binary.h
 create mode 100644 test/compel/arch/ppc64/include/arch_test_handle_binary.h
 create mode 100644 test/compel/arch/x86/include/arch_test_handle_binary.h
 create mode 100644 test/compel/handle_binary.c
 create mode 120000 test/compel/handle_binary_32.c
 create mode 100644 test/compel/main.c

-- 
2.8.0



More information about the CRIU mailing list