This patch set introduces test for the quotactl syscall along with various changed deemed suitable during the course of implementation of this test. It worth noting that unfortunately it is not possible to test all the decoder code since some decoding of some structures is performed only on exiting and it isn't possible to reliably enforce syscall to return success (file system with quota enabled and CAP_SYS_ADMIN are among requirements for this to work).
Eugene Syromyatnikov (12): quota: Display quota command as a macro quota: Use printuid for id parameter printing quota: Avoid printing id for the commands which are known to ignore it quota: Remove additional indentation inside command dispatching switch statement quota: Add missing prefixes to struct field names quota: Add dispatch of SYNC subcommands quota: Add decoding for Q_XQUOTARM subcommand quota: Add packed attribute to struct if_dqblk definition quota: Remove legacy command decoding support code quota: Add realtime block limits fields to XFS disk quota printing code tests: Add support for providing program arguments tests: Add tests for the quotactl syscall configure.ac | 3 + quota.c | 594 ++++++++++++++++++++------------------------- tests/.gitignore | 2 + tests/Makefile.am | 7 + tests/init.sh | 4 +- tests/quotactl-v.test | 10 + tests/quotactl-xfs-v.test | 10 + tests/quotactl-xfs.c | 384 +++++++++++++++++++++++++++++ tests/quotactl-xfs.test | 6 + tests/quotactl.c | 330 +++++++++++++++++++++++++ tests/quotactl.h | 148 +++++++++++ tests/quotactl.test | 6 + 12 files changed, 1170 insertions(+), 334 deletions(-) create mode 100755 tests/quotactl-v.test create mode 100755 tests/quotactl-xfs-v.test create mode 100644 tests/quotactl-xfs.c create mode 100755 tests/quotactl-xfs.test create mode 100644 tests/quotactl.c create mode 100644 tests/quotactl.h create mode 100755 tests/quotactl.test -- 1.7.10.4 ------------------------------------------------------------------------------ _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel