diff options
Diffstat (limited to 'tests/src/vfs')
84 files changed, 8231 insertions, 0 deletions
diff --git a/tests/src/vfs/Makefile.am b/tests/src/vfs/Makefile.am new file mode 100644 index 0000000..8530f99 --- /dev/null +++ b/tests/src/vfs/Makefile.am @@ -0,0 +1,10 @@ + +SUBDIRS = + +if ENABLE_VFS_EXTFS +SUBDIRS += extfs +endif + +if ENABLE_VFS_FTP +SUBDIRS += ftpfs +endif diff --git a/tests/src/vfs/Makefile.in b/tests/src/vfs/Makefile.in new file mode 100644 index 0000000..aa8d84e --- /dev/null +++ b/tests/src/vfs/Makefile.in @@ -0,0 +1,759 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@ENABLE_VFS_EXTFS_TRUE@am__append_1 = extfs +@ENABLE_VFS_FTP_TRUE@am__append_2 = ftpfs +subdir = tests/src/vfs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ + $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ + $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ + $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ + $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ + $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ + $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ + $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ + $(top_srcdir)/m4.include/dx_doxygen.m4 \ + $(top_srcdir)/m4.include/ax_require_defined.m4 \ + $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ + $(top_srcdir)/m4.include/mc-cflags.m4 \ + $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ + $(top_srcdir)/m4.include/mc-check-search-type.m4 \ + $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ + $(top_srcdir)/m4.include/mc-with-x.m4 \ + $(top_srcdir)/m4.include/mc-use-termcap.m4 \ + $(top_srcdir)/m4.include/mc-with-screen.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ + $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ + $(top_srcdir)/m4.include/mc-subshell.m4 \ + $(top_srcdir)/m4.include/mc-background.m4 \ + $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ + $(top_srcdir)/m4.include/mc-glib.m4 \ + $(top_srcdir)/m4.include/mc-vfs.m4 \ + $(top_srcdir)/m4.include/vfs/rpc.m4 \ + $(top_srcdir)/m4.include/vfs/socket.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-fish.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ + $(top_srcdir)/m4.include/mc-version.m4 \ + $(top_srcdir)/m4.include/mc-tests.m4 \ + $(top_srcdir)/m4.include/mc-i18n.m4 \ + $(top_srcdir)/m4.include/mc-assert.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir distdir-am +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +DIST_SUBDIRS = extfs ftpfs +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECK_CFLAGS = @CHECK_CFLAGS@ +CHECK_LIBS = @CHECK_LIBS@ +COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ +COM_ERR_LIBS = @COM_ERR_LIBS@ +CP1251 = @CP1251@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOC_LINGUAS = @DOC_LINGUAS@ +DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +DX_CONFIG = @DX_CONFIG@ +DX_DOCDIR = @DX_DOCDIR@ +DX_DOT = @DX_DOT@ +DX_DOXYGEN = @DX_DOXYGEN@ +DX_DVIPS = @DX_DVIPS@ +DX_EGREP = @DX_EGREP@ +DX_ENV = @DX_ENV@ +DX_FLAG_chi = @DX_FLAG_chi@ +DX_FLAG_chm = @DX_FLAG_chm@ +DX_FLAG_doc = @DX_FLAG_doc@ +DX_FLAG_dot = @DX_FLAG_dot@ +DX_FLAG_html = @DX_FLAG_html@ +DX_FLAG_man = @DX_FLAG_man@ +DX_FLAG_pdf = @DX_FLAG_pdf@ +DX_FLAG_ps = @DX_FLAG_ps@ +DX_FLAG_rtf = @DX_FLAG_rtf@ +DX_FLAG_xml = @DX_FLAG_xml@ +DX_HHC = @DX_HHC@ +DX_LATEX = @DX_LATEX@ +DX_MAKEINDEX = @DX_MAKEINDEX@ +DX_PDFLATEX = @DX_PDFLATEX@ +DX_PERL = @DX_PERL@ +DX_PROJECT = @DX_PROJECT@ +E2P_CFLAGS = @E2P_CFLAGS@ +E2P_LIBS = @E2P_LIBS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ +EXT2FS_LIBS = @EXT2FS_LIBS@ +EXTHELPERSDIR = @EXTHELPERSDIR@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_LIBS = @GLIB_LIBS@ +GMODULE_CFLAGS = @GMODULE_CFLAGS@ +GMODULE_LIBS = @GMODULE_LIBS@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GREP = @GREP@ +HAVE_FILECMD = @HAVE_FILECMD@ +HAVE_ZIPINFO = @HAVE_ZIPINFO@ +HAVE_nroff = @HAVE_nroff@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBMC_RELEASE = @LIBMC_RELEASE@ +LIBMC_VERSION = @LIBMC_VERSION@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ +LIBSSH_LIBS = @LIBSSH_LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANDOC = @MANDOC@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MAN_DATE = @MAN_DATE@ +MAN_FLAGS = @MAN_FLAGS@ +MAN_VERSION = @MAN_VERSION@ +MCLIBS = @MCLIBS@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CPPFLAGS = @PCRE_CPPFLAGS@ +PCRE_LIBS = @PCRE_LIBS@ +PERL = @PERL@ +PERL_FOR_BUILD = @PERL_FOR_BUILD@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +POSUB = @POSUB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SLANG_CFLAGS = @SLANG_CFLAGS@ +SLANG_LIBS = @SLANG_LIBS@ +STRIP = @STRIP@ +TESTS_LDFLAGS = @TESTS_LDFLAGS@ +UNZIP = @UNZIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +X11_WWW = @X11_WWW@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +ZIP = @ZIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = $(am__append_1) $(am__append_2) +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/src/vfs/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/src/vfs/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/src/vfs/extfs/Makefile.am b/tests/src/vfs/extfs/Makefile.am new file mode 100644 index 0000000..514bfa9 --- /dev/null +++ b/tests/src/vfs/extfs/Makefile.am @@ -0,0 +1,2 @@ + +SUBDIRS = helpers-list diff --git a/tests/src/vfs/extfs/Makefile.in b/tests/src/vfs/extfs/Makefile.in new file mode 100644 index 0000000..11bc3d1 --- /dev/null +++ b/tests/src/vfs/extfs/Makefile.in @@ -0,0 +1,757 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = tests/src/vfs/extfs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ + $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ + $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ + $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ + $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ + $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ + $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ + $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ + $(top_srcdir)/m4.include/dx_doxygen.m4 \ + $(top_srcdir)/m4.include/ax_require_defined.m4 \ + $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ + $(top_srcdir)/m4.include/mc-cflags.m4 \ + $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ + $(top_srcdir)/m4.include/mc-check-search-type.m4 \ + $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ + $(top_srcdir)/m4.include/mc-with-x.m4 \ + $(top_srcdir)/m4.include/mc-use-termcap.m4 \ + $(top_srcdir)/m4.include/mc-with-screen.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ + $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ + $(top_srcdir)/m4.include/mc-subshell.m4 \ + $(top_srcdir)/m4.include/mc-background.m4 \ + $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ + $(top_srcdir)/m4.include/mc-glib.m4 \ + $(top_srcdir)/m4.include/mc-vfs.m4 \ + $(top_srcdir)/m4.include/vfs/rpc.m4 \ + $(top_srcdir)/m4.include/vfs/socket.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-fish.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ + $(top_srcdir)/m4.include/mc-version.m4 \ + $(top_srcdir)/m4.include/mc-tests.m4 \ + $(top_srcdir)/m4.include/mc-i18n.m4 \ + $(top_srcdir)/m4.include/mc-assert.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + distdir distdir-am +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +DIST_SUBDIRS = $(SUBDIRS) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECK_CFLAGS = @CHECK_CFLAGS@ +CHECK_LIBS = @CHECK_LIBS@ +COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ +COM_ERR_LIBS = @COM_ERR_LIBS@ +CP1251 = @CP1251@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOC_LINGUAS = @DOC_LINGUAS@ +DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +DX_CONFIG = @DX_CONFIG@ +DX_DOCDIR = @DX_DOCDIR@ +DX_DOT = @DX_DOT@ +DX_DOXYGEN = @DX_DOXYGEN@ +DX_DVIPS = @DX_DVIPS@ +DX_EGREP = @DX_EGREP@ +DX_ENV = @DX_ENV@ +DX_FLAG_chi = @DX_FLAG_chi@ +DX_FLAG_chm = @DX_FLAG_chm@ +DX_FLAG_doc = @DX_FLAG_doc@ +DX_FLAG_dot = @DX_FLAG_dot@ +DX_FLAG_html = @DX_FLAG_html@ +DX_FLAG_man = @DX_FLAG_man@ +DX_FLAG_pdf = @DX_FLAG_pdf@ +DX_FLAG_ps = @DX_FLAG_ps@ +DX_FLAG_rtf = @DX_FLAG_rtf@ +DX_FLAG_xml = @DX_FLAG_xml@ +DX_HHC = @DX_HHC@ +DX_LATEX = @DX_LATEX@ +DX_MAKEINDEX = @DX_MAKEINDEX@ +DX_PDFLATEX = @DX_PDFLATEX@ +DX_PERL = @DX_PERL@ +DX_PROJECT = @DX_PROJECT@ +E2P_CFLAGS = @E2P_CFLAGS@ +E2P_LIBS = @E2P_LIBS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ +EXT2FS_LIBS = @EXT2FS_LIBS@ +EXTHELPERSDIR = @EXTHELPERSDIR@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_LIBS = @GLIB_LIBS@ +GMODULE_CFLAGS = @GMODULE_CFLAGS@ +GMODULE_LIBS = @GMODULE_LIBS@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GREP = @GREP@ +HAVE_FILECMD = @HAVE_FILECMD@ +HAVE_ZIPINFO = @HAVE_ZIPINFO@ +HAVE_nroff = @HAVE_nroff@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBMC_RELEASE = @LIBMC_RELEASE@ +LIBMC_VERSION = @LIBMC_VERSION@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ +LIBSSH_LIBS = @LIBSSH_LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANDOC = @MANDOC@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MAN_DATE = @MAN_DATE@ +MAN_FLAGS = @MAN_FLAGS@ +MAN_VERSION = @MAN_VERSION@ +MCLIBS = @MCLIBS@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CPPFLAGS = @PCRE_CPPFLAGS@ +PCRE_LIBS = @PCRE_LIBS@ +PERL = @PERL@ +PERL_FOR_BUILD = @PERL_FOR_BUILD@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +POSUB = @POSUB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SLANG_CFLAGS = @SLANG_CFLAGS@ +SLANG_LIBS = @SLANG_LIBS@ +STRIP = @STRIP@ +TESTS_LDFLAGS = @TESTS_LDFLAGS@ +UNZIP = @UNZIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +X11_WWW = @X11_WWW@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +ZIP = @ZIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = helpers-list +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/src/vfs/extfs/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/src/vfs/extfs/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/src/vfs/extfs/helpers-list/Makefile.am b/tests/src/vfs/extfs/helpers-list/Makefile.am new file mode 100644 index 0000000..991a11f --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/Makefile.am @@ -0,0 +1,131 @@ +PACKAGE_STRING = "/src/vfs/extfs/helpers-list" + +SUBDIRS = misc + +AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) + +# This lets mc_parse_ls_l.c override MC's message() without the linker +# complaining about multiple definitions. +AM_LDFLAGS = @TESTS_LDFLAGS@ + +LIBS = $(top_builddir)/lib/libmc.la + +if ENABLE_MCLIB +LIBS += $(GLIB_LIBS) +endif + +# Programs/scripts to build on 'make check'. +check_PROGRAMS = mc_parse_ls_l +check_SCRIPTS = run + +# Tests to run on 'make check' +TESTS = run + +# On 'make clean', delete 'run' as well. +CLEANFILES = run + +mc_parse_ls_l_SOURCES = \ + mc_parse_ls_l.c + +data_files_to_distribute = \ + data/hp48+.README \ + data/hp48+.args \ + data/hp48+.input \ + data/hp48+.output \ + data/lslR.1.spaces.args \ + data/lslR.1.spaces.input \ + data/lslR.1.spaces.output \ + data/lslR.2.spaces-iso.args \ + data/lslR.2.spaces-iso.input \ + data/lslR.2.spaces-iso.output \ + data/lslR.3.spaces-iso-noslash.args \ + data/lslR.3.spaces-iso-noslash.input \ + data/lslR.3.spaces-iso-noslash.output \ + data/lslR.README \ + data/rpm.README \ + data/rpm.custom.env_vars \ + data/rpm.custom.input \ + data/rpm.custom.output \ + data/rpm.glib.env_vars \ + data/rpm.glib.input \ + data/rpm.glib.output \ + data/rpm.rewrite.sh \ + data/u7z.README \ + data/u7z.complex.env_vars \ + data/u7z.complex.input \ + data/u7z.complex.output \ + data/u7z.missing-date.env_vars \ + data/u7z.missing-date.input \ + data/u7z.missing-date.output \ + data/u7z.missing-size-and-date.env_vars \ + data/u7z.missing-size-and-date.input \ + data/u7z.missing-size-and-date.output \ + data/u7z.simple.input \ + data/u7z.simple.output \ + data/uace.README \ + data/uace.input \ + data/uace.output \ + data/uarc.README \ + data/uarc.input \ + data/uarc.output \ + data/urar.README \ + data/urar.v4,v3.env_vars \ + data/urar.v4,v3.input \ + data/urar.v4,v3.output \ + data/urar.v6,v5.env_vars \ + data/urar.v6,v5.input \ + data/urar.v6,v5.output \ + data/uzip.README \ + data/uzip.with-zipinfo.env_vars \ + data/uzip.with-zipinfo.input \ + data/uzip.with-zipinfo.output \ + data/uzip.without-zipinfo--mdy.env_vars \ + data/uzip.without-zipinfo--mdy.input \ + data/uzip.without-zipinfo--mdy.output \ + data/uzip.without-zipinfo--ymd.env_vars \ + data/uzip.without-zipinfo--ymd.input \ + data/uzip.without-zipinfo--ymd.output \ + data/uzoo.README \ + data/uzoo.input \ + data/uzoo.output \ + data/dummy + +EXTRA_DIST = mc_xcat test_all $(data_files_to_distribute) + +run: + @echo '#!/bin/sh' > $@ + @echo >> $@ + @echo '# This script is an easy way to launch the "test_all" script' >> $@ + @echo '# with all the required arguments.' >> $@ + @echo '#' >> $@ + @echo '# Run this script with "--help" to learn more.' >> $@ + @echo >> $@ + @echo '# Where to find mc_parse_ls_l and mc_xcat, respectively.' >> $@ + @echo 'PATH="$(abs_builddir):$(abs_srcdir):$$PATH"' >> $@ + @echo >> $@ +# The 'abs_' isn't mandatory. It lets you move this script out of the build tree. + @echo '"$(abs_srcdir)"/test_all "$$@" \' >> $@ + @echo ' --data-dir "$(abs_srcdir)/data" \' >> $@ + @echo ' --data-build-dir "$(abs_builddir)/data" \' >> $@ +# Before installation, some helpers are in the build tree, some in the src tree. + @echo ' --helpers-dir "$(abs_top_builddir)/src/vfs/extfs/helpers" \' >> $@ + @echo ' --helpers-dir "$(abs_top_srcdir)/src/vfs/extfs/helpers"' >> $@ + @chmod +x $@ +# (We can alternatively create run from a run.in template +# with 'AC_CONFIG_FILES[run, chmod +x run]'.) + +# Whenever we change the recipe above, we need to regenerate the 'run' script: +run: Makefile + +# +# Documentation +# + +doc: README.html + +# (Thanks to VPATH we don't need to write "$(srcdir)/README". doc/hlp/Makefile.am needlessly does this.) +README.html: README + pandoc --include-in-header=$(srcdir)/README.css.inc -N --old-dashes --toc --toc-depth=4 --standalone -o $@ $< + +EXTRA_DIST += README.css.inc +CLEANFILES += README.html diff --git a/tests/src/vfs/extfs/helpers-list/Makefile.in b/tests/src/vfs/extfs/helpers-list/Makefile.in new file mode 100644 index 0000000..d4465a6 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/Makefile.in @@ -0,0 +1,1334 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@ENABLE_MCLIB_TRUE@am__append_1 = $(GLIB_LIBS) +check_PROGRAMS = mc_parse_ls_l$(EXEEXT) +subdir = tests/src/vfs/extfs/helpers-list +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ + $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ + $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ + $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ + $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ + $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ + $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ + $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ + $(top_srcdir)/m4.include/dx_doxygen.m4 \ + $(top_srcdir)/m4.include/ax_require_defined.m4 \ + $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ + $(top_srcdir)/m4.include/mc-cflags.m4 \ + $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ + $(top_srcdir)/m4.include/mc-check-search-type.m4 \ + $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ + $(top_srcdir)/m4.include/mc-with-x.m4 \ + $(top_srcdir)/m4.include/mc-use-termcap.m4 \ + $(top_srcdir)/m4.include/mc-with-screen.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ + $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ + $(top_srcdir)/m4.include/mc-subshell.m4 \ + $(top_srcdir)/m4.include/mc-background.m4 \ + $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ + $(top_srcdir)/m4.include/mc-glib.m4 \ + $(top_srcdir)/m4.include/mc-vfs.m4 \ + $(top_srcdir)/m4.include/vfs/rpc.m4 \ + $(top_srcdir)/m4.include/vfs/socket.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-fish.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ + $(top_srcdir)/m4.include/mc-version.m4 \ + $(top_srcdir)/m4.include/mc-tests.m4 \ + $(top_srcdir)/m4.include/mc-i18n.m4 \ + $(top_srcdir)/m4.include/mc-assert.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am_mc_parse_ls_l_OBJECTS = mc_parse_ls_l.$(OBJEXT) +mc_parse_ls_l_OBJECTS = $(am_mc_parse_ls_l_OBJECTS) +mc_parse_ls_l_LDADD = $(LDADD) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__maybe_remake_depfiles = depfiles +am__depfiles_remade = ./$(DEPDIR)/mc_parse_ls_l.Po +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(mc_parse_ls_l_SOURCES) +DIST_SOURCES = $(mc_parse_ls_l_SOURCES) +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + check recheck distdir distdir-am +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +am__tty_colors_dummy = \ + mgn= red= grn= lgn= blu= brg= std=; \ + am__color_tests=no +am__tty_colors = { \ + $(am__tty_colors_dummy); \ + if test "X$(AM_COLOR_TESTS)" = Xno; then \ + am__color_tests=no; \ + elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ + am__color_tests=yes; \ + elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ + am__color_tests=yes; \ + fi; \ + if test $$am__color_tests = yes; then \ + red='[0;31m'; \ + grn='[0;32m'; \ + lgn='[1;32m'; \ + blu='[1;34m'; \ + mgn='[0;35m'; \ + brg='[1m'; \ + std='[m'; \ + fi; \ +} +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__recheck_rx = ^[ ]*:recheck:[ ]* +am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* +am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* +# A command that, given a newline-separated list of test names on the +# standard input, print the name of the tests that are to be re-run +# upon "make recheck". +am__list_recheck_tests = $(AWK) '{ \ + recheck = 1; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + { \ + if ((getline line2 < ($$0 ".log")) < 0) \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ + { \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ + { \ + break; \ + } \ + }; \ + if (recheck) \ + print $$0; \ + close ($$0 ".trs"); \ + close ($$0 ".log"); \ +}' +# A command that, given a newline-separated list of test names on the +# standard input, create the global log from their .trs and .log files. +am__create_global_log = $(AWK) ' \ +function fatal(msg) \ +{ \ + print "fatal: making $@: " msg | "cat >&2"; \ + exit 1; \ +} \ +function rst_section(header) \ +{ \ + print header; \ + len = length(header); \ + for (i = 1; i <= len; i = i + 1) \ + printf "="; \ + printf "\n\n"; \ +} \ +{ \ + copy_in_global_log = 1; \ + global_test_result = "RUN"; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + fatal("failed to read from " $$0 ".trs"); \ + if (line ~ /$(am__global_test_result_rx)/) \ + { \ + sub("$(am__global_test_result_rx)", "", line); \ + sub("[ ]*$$", "", line); \ + global_test_result = line; \ + } \ + else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ + copy_in_global_log = 0; \ + }; \ + if (copy_in_global_log) \ + { \ + rst_section(global_test_result ": " $$0); \ + while ((rc = (getline line < ($$0 ".log"))) != 0) \ + { \ + if (rc < 0) \ + fatal("failed to read from " $$0 ".log"); \ + print line; \ + }; \ + printf "\n"; \ + }; \ + close ($$0 ".trs"); \ + close ($$0 ".log"); \ +}' +# Restructured Text title. +am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } +# Solaris 10 'make', and several other traditional 'make' implementations, +# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it +# by disabling -e (using the XSI extension "set +e") if it's set. +am__sh_e_setup = case $$- in *e*) set +e;; esac +# Default flags passed to test drivers. +am__common_driver_flags = \ + --color-tests "$$am__color_tests" \ + --enable-hard-errors "$$am__enable_hard_errors" \ + --expect-failure "$$am__expect_failure" +# To be inserted before the command running the test. Creates the +# directory for the log if needed. Stores in $dir the directory +# containing $f, in $tst the test, in $log the log. Executes the +# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and +# passes TESTS_ENVIRONMENT. Set up options for the wrapper that +# will run the test scripts (or their associated LOG_COMPILER, if +# thy have one). +am__check_pre = \ +$(am__sh_e_setup); \ +$(am__vpath_adj_setup) $(am__vpath_adj) \ +$(am__tty_colors); \ +srcdir=$(srcdir); export srcdir; \ +case "$@" in \ + */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ + *) am__odir=.;; \ +esac; \ +test "x$$am__odir" = x"." || test -d "$$am__odir" \ + || $(MKDIR_P) "$$am__odir" || exit $$?; \ +if test -f "./$$f"; then dir=./; \ +elif test -f "$$f"; then dir=; \ +else dir="$(srcdir)/"; fi; \ +tst=$$dir$$f; log='$@'; \ +if test -n '$(DISABLE_HARD_ERRORS)'; then \ + am__enable_hard_errors=no; \ +else \ + am__enable_hard_errors=yes; \ +fi; \ +case " $(XFAIL_TESTS) " in \ + *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ + am__expect_failure=yes;; \ + *) \ + am__expect_failure=no;; \ +esac; \ +$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) +# A shell command to get the names of the tests scripts with any registered +# extension removed (i.e., equivalently, the names of the test logs, with +# the '.log' extension removed). The result is saved in the shell variable +# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, +# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", +# since that might cause problem with VPATH rewrites for suffix-less tests. +# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. +am__set_TESTS_bases = \ + bases='$(TEST_LOGS)'; \ + bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ + bases=`echo $$bases` +AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' +RECHECK_LOGS = $(TEST_LOGS) +TEST_SUITE_LOG = test-suite.log +TEST_EXTENSIONS = @EXEEXT@ .test +LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver +LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) +am__set_b = \ + case '$@' in \ + */*) \ + case '$*' in \ + */*) b='$*';; \ + *) b=`echo '$@' | sed 's/\.log$$//'`; \ + esac;; \ + *) \ + b='$*';; \ + esac +am__test_logs1 = $(TESTS:=.log) +am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) +TEST_LOGS = $(am__test_logs2:.test.log=.log) +TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver +TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ + $(TEST_LOG_FLAGS) +DIST_SUBDIRS = $(SUBDIRS) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp \ + $(top_srcdir)/config/test-driver README +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECK_CFLAGS = @CHECK_CFLAGS@ +CHECK_LIBS = @CHECK_LIBS@ +COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ +COM_ERR_LIBS = @COM_ERR_LIBS@ +CP1251 = @CP1251@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOC_LINGUAS = @DOC_LINGUAS@ +DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +DX_CONFIG = @DX_CONFIG@ +DX_DOCDIR = @DX_DOCDIR@ +DX_DOT = @DX_DOT@ +DX_DOXYGEN = @DX_DOXYGEN@ +DX_DVIPS = @DX_DVIPS@ +DX_EGREP = @DX_EGREP@ +DX_ENV = @DX_ENV@ +DX_FLAG_chi = @DX_FLAG_chi@ +DX_FLAG_chm = @DX_FLAG_chm@ +DX_FLAG_doc = @DX_FLAG_doc@ +DX_FLAG_dot = @DX_FLAG_dot@ +DX_FLAG_html = @DX_FLAG_html@ +DX_FLAG_man = @DX_FLAG_man@ +DX_FLAG_pdf = @DX_FLAG_pdf@ +DX_FLAG_ps = @DX_FLAG_ps@ +DX_FLAG_rtf = @DX_FLAG_rtf@ +DX_FLAG_xml = @DX_FLAG_xml@ +DX_HHC = @DX_HHC@ +DX_LATEX = @DX_LATEX@ +DX_MAKEINDEX = @DX_MAKEINDEX@ +DX_PDFLATEX = @DX_PDFLATEX@ +DX_PERL = @DX_PERL@ +DX_PROJECT = @DX_PROJECT@ +E2P_CFLAGS = @E2P_CFLAGS@ +E2P_LIBS = @E2P_LIBS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ +EXT2FS_LIBS = @EXT2FS_LIBS@ +EXTHELPERSDIR = @EXTHELPERSDIR@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_LIBS = @GLIB_LIBS@ +GMODULE_CFLAGS = @GMODULE_CFLAGS@ +GMODULE_LIBS = @GMODULE_LIBS@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GREP = @GREP@ +HAVE_FILECMD = @HAVE_FILECMD@ +HAVE_ZIPINFO = @HAVE_ZIPINFO@ +HAVE_nroff = @HAVE_nroff@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBMC_RELEASE = @LIBMC_RELEASE@ +LIBMC_VERSION = @LIBMC_VERSION@ +LIBOBJS = @LIBOBJS@ +LIBS = $(top_builddir)/lib/libmc.la $(am__append_1) +LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ +LIBSSH_LIBS = @LIBSSH_LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANDOC = @MANDOC@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MAN_DATE = @MAN_DATE@ +MAN_FLAGS = @MAN_FLAGS@ +MAN_VERSION = @MAN_VERSION@ +MCLIBS = @MCLIBS@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = "/src/vfs/extfs/helpers-list" +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CPPFLAGS = @PCRE_CPPFLAGS@ +PCRE_LIBS = @PCRE_LIBS@ +PERL = @PERL@ +PERL_FOR_BUILD = @PERL_FOR_BUILD@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +POSUB = @POSUB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SLANG_CFLAGS = @SLANG_CFLAGS@ +SLANG_LIBS = @SLANG_LIBS@ +STRIP = @STRIP@ +TESTS_LDFLAGS = @TESTS_LDFLAGS@ +UNZIP = @UNZIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +X11_WWW = @X11_WWW@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +ZIP = @ZIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = misc +AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) + +# This lets mc_parse_ls_l.c override MC's message() without the linker +# complaining about multiple definitions. +AM_LDFLAGS = @TESTS_LDFLAGS@ +check_SCRIPTS = run + +# Tests to run on 'make check' +TESTS = run + +# On 'make clean', delete 'run' as well. +CLEANFILES = run README.html +mc_parse_ls_l_SOURCES = \ + mc_parse_ls_l.c + +data_files_to_distribute = \ + data/hp48+.README \ + data/hp48+.args \ + data/hp48+.input \ + data/hp48+.output \ + data/lslR.1.spaces.args \ + data/lslR.1.spaces.input \ + data/lslR.1.spaces.output \ + data/lslR.2.spaces-iso.args \ + data/lslR.2.spaces-iso.input \ + data/lslR.2.spaces-iso.output \ + data/lslR.3.spaces-iso-noslash.args \ + data/lslR.3.spaces-iso-noslash.input \ + data/lslR.3.spaces-iso-noslash.output \ + data/lslR.README \ + data/rpm.README \ + data/rpm.custom.env_vars \ + data/rpm.custom.input \ + data/rpm.custom.output \ + data/rpm.glib.env_vars \ + data/rpm.glib.input \ + data/rpm.glib.output \ + data/rpm.rewrite.sh \ + data/u7z.README \ + data/u7z.complex.env_vars \ + data/u7z.complex.input \ + data/u7z.complex.output \ + data/u7z.missing-date.env_vars \ + data/u7z.missing-date.input \ + data/u7z.missing-date.output \ + data/u7z.missing-size-and-date.env_vars \ + data/u7z.missing-size-and-date.input \ + data/u7z.missing-size-and-date.output \ + data/u7z.simple.input \ + data/u7z.simple.output \ + data/uace.README \ + data/uace.input \ + data/uace.output \ + data/uarc.README \ + data/uarc.input \ + data/uarc.output \ + data/urar.README \ + data/urar.v4,v3.env_vars \ + data/urar.v4,v3.input \ + data/urar.v4,v3.output \ + data/urar.v6,v5.env_vars \ + data/urar.v6,v5.input \ + data/urar.v6,v5.output \ + data/uzip.README \ + data/uzip.with-zipinfo.env_vars \ + data/uzip.with-zipinfo.input \ + data/uzip.with-zipinfo.output \ + data/uzip.without-zipinfo--mdy.env_vars \ + data/uzip.without-zipinfo--mdy.input \ + data/uzip.without-zipinfo--mdy.output \ + data/uzip.without-zipinfo--ymd.env_vars \ + data/uzip.without-zipinfo--ymd.input \ + data/uzip.without-zipinfo--ymd.output \ + data/uzoo.README \ + data/uzoo.input \ + data/uzoo.output \ + data/dummy + +EXTRA_DIST = mc_xcat test_all $(data_files_to_distribute) \ + README.css.inc +all: all-recursive + +.SUFFIXES: +.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/src/vfs/extfs/helpers-list/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/src/vfs/extfs/helpers-list/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-checkPROGRAMS: + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +mc_parse_ls_l$(EXEEXT): $(mc_parse_ls_l_OBJECTS) $(mc_parse_ls_l_DEPENDENCIES) $(EXTRA_mc_parse_ls_l_DEPENDENCIES) + @rm -f mc_parse_ls_l$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(mc_parse_ls_l_OBJECTS) $(mc_parse_ls_l_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mc_parse_ls_l.Po@am__quote@ # am--include-marker + +$(am__depfiles_remade): + @$(MKDIR_P) $(@D) + @echo '# dummy' >$@-t && $(am__mv) $@-t $@ + +am--depfiles: $(am__depfiles_remade) + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +# Recover from deleted '.trs' file; this should ensure that +# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create +# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells +# to avoid problems with "make -n". +.log.trs: + rm -f $< $@ + $(MAKE) $(AM_MAKEFLAGS) $< + +# Leading 'am--fnord' is there to ensure the list of targets does not +# expand to empty, as could happen e.g. with make check TESTS=''. +am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) +am--force-recheck: + @: + +$(TEST_SUITE_LOG): $(TEST_LOGS) + @$(am__set_TESTS_bases); \ + am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ + redo_bases=`for i in $$bases; do \ + am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ + done`; \ + if test -n "$$redo_bases"; then \ + redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ + redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ + if $(am__make_dryrun); then :; else \ + rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ + fi; \ + fi; \ + if test -n "$$am__remaking_logs"; then \ + echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ + "recursion detected" >&2; \ + elif test -n "$$redo_logs"; then \ + am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ + fi; \ + if $(am__make_dryrun); then :; else \ + st=0; \ + errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ + for i in $$redo_bases; do \ + test -f $$i.trs && test -r $$i.trs \ + || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ + test -f $$i.log && test -r $$i.log \ + || { echo "$$errmsg $$i.log" >&2; st=1; }; \ + done; \ + test $$st -eq 0 || exit 1; \ + fi + @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ + ws='[ ]'; \ + results=`for b in $$bases; do echo $$b.trs; done`; \ + test -n "$$results" || results=/dev/null; \ + all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ + pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ + fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ + skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ + xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ + xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ + error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ + if test `expr $$fail + $$xpass + $$error` -eq 0; then \ + success=true; \ + else \ + success=false; \ + fi; \ + br='==================='; br=$$br$$br$$br$$br; \ + result_count () \ + { \ + if test x"$$1" = x"--maybe-color"; then \ + maybe_colorize=yes; \ + elif test x"$$1" = x"--no-color"; then \ + maybe_colorize=no; \ + else \ + echo "$@: invalid 'result_count' usage" >&2; exit 4; \ + fi; \ + shift; \ + desc=$$1 count=$$2; \ + if test $$maybe_colorize = yes && test $$count -gt 0; then \ + color_start=$$3 color_end=$$std; \ + else \ + color_start= color_end=; \ + fi; \ + echo "$${color_start}# $$desc $$count$${color_end}"; \ + }; \ + create_testsuite_report () \ + { \ + result_count $$1 "TOTAL:" $$all "$$brg"; \ + result_count $$1 "PASS: " $$pass "$$grn"; \ + result_count $$1 "SKIP: " $$skip "$$blu"; \ + result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ + result_count $$1 "FAIL: " $$fail "$$red"; \ + result_count $$1 "XPASS:" $$xpass "$$red"; \ + result_count $$1 "ERROR:" $$error "$$mgn"; \ + }; \ + { \ + echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ + $(am__rst_title); \ + create_testsuite_report --no-color; \ + echo; \ + echo ".. contents:: :depth: 2"; \ + echo; \ + for b in $$bases; do echo $$b; done \ + | $(am__create_global_log); \ + } >$(TEST_SUITE_LOG).tmp || exit 1; \ + mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ + if $$success; then \ + col="$$grn"; \ + else \ + col="$$red"; \ + test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ + fi; \ + echo "$${col}$$br$${std}"; \ + echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ + echo "$${col}$$br$${std}"; \ + create_testsuite_report --maybe-color; \ + echo "$$col$$br$$std"; \ + if $$success; then :; else \ + echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ + if test -n "$(PACKAGE_BUGREPORT)"; then \ + echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ + fi; \ + echo "$$col$$br$$std"; \ + fi; \ + $$success || exit 1 + +check-TESTS: $(check_PROGRAMS) $(check_SCRIPTS) + @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list + @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list + @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @set +e; $(am__set_TESTS_bases); \ + log_list=`for i in $$bases; do echo $$i.log; done`; \ + trs_list=`for i in $$bases; do echo $$i.trs; done`; \ + log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ + $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ + exit $$?; +recheck: all $(check_PROGRAMS) $(check_SCRIPTS) + @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @set +e; $(am__set_TESTS_bases); \ + bases=`for i in $$bases; do echo $$i; done \ + | $(am__list_recheck_tests)` || exit 1; \ + log_list=`for i in $$bases; do echo $$i.log; done`; \ + log_list=`echo $$log_list`; \ + $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ + am__force_recheck=am--force-recheck \ + TEST_LOGS="$$log_list"; \ + exit $$? +run.log: run + @p='run'; \ + b='run'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +.test.log: + @p='$<'; \ + $(am__set_b); \ + $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +@am__EXEEXT_TRUE@.test$(EXEEXT).log: +@am__EXEEXT_TRUE@ @p='$<'; \ +@am__EXEEXT_TRUE@ $(am__set_b); \ +@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ +@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ +@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ +@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) + -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) + -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ + mostlyclean-am + +distclean: distclean-recursive + -rm -f ./$(DEPDIR)/mc_parse_ls_l.Po + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f ./$(DEPDIR)/mc_parse_ls_l.Po + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) check-am install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--depfiles check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + recheck tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +run: + @echo '#!/bin/sh' > $@ + @echo >> $@ + @echo '# This script is an easy way to launch the "test_all" script' >> $@ + @echo '# with all the required arguments.' >> $@ + @echo '#' >> $@ + @echo '# Run this script with "--help" to learn more.' >> $@ + @echo >> $@ + @echo '# Where to find mc_parse_ls_l and mc_xcat, respectively.' >> $@ + @echo 'PATH="$(abs_builddir):$(abs_srcdir):$$PATH"' >> $@ + @echo >> $@ +# The 'abs_' isn't mandatory. It lets you move this script out of the build tree. + @echo '"$(abs_srcdir)"/test_all "$$@" \' >> $@ + @echo ' --data-dir "$(abs_srcdir)/data" \' >> $@ + @echo ' --data-build-dir "$(abs_builddir)/data" \' >> $@ +# Before installation, some helpers are in the build tree, some in the src tree. + @echo ' --helpers-dir "$(abs_top_builddir)/src/vfs/extfs/helpers" \' >> $@ + @echo ' --helpers-dir "$(abs_top_srcdir)/src/vfs/extfs/helpers"' >> $@ + @chmod +x $@ +# (We can alternatively create run from a run.in template +# with 'AC_CONFIG_FILES[run, chmod +x run]'.) + +# Whenever we change the recipe above, we need to regenerate the 'run' script: +run: Makefile + +# +# Documentation +# + +doc: README.html + +# (Thanks to VPATH we don't need to write "$(srcdir)/README". doc/hlp/Makefile.am needlessly does this.) +README.html: README + pandoc --include-in-header=$(srcdir)/README.css.inc -N --old-dashes --toc --toc-depth=4 --standalone -o $@ $< + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/src/vfs/extfs/helpers-list/README b/tests/src/vfs/extfs/helpers-list/README new file mode 100644 index 0000000..0c3bda6 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/README @@ -0,0 +1,207 @@ +--- +title: A tester for extfs helpers +... + +Guide +===== + +Introduction +------------ + +The extfs filesystem is composed of various helpers (uzip, urar, uarc, +...). One command every helper must answer to is "list", to list the +files on its filesystem. + +The purpose of this tester is to test this "list" facet of every helper +to ensure that it indeed works, at present, and that we won't +inadvertently break it, in the future, as we modify its code or MC's +code. + +Key concept: Inputs +------------------- + +Most helpers work by parsing the output of some 3'rd party software. +Which for them becomes the *input*. Helpers sometimes support **several +variations** of such input. E.g., the uzip helper supports three +variations. + +The tester keeps a repository, in the data folder, of the various inputs +each helper proclaims to support. Each input is stored in a file with an +`.input` suffix. + +Key concept: Outputs +-------------------- + +Along with each input file, the data folder also holds the output the +helper is expected to produce given the corresponding input. Each output +is stored in a file with an `.output` suffix. + +We call this output "the expected output". + +Incidentally, an `.output` file stores not the _raw_ output of the helper +but its output _after parsing_. In other words, what's stored is the +unambiguous _meaning_ of the helper's output. This means that as long as +the helper's code isn't modified in a way that changes the meaning of its +output, the `.output` file remains up-to-date. + +How the tester works +-------------------- + +The tester feeds each helper its prepared inputs and reads back the +helper's "list" answer -- the helper's **output**. This output is a list +of files in a format similar to `ls -l`, which MC is able to parse. The +tester checks that this output parses without errors (errors are, for +example, dates in unsupported format). It then compares this parsed +output (which we call "the actual output") with a previously saved copy +of this output which is known to be correct (and which we call "the +expected output", mentioned in the previous section). This previously +stored output too is in the data folder, in files with `.output` suffix. + +If there's any discrepancy between the *actual output* and the +*expected output*, the test fails. + +Running the tester +------------------ + +You can run the tester with `make check`. + +But you'll find it more appealing to run the tester with the `run` +script. You'll get a colorful description of what's going on. + +(`run` is created by running `make check` for the 1st time, in the build +tree.) + +Reference +========= + +The data folder +--------------- + +There are several types of files in the data folder: + +### Input file ### + +An input file is named: + +> `<helper-name>[.optional-embedded-description].input` + +You create such files simply by redirecting the 3'rd party software's +output to a file. + +### Output file ### + +This file is named the same as the corresponding input file but with an +`.output` suffix. + +The easiest way to create these files is by invoking the `run` script +with the `--create-output` option. + +### Environment file ### + +Optional. This file defines environment variables the helper may use to +determine the variant of the input. This file is named the same as the +corresponding input file but with an `.env_var` suffix. + +### Arguments file ### + +Optional. This file defines extra command-line options to pass to the +[parser](#mc_parse_ls_l). This file is named the same as the +corresponding input file but with an `.args` suffix. + +The contents of an output file must be the same no matter on what +computer and at what time we generate it. Therefore we need to tell the +parser to drop any non-fixed elements in that file. E.g., if the dates +used are relative (as is the case for the default `ls` dates), we need to +drop them with `--drop-mtime`. Similarly, if a helper returns user and +group _names_ that are different than the running user's, they must be +dropped with `--drop-ids`. + +### Other files ### + +Any other file is ignored by the tester. + +mc_parse_ls_l +------------- + +This program (built with `make check`) is at the heart of the tester +mechanism. It parses a list of files, in a format similar to `ls -l`, +just as MC would. This program is used to parse (and thereby verify) the +output of the helpers. _You don't need to invoke it yourself;_ but, for +educational purpose, here are a few examples: + + $ LC_ALL=C ls -l | ./mc_parse_ls_l + + $ LC_ALL=C ls -l | ./mc_parse_ls_l --symbolic-ids + + $ LC_ALL=C ls -l | ./mc_parse_ls_l --output-format yaml + +test_all +-------- + +This is the tester itself. You invoke it with `make check`, or with the +`run` script. Invoking it directly is a bit involving because you need to +provide it with 2 or 3 directory paths. `run` does this work for you. + +Environment variables +--------------------- + +### Frequently used variables ### + +#### MC_TEST_EXTFS_LIST_CMD #### + +When a helper runs under the tester, the environment variable +`MC_TEST_EXTFS_LIST_CMD` holds the command that's to provide input. The +helper's source code must be modified to use this command instead of the +command it usually uses. This is the device which lets us plug our own +input into the helper and *without which a helper can't be tested!* + +Let's have a little example. The uzoo helper originally has: + + ZOO=zoo + ... + mczoofs_list () { + $ZOO lq "$ARCHIVE" | mawk '......' + } + ... + +To make this helper testable, we need to change the first line to: + + ZOO=${MC_TEST_EXTFS_LIST_CMD:-zoo} + +(or equivalent.) + +The command in `MC_TEST_EXTFS_LIST_CMD` is a black-box for the helper, +and it intentionally ignores any arguments passed to it (so that `lq +"$ARCHIVE"`, above, won't cause problems). + +### Infrequently used variables ### + +#### MC_TEST_EXTFS_INPUT #### + +Contains the path of the [input file]. You'll more commonly use +[MC_TEST_EXTFS_LIST_CMD], though. + +#### MC_TEST_EXTFS_DATA_DIR #### + +Contains the path of [the data folder]. Use it when you need to +construct the paths of other files you store there. + +#### MC_TEST_EXTFS_DATA_BUILD_DIR #### + +Contains the path of [the data folder], but in the *build* tree. This is +where *.in files from the source tree end up. If you don't know what +these are, you can safely ignore this variable. + +#### MC_TEST_EXTFS_CONFIG_SH #### + +Contains the path of *config.sh*, a file you can "source" into shell +scripts (including the [environment file]) to gain access to values set +when Midnight Commander was compiled. Example: + + . "$MC_TEST_EXTFS_CONFIG_SH" + $PERL -e 'print "hello"' + +Currently, this variable is equal to +"[$MC_TEST_EXTFS_DATA_BUILD_DIR][MC_TEST_EXTFS_DATA_BUILD_DIR]/config.sh", +but you're advised to use only `$MC_TEST_EXTFS_CONFIG_SH` as we may +change this file's location in the future. diff --git a/tests/src/vfs/extfs/helpers-list/README.css.inc b/tests/src/vfs/extfs/helpers-list/README.css.inc new file mode 100644 index 0000000..dacc4ca --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/README.css.inc @@ -0,0 +1,23 @@ +<style type="text/css"> + +body { + padding: 1em 2.5em; + line-height: 140%; +} + +code, pre { + background-color: #FFB; + padding: 2px 3px; +} + +h1, h2 { text-indent: -0.5em; } +h1, h2, h3 { + color: #005A9C; + font-family: sans-serif; +} + +:target { + background: linear-gradient(45deg, #FFF 0%, #7CC 100%); +} + +</style> diff --git a/tests/src/vfs/extfs/helpers-list/data/config.sh.in b/tests/src/vfs/extfs/helpers-list/data/config.sh.in new file mode 100644 index 0000000..05aca06 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/config.sh.in @@ -0,0 +1,9 @@ +# +# Configure-time parameters that may be useful in tests. +# +# See README for how to use this file. +# +PERL="@PERL@" +AWK="@AWK@" +PYTHON="@PYTHON@" +RUBY="@RUBY@" diff --git a/tests/src/vfs/extfs/helpers-list/data/dummy b/tests/src/vfs/extfs/helpers-list/data/dummy new file mode 100644 index 0000000..e9c581d --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/dummy @@ -0,0 +1,3 @@ +This is a dummy file meant to ensure this directory isn't empty so that git always creates it. + +Otherwise our 'test_all' script will fail complaining the directory doesn't exist. diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.README b/tests/src/vfs/extfs/helpers-list/data/hp48+.README new file mode 100644 index 0000000..d87ee97 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/hp48+.README @@ -0,0 +1,8 @@ + +The input file was taken from a comment in the helper (after removing +the "Directory" line (which is tricky to test), and adding the +not-really-necessary "EOF"). + +The '--drop-mtime' argument is needed because the helper emits the +current date, which is always changing, whereas our output files have to +be constant. diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.args b/tests/src/vfs/extfs/helpers-list/data/hp48+.args new file mode 100644 index 0000000..990629a --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/hp48+.args @@ -0,0 +1 @@ +--drop-mtime diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.input b/tests/src/vfs/extfs/helpers-list/data/hp48+.input new file mode 100644 index 0000000..2204139 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/hp48+.input @@ -0,0 +1,6 @@ +{ HOME } 105617 +YEN 30.5 Program 53391 +JYTLIGHT 21848.5 String 62692 +IOPAR 37.5 List 61074 + +EOF diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.output b/tests/src/vfs/extfs/helpers-list/data/hp48+.output new file mode 100644 index 0000000..3a24e4e --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/hp48+.output @@ -0,0 +1,3 @@ +-rw-r--r-- 1 0 0 30 /YEN +-rw-r--r-- 1 0 0 21848 /JYTLIGHT +-rw-r--r-- 1 0 0 37 /IOPAR diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.args b/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.args new file mode 100644 index 0000000..2308cee --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.args @@ -0,0 +1 @@ +--drop-ids --drop-mtime diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.input b/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.input new file mode 100644 index 0000000..908077a --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.input @@ -0,0 +1,23 @@ +.: +total 12 +drwxr-xr-x 3 serhiy serhiy 4096 Dec 29 19:12 1 2 +drwxr-xr-x 2 serhiy serhiy 4096 Dec 29 19:08 1 2 +drwxr-xr-x 2 serhiy serhiy 4096 Dec 29 19:12 1 2 + +./ 1 2: +total 4 +-rw-r--r-- 1 serhiy serhiy 0 Dec 29 19:08 b +drwxr-xr-x 2 serhiy serhiy 4096 Dec 29 19:12 z + +./ 1 2/z: +total 0 + +./1 2: +total 0 +-rw-r--r-- 1 serhiy serhiy 0 Dec 29 19:08 a + +./1 2 : +total 0 +-rw-r--r-- 1 serhiy serhiy 0 Dec 29 19:09 d +-rw-r--r-- 1 serhiy serhiy 0 Dec 29 19:08 c +-rw-r--r-- 1 serhiy serhiy 0 Dec 29 19:09 x: diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.output b/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.output new file mode 100644 index 0000000..dd6e5f1 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.1.spaces.output @@ -0,0 +1,9 @@ +drwxr-xr-x 3 4096 ./ 1 2 +drwxr-xr-x 2 4096 ./1 2 +drwxr-xr-x 2 4096 ./1 2 +-rw-r--r-- 1 0 ./ 1 2/b +drwxr-xr-x 2 4096 ./ 1 2/z +-rw-r--r-- 1 0 ./1 2/a +-rw-r--r-- 1 0 ./1 2 / d +-rw-r--r-- 1 0 ./1 2 /c +-rw-r--r-- 1 0 ./1 2 /x: diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.args b/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.args new file mode 100644 index 0000000..9f52292 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.args @@ -0,0 +1 @@ +--drop-ids diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.input b/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.input new file mode 100644 index 0000000..569586d --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.input @@ -0,0 +1,23 @@ +.: +total 12 +drwxr-xr-x 3 serhiy serhiy 4096 2009-12-29 19:12 1 2 +drwxr-xr-x 2 serhiy serhiy 4096 2009-12-29 19:08 1 2 +drwxr-xr-x 2 serhiy serhiy 4096 2009-12-29 19:12 1 2 + +./ 1 2: +total 4 +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:08 b +drwxr-xr-x 2 serhiy serhiy 4096 2009-12-29 19:12 z + +./ 1 2/z: +total 0 + +./1 2: +total 0 +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:08 a + +./1 2 : +total 0 +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:08 c +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:09 d +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:09 x: diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.output b/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.output new file mode 100644 index 0000000..60f0bdd --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.2.spaces-iso.output @@ -0,0 +1,9 @@ +drwxr-xr-x 3 4096 2009-12-29 19:12:00 ./ 1 2 +drwxr-xr-x 2 4096 2009-12-29 19:08:00 ./1 2 +drwxr-xr-x 2 4096 2009-12-29 19:12:00 ./1 2 +-rw-r--r-- 1 0 2009-12-29 19:08:00 ./ 1 2/b +drwxr-xr-x 2 4096 2009-12-29 19:12:00 ./ 1 2/z +-rw-r--r-- 1 0 2009-12-29 19:08:00 ./1 2/a +-rw-r--r-- 1 0 2009-12-29 19:08:00 ./1 2 /c +-rw-r--r-- 1 0 2009-12-29 19:09:00 ./1 2 / d +-rw-r--r-- 1 0 2009-12-29 19:09:00 ./1 2 /x: diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.args b/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.args new file mode 100644 index 0000000..9f52292 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.args @@ -0,0 +1 @@ +--drop-ids diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.input b/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.input new file mode 100644 index 0000000..28e5c22 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.input @@ -0,0 +1,17 @@ + 1 2: +total 4 +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:08 b +drwxr-xr-x 2 serhiy serhiy 4096 2009-12-29 19:12 z + + 1 2/z: +total 0 + +1 2: +total 0 +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:08 a + +1 2 : +total 0 +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:08 c +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:09 d +-rw-r--r-- 1 serhiy serhiy 0 2009-12-29 19:09 x: diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.output b/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.output new file mode 100644 index 0000000..d32336e --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.3.spaces-iso-noslash.output @@ -0,0 +1,6 @@ +-rw-r--r-- 1 0 2009-12-29 19:08:00 ./ 1 2/b +drwxr-xr-x 2 4096 2009-12-29 19:12:00 ./ 1 2/z +-rw-r--r-- 1 0 2009-12-29 19:08:00 1 2/a +-rw-r--r-- 1 0 2009-12-29 19:08:00 1 2 /c +-rw-r--r-- 1 0 2009-12-29 19:09:00 1 2 / d +-rw-r--r-- 1 0 2009-12-29 19:09:00 1 2 /x: diff --git a/tests/src/vfs/extfs/helpers-list/data/lslR.README b/tests/src/vfs/extfs/helpers-list/data/lslR.README new file mode 100644 index 0000000..6b1f73b --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/lslR.README @@ -0,0 +1,26 @@ + +The inputs were taken from: + + https://www.midnight-commander.org/ticket/1921 + +These inputs are supposed to cover: + +- "spaces": spaces in dir/file names. + +- "iso": ISO date. The ticket claims this is enabled in en_US.UTF-8 + locale, but that's untrue. Nevertheless, it's a useful format (the + default 'ls' dates are relative and therefore somewhat useless in lslR + files) so we don't mind covering it here. + +- "noshalsh": directories not starting with "./". + +Argument files: + +The output produced must be constant anytime. Therefore: + +- For the one input using non-ISO date we must use --drop-mtime. + Otherwise, because these are relative dates, next year the output + will show a different year. + +- For all inputs we use --drop-ids for the case we have user "serhiy" on + our system (and we aren't running as that user). diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.README b/tests/src/vfs/extfs/helpers-list/data/rpm.README new file mode 100644 index 0000000..78c55bc --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.README @@ -0,0 +1,24 @@ + +The *.input files for the tests are what we call "tags files". They are +generated by rpm2tags. + +The tests: + +- rpm.glib.input: + + Generated from glib2-2.46.2-4.el7.i686.rpm (downloadable from + rpmfind.net). + +- rpm.custom.input: + + Generated from our own custom package (see test.spec in this + distribution). The advantage of this custom package is that it lets us + test the helper with almost all the tags it's supposed to support. + +-- + +The way we test this helper is a bit unconventional: + +We aren't overriding one or two variables in the helper but, instead, +inject a code snippet into it (see 'rpm.rewrite.sh'). This lets us +override a couple of functions to imitate the 'rpm' binary. diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.custom.env_vars b/tests/src/vfs/extfs/helpers-list/data/rpm.custom.env_vars new file mode 100644 index 0000000..a740c64 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.custom.env_vars @@ -0,0 +1,3 @@ +MC_TEST_RPM_REWRITE="$MC_TEST_EXTFS_DATA_DIR/rpm.rewrite.sh" + +MCFASTRPM= # disable "fast mode". diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.custom.input b/tests/src/vfs/extfs/helpers-list/data/rpm.custom.input new file mode 100644 index 0000000..e8cc464 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.custom.input @@ -0,0 +1,261 @@ +# -*- mode: perl -*- +# vim: filetype=perl +# +# This "tags file" was created by running the following command: +# +# $ perl rpm2tags.pl ~/rpmbuild/RPMS/noarch/test-2.3-4.noarch.rpm +# +# This file is used in our tests instead of the corresponding RPM file. +# This lets us run the tests on systems where 'rpm' is not installed. + +$tags = { + 'PROVIDEVERSION' => '1:2.3-4', + 'PATCHESNAME' => '(none)', + 'REQUIREFLAGS' => '288', + 'NAME' => 'test', + 'FILEDEPENDSN' => '0', + 'POSTTRANS' => 'echo "Post-transaction script"', + 'SUGGESTNEVRS' => '(none)', + 'CONFLICTFLAGS' => '0', + 'VERIFYSCRIPT' => 'echo "Verify script"', + '_INFO' => 'Name : test +Epoch : 1 +Version : 2.3 +Release : 4 +Architecture: noarch +Install Date: (not installed) +Group : Development/System +Size : 5 +License : MIT +Signature : (none) +Source RPM : test-2.3-4.src.rpm +Build Date : Thu Jan 5 13:46:18 2017 +Build Host : mooffie-desktop +Relocations : (not relocatable) +Packager : Test Packager +Vendor : Test Vendor +URL : http://example.com +Summary : Testing +Description : +Multi-line description field +with "double", \'single quotes\', and $weird | \\characters i\\n = i\\\\t, empty line... + +...and a tab: [ ]. +', + 'DBINSTANCE' => '0', + 'FILECOLORS' => '0', + 'POSTUNFLAGS' => '(none)', + 'POLICYTYPESINDEXES' => '(none)', + 'PACKAGER' => 'Test Packager', + 'SIGSIZE' => '2408', + 'PREINPROG' => '/bin/sh', + 'CLASSDICT' => 'ASCII text', + 'FILEINODES' => '1', + 'EXCLUSIVEARCH' => '(none)', + 'ICON' => '(none)', + 'OBSOLETEFLAGS' => '0', + 'CHANGELOGNAME' => 'Jiri Tyr <jiri.tyr at gmail.com> 1:2.3-4', + 'V' => '2.3', + 'VERIFYSCRIPTFLAGS' => '(none)', + 'SUPPLEMENTFLAGS' => '(none)', + 'FILECLASS' => 'ASCII text', + 'COOKIE' => '(none)', + 'OLDENHANCESNAME' => '(none)', + 'FILEDEPENDSX' => '0', + 'ORDERNAME' => '(none)', + 'TRIGGERSCRIPTS' => '(none)', + 'OLDFILENAMES' => '(none)', + 'PAYLOADFORMAT' => 'cpio', + 'CHANGELOGTIME' => '1483099200', + 'DIRINDEXES' => '0', + 'OLDENHANCESVERSION' => '(none)', + 'OLDENHANCES' => '(none)', + 'SIZE' => '5', + 'SUMMARY' => 'Testing', + 'POLICYFLAGS' => '(none)', + 'SOURCERPM' => 'test-2.3-4.src.rpm', + 'OBSOLETEVERSION' => '', + 'FILEUSERNAME' => 'root', + 'EPOCH' => '1', + 'ORIGDIRNAMES' => '(none)', + 'LICENSE' => 'MIT', + 'OLDSUGGESTS' => '(none)', + 'PATCHESVERSION' => '(none)', + 'FILEMD5S' => 'd8e8fca2dc0f896fd7cb4cb0031ba249', + 'POLICIES' => '(none)', + 'DSAHEADER' => '(none)', + 'LONGSIGSIZE' => '2408', + 'ENHANCENEVRS' => '(none)', + 'ENHANCEFLAGS' => '(none)', + 'PROVIDENEVRS' => 'test = 1:2.3-4', + 'OLDSUGGESTSFLAGS' => '(none)', + 'NVRA' => 'test-2.3-4.noarch', + 'TRIGGERINDEX' => '(none)', + 'HEADERI18NTABLE' => 'C', + 'PATCHESFLAGS' => '(none)', + 'BUILDARCHS' => '(none)', + 'ENHANCEVERSION' => '(none)', + 'REQUIREFLAGS:depflags' => '', + 'RECOMMENDS' => '(none)', + 'VERSION' => '2.3', + 'FILELINKTOS' => '', + 'CONFLICTNEVRS' => 'notest', + 'OBSOLETENEVRS' => 'testing', + 'E' => '1', + 'CHANGELOGTEXT' => '- Initial build.', + 'PRETRANSFLAGS' => '(none)', + 'REQUIRENAME' => '/bin/sh', + 'HEADERREGIONS' => '(none)', + 'NOPATCH' => '(none)', + 'FILEREQUIRE' => '', + 'BUILDTIME' => '1483616778', + 'FILEFLAGS' => '0', + 'OLDSUGGESTSVERSION' => '(none)', + 'PROVIDEFLAGS' => '8', + 'O' => 'testing', + 'SHA1HEADER' => '94826dbc4976a5c54a494a0591553b972edcf235', + 'ARCHIVESIZE' => '264', + 'FILENAMES' => '/var/tmp/test.txt', + 'FILERDEVS' => '0', + 'INSTALLCOLOR' => '(none)', + 'REQUIRENEVRS' => '/bin/sh', + 'FILEDIGESTS' => 'd8e8fca2dc0f896fd7cb4cb0031ba249', + 'EXCLUSIVEOS' => '(none)', + 'CHANGELOGTIME:date' => 'Fri Dec 30 14:00:00 2016', + 'PREFIXES' => '(none)', + 'POLICYNAMES' => '(none)', + 'FILEVERIFYFLAGS' => '4294967295', + 'TRIGGERNAME' => '(none)', + 'PROVIDES' => 'test', + 'RELEASE' => '4', + 'SOURCEPACKAGE' => '(none)', + 'FSCONTEXTS' => '(none)', + 'GROUP' => 'Development/System', + 'HDRID' => '94826dbc4976a5c54a494a0591553b972edcf235', + 'SOURCEPKGID' => '(none)', + 'SUGGESTVERSION' => '(none)', + 'SIGGPG' => '(none)', + 'FILELANGS' => '', + 'ORDERFLAGS' => '(none)', + 'GIF' => '(none)', + 'OBSOLETES' => 'testing', + 'REQUIREVERSION' => '', + 'PAYLOADFLAGS' => '9', + 'TRIGGERTYPE' => '(none)', + 'REMOVETID' => '(none)', + 'OBSOLETEFLAGS:depflags' => '', + 'FILEMTIMES' => '1483616778', + 'POSTUN' => 'echo "Post-uninstallation script"', + 'PROVIDEFLAGS:depflags' => '=', + 'POSTINPROG' => '/bin/sh', + 'OLDSUGGESTSNAME' => '(none)', + 'BUGURL' => '(none)', + 'INSTALLTIME' => '(none)', + 'PREINFLAGS' => '(none)', + 'LONGARCHIVESIZE' => '264', + 'ENHANCES' => '(none)', + 'VENDOR' => 'Test Vendor', + 'URL' => 'http://example.com', + 'RSAHEADER' => '(none)', + 'VCS' => '(none)', + 'POSTTRANSPROG' => '/bin/sh', + 'TRIGGERVERSION' => '(none)', + 'ORIGBASENAMES' => '(none)', + 'TRIGGERFLAGS' => '(none)', + 'RECOMMENDFLAGS' => '(none)', + 'ARCH' => 'noarch', + 'SUGGESTFLAGS' => '(none)', + 'OS' => 'linux', + 'PREUNPROG' => '/bin/sh', + 'P' => 'test', + 'SUPPLEMENTNAME' => '(none)', + 'CONFLICTFLAGS:depflags' => '', + 'DEPENDSDICT' => '(none)', + 'PREUNFLAGS' => '(none)', + 'PLATFORM' => 'noarch-debian-linux', + 'DIRNAMES' => '/var/tmp/', + 'POSTTRANSFLAGS' => '(none)', + 'NVR' => 'test-2.3-4', + 'SIGPGP' => '(none)', + 'INSTFILENAMES' => '(none)', + 'CONFLICTS' => 'notest', + 'NEVRA' => 'test-1:2.3-4.noarch', + 'RECONTEXTS' => '(none)', + 'NEVR' => 'test-1:2.3-4', + 'REQUIRES' => '/bin/sh', + 'PATCH' => '(none)', + 'SOURCE' => '(none)', + 'LONGSIZE' => '5', + 'FILECAPS' => '(none)', + 'DISTURL' => '(none)', + 'RECOMMENDVERSION' => '(none)', + 'FILEMODES' => '33188', + 'BUILDHOST' => 'mooffie-desktop', + 'PUBKEYS' => '(none)', + 'PREUN' => 'echo "Pre-uninstallation script"', + 'FILEPROVIDE' => '', + 'OPTFLAGS' => '-O2 -g -march=i386 -mtune=i686', + 'ORIGFILENAMES' => '(none)', + 'CONFLICTNAME' => 'notest', + 'TRIGGERSCRIPTFLAGS' => '(none)', + 'TRIGGERCONDS' => '(none)', + 'HEADERIMAGE' => '(none)', + 'SUPPLEMENTVERSION' => '(none)', + 'BASENAMES' => 'test.txt', + 'SUPPLEMENTS' => '(none)', + 'SUGGESTS' => '(none)', + 'PREIN' => 'echo "Pre-installation script"', + 'OLDENHANCESFLAGS' => '(none)', + 'DESCRIPTION' => 'Multi-line description field +with "double", \'single quotes\', and $weird | \\characters i\\n = i\\\\t, empty line... + +...and a tab: [ ].', + 'FILESTATES' => '(none)', + 'CONFLICTVERSION' => '', + 'PROVIDENAME' => 'test', + 'HEADERCOLOR' => '0', + 'FILECONTEXTS' => '(none)', + 'EPOCHNUM' => '1', + 'LONGFILESIZES' => '5', + 'DISTRIBUTION' => 'Test Distro', + 'SUGGESTNAME' => '(none)', + 'RPMVERSION' => '4.12.0.1', + 'POLICYTYPES' => '(none)', + 'HEADERSIGNATURES' => '(none)', + 'VERBOSE' => '(none)', + 'R' => '4', + 'PKGID' => 'e8150d00f05b3becbc59c4a31becfab6', + 'NOSOURCE' => '(none)', + 'EXCLUDEARCH' => '(none)', + 'FILEDIGESTALGO' => '(none)', + 'N' => 'test', + 'RECOMMENDNAME' => '(none)', + 'FILESIZES' => '5', + 'FILEDEVICES' => '1', + 'EXCLUDEOS' => '(none)', + 'C' => 'notest', + 'PRETRANSPROG' => '/bin/sh', + 'PRETRANS' => 'echo "Pre-transaction script"', + 'ORIGDIRINDEXES' => '(none)', + 'FILENLINKS' => '1', + 'TRIGGERSCRIPTPROG' => '(none)', + 'VERIFYSCRIPTPROG' => '/bin/sh', + 'OBSOLETENAME' => 'testing', + 'RECOMMENDNEVRS' => '(none)', + 'POSTINFLAGS' => '(none)', + 'BUILDTIME:date' => 'Thu Jan 5 13:46:18 2017', + 'SIGMD5' => 'e8150d00f05b3becbc59c4a31becfab6', + 'SUPPLEMENTNEVRS' => '(none)', + 'FILEGROUPNAME' => 'root', + 'POSTUNPROG' => '/bin/sh', + 'INSTPREFIXES' => '(none)', + 'ORDERVERSION' => '(none)', + 'XPM' => '(none)', + 'INSTALLTID' => '(none)', + 'POSTIN' => 'echo "Post-installation script"', + 'DISTTAG' => '(none)', + 'PAYLOADCOMPRESSOR' => 'gzip', + 'ENHANCENAME' => '(none)', + 'EVR' => '1:2.3-4' +} +; diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.custom.output b/tests/src/vfs/extfs/helpers-list/data/rpm.custom.output new file mode 100644 index 0000000..c4f7b7b --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.custom.output @@ -0,0 +1,41 @@ +-r--r--r-- 1 0 0 597 2017-01-05 00:00:00 HEADER +-r-xr-xr-x 1 0 0 0 2017-01-05 00:00:00 INSTALL +-r-xr-xr-x 1 0 0 0 2017-01-05 00:00:00 UPGRADE +dr-xr-xr-x 3 0 0 0 2017-01-05 00:00:00 INFO +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/NAME-EPOCH:VERSION-RELEASE +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/GROUP +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/BUILDHOST +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SOURCERPM +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/BUILDTIME +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/RPMVERSION +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/OS +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SIZE +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/DISTRIBUTION +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/VENDOR +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/DESCRIPTION +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SUMMARY +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/PRETRANS +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/POSTTRANS +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/PREIN +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/POSTIN +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/PREUN +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/POSTUN +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/VERIFYSCRIPT +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/ALL +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/PRETRANSPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/POSTTRANSPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/PREINPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/POSTINPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/PREUNPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/POSTUNPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/SCRIPTS/VERIFYSCRIPTPROG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/PACKAGER +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/URL +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/EPOCH +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/LICENSE +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/REQUIRES +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/OBSOLETES +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/PROVIDES +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/CONFLICTS +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 INFO/CHANGELOG +-r--r--r-- 1 0 0 0 2017-01-05 00:00:00 CONTENTS.cpio diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.glib.env_vars b/tests/src/vfs/extfs/helpers-list/data/rpm.glib.env_vars new file mode 100644 index 0000000..a740c64 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.glib.env_vars @@ -0,0 +1,3 @@ +MC_TEST_RPM_REWRITE="$MC_TEST_EXTFS_DATA_DIR/rpm.rewrite.sh" + +MCFASTRPM= # disable "fast mode". diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.glib.input b/tests/src/vfs/extfs/helpers-list/data/rpm.glib.input new file mode 100644 index 0000000..23233d5 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.glib.input @@ -0,0 +1,264 @@ +# -*- mode: perl -*- +# vim: filetype=perl +# +# This "tags file" was created by running the following command: +# +# $ perl rpm2tags.pl glib2-2.46.2-4.el7.i686.rpm +# +# This file is used in our tests instead of the corresponding RPM file. +# This lets us run the tests on systems where 'rpm' is not installed. + +$tags = { + 'CONFLICTFLAGS:depflags' => '(none)', + 'P' => 'glib2', + 'FILELANGS' => '', + 'VERSION' => '2.46.2', + 'CHANGELOGTEXT' => '- Backport a patch to fix a segfault in file monitor code +- Resolves: #1375753', + 'POSTIN' => '/sbin/ldconfig +gio-querymodules-32 /usr/lib/gio/modules', + 'FILECONTEXTS' => '(none)', + 'TRIGGERTYPE' => '(none)', + 'GROUP' => 'System Environment/Libraries', + 'DESCRIPTION' => 'GLib is the low-level core library that forms the basis for projects +such as GTK+ and GNOME. It provides data structure handling for C, +portability wrappers, and interfaces for such runtime functionality +as an event loop, threads, dynamic loading, and an object system.', + 'NEVR' => 'glib2-2.46.2-4.el7', + 'NOPATCH' => '(none)', + 'SOURCEPACKAGE' => '(none)', + 'VERBOSE' => '(none)', + 'REQUIRENEVRS' => '/bin/sh', + 'TRIGGERSCRIPTFLAGS' => '(none)', + 'VENDOR' => 'CentOS', + 'DSAHEADER' => '(none)', + 'PRETRANSPROG' => '(none)', + 'PROVIDES' => 'glib2', + 'EXCLUSIVEOS' => '(none)', + 'NVRA' => 'glib2-2.46.2-4.el7.i686', + 'URL' => 'http://www.gtk.org', + 'DISTRIBUTION' => '(none)', + 'OBSOLETENEVRS' => '(none)', + 'O' => '(none)', + 'SIGPGP' => '8902150305005831e31824c6a8a7f4a80eb50108452c0ff9011ff528bd335c28b6dab1b1b783cde246b3ca8df41216124a66c86bb13d864fb68fcaffaff69a7c0638c20445cef0d8712b66430ef959b823b7c48253b46e9646fc15bb07024abcd160df2c42be0a3aed81b79ebce4779eee5510148683e10ae0da26959abe5c0df821b18a64a9d0f0c87e4be02c7644999c4dc735aaf36f88e652b12fe786a2fc22e9e9ecee1156681d8ac6f5b088b9593ea5fd0c1c62e14b5b1863d019ab04ab6008ab736e9643bd45fcab373a407b669c4efd4973d36b59411146bf21f1b1caca15ea36616ee510e0a57e5ac412fbc5094637f9bdb3bdb07cf0a5a84a560aeed5b92e99ef796025fdfe25a1dd1ea58e24f7218d2b2a76286c4859feb02c6b1221055a3ba4f61dd997c9a240a7127439c5184f18432da6c9588e5166a665d10d78673067fe006411171eee32e28ff548c1500376b4851691925f0d5fa855c62312d71c8444077a397cfda03e4e026ba065fef29bf5922fc68522e4a394e1e851049b965c9d1a680df8c94c41b703667ff84db43e45a1508916d76ac45928d00fe60643366484d5215cb9e08c4737f0c9d27c3f812fecd72aef6195e07badeab549f1f57adcd860e3e3ea7006faa32d63b9dc65d46a06c0f9ce6d15541e612b76bc2d61d154c18700fe92be41e78dff5679f7cfb69fb430edf873dd8a7adf9e4214ff6d09d814314be641408c073d3a17da631463a8ea6522', + 'PREINPROG' => '(none)', + 'ENHANCENAME' => '(none)', + 'INSTALLCOLOR' => '(none)', + 'OLDENHANCESNAME' => '(none)', + 'OBSOLETES' => '(none)', + 'ARCH' => 'i686', + 'RECOMMENDVERSION' => '(none)', + 'OBSOLETEFLAGS:depflags' => '(none)', + 'POSTUNPROG' => '/bin/sh', + 'POLICYTYPES' => '(none)', + 'RECOMMENDFLAGS' => '(none)', + 'CLASSDICT' => 'ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=1171bf18928201e1c6ec8e190e64303762a1f4d9, stripped', + 'CONFLICTS' => '(none)', + 'NOSOURCE' => '(none)', + 'EXCLUDEOS' => '(none)', + 'FILEMTIMES' => '1478898094', + 'DBINSTANCE' => '0', + 'ORIGBASENAMES' => '(none)', + 'ENHANCEVERSION' => '(none)', + 'FILEFLAGS' => '0', + 'FSCONTEXTS' => '(none)', + 'PROVIDEVERSION' => '2.46.2-4.el7', + 'FILEMD5S' => 'f64bee32e178161f3340ebd97e83193f9302ef5dc22a83608e3923bf450c847d', + 'BASENAMES' => 'gapplication', + 'POLICYTYPESINDEXES' => '(none)', + 'PROVIDENEVRS' => 'glib2 = 2.46.2-4.el7', + 'OS' => 'linux', + 'POSTINPROG' => '/bin/sh', + 'OLDSUGGESTSVERSION' => '(none)', + 'INSTALLTID' => '(none)', + 'PROVIDEFLAGS:depflags' => '=', + 'PREUNFLAGS' => '(none)', + 'OLDFILENAMES' => '(none)', + 'BUILDARCHS' => '(none)', + 'ORIGDIRNAMES' => '(none)', + 'SUGGESTFLAGS' => '(none)', + 'INSTFILENAMES' => '(none)', + 'FILEUSERNAME' => 'root', + 'CONFLICTNEVRS' => '(none)', + 'PROVIDENAME' => 'glib2', + 'LICENSE' => 'LGPLv2+', + 'OLDSUGGESTS' => '(none)', + 'RECOMMENDNAME' => '(none)', + 'PATCHESVERSION' => '(none)', + 'DISTTAG' => '(none)', + 'FILEDIGESTS' => 'f64bee32e178161f3340ebd97e83193f9302ef5dc22a83608e3923bf450c847d', + 'EXCLUSIVEARCH' => '(none)', + 'V' => '2.46.2', + 'OLDENHANCESVERSION' => '(none)', + 'POSTTRANSFLAGS' => '(none)', + 'SUPPLEMENTNEVRS' => '(none)', + 'XPM' => '(none)', + 'PREUN' => '(none)', + 'ORDERFLAGS' => '(none)', + 'ORIGFILENAMES' => '(none)', + 'GIF' => '(none)', + 'ORIGDIRINDEXES' => '(none)', + 'SOURCERPM' => 'glib2-2.46.2-4.el7.src.rpm', + 'OBSOLETEFLAGS' => '(none)', + 'PRETRANSFLAGS' => '(none)', + 'POSTUNFLAGS' => '(none)', + 'ICON' => '(none)', + 'PREINFLAGS' => '(none)', + 'PREIN' => '(none)', + 'DIRINDEXES' => '0', + 'HEADERI18NTABLE' => 'C', + 'POSTTRANS' => '(none)', + 'BUILDTIME:date' => 'Fri Nov 11 23:01:44 2016', + 'ORDERVERSION' => '(none)', + 'SUPPLEMENTNAME' => '(none)', + 'CHANGELOGTIME' => '1473854400', + 'FILECAPS' => '(none)', + 'RECOMMENDS' => '(none)', + 'PAYLOADFORMAT' => 'cpio', + 'RPMVERSION' => '4.11.3', + 'SIZE' => '11147850', + 'FILEINODES' => '1', + 'SUPPLEMENTVERSION' => '(none)', + 'N' => 'glib2', + 'PROVIDEFLAGS' => '8', + 'FILECOLORS' => '1', + 'REMOVETID' => '(none)', + 'INSTPREFIXES' => '(none)', + 'PATCHESFLAGS' => '(none)', + 'HDRID' => '60af3b40a992bea6f874a1ebde5a2abecfe729ab', + 'OBSOLETEVERSION' => '(none)', + 'EXCLUDEARCH' => '(none)', + 'ENHANCEFLAGS' => '(none)', + 'REQUIRENAME' => '/bin/sh', + 'LONGSIGSIZE' => '2374912', + 'C' => '(none)', + 'TRIGGERINDEX' => '(none)', + 'SOURCE' => '(none)', + 'SUGGESTNAME' => '(none)', + 'BUILDHOST' => 'c1bm.rdu2.centos.org', + 'VERIFYSCRIPT' => '(none)', + 'HEADERIMAGE' => '(none)', + 'POSTTRANSPROG' => '(none)', + 'SUPPLEMENTS' => '(none)', + 'FILELINKTOS' => '', + 'EVR' => '2.46.2-4.el7', + 'SUPPLEMENTFLAGS' => '(none)', + 'VCS' => '(none)', + 'SIGSIZE' => '2374912', + 'NAME' => 'glib2', + 'SIGGPG' => '(none)', + 'RECOMMENDNEVRS' => '(none)', + 'NVR' => 'glib2-2.46.2-4.el7', + 'TRIGGERCONDS' => '(none)', + 'OLDENHANCES' => '(none)', + 'VERIFYSCRIPTFLAGS' => '(none)', + 'EPOCH' => '(none)', + 'PLATFORM' => 'i686-redhat-linux-gnu', + 'REQUIREFLAGS:depflags' => '', + 'CONFLICTFLAGS' => '(none)', + 'POLICYFLAGS' => '(none)', + 'SOURCEPKGID' => '(none)', + 'CHANGELOGNAME' => 'Kalev Lember <klember@redhat.com> - 2.46.2-4', + 'BUGURL' => '(none)', + 'POSTINFLAGS' => '(none)', + 'RECONTEXTS' => '(none)', + 'INSTALLTIME' => '(none)', + 'HEADERCOLOR' => '1', + 'PATCH' => '(none)', + 'TRIGGERFLAGS' => '(none)', + 'PAYLOADFLAGS' => '2', + 'REQUIREVERSION' => '', + 'DEPENDSDICT' => '1375731723', + 'POLICIES' => '(none)', + 'ORDERNAME' => '(none)', + '_INFO' => 'Name : glib2 +Version : 2.46.2 +Release : 4.el7 +Architecture: i686 +Install Date: (not installed) +Group : System Environment/Libraries +Size : 11147850 +License : LGPLv2+ +Signature : RSA/SHA256, Sun Nov 20 19:53:28 2016, Key ID 24c6a8a7f4a80eb5 +Source RPM : glib2-2.46.2-4.el7.src.rpm +Build Date : Fri Nov 11 23:01:44 2016 +Build Host : c1bm.rdu2.centos.org +Relocations : (not relocatable) +Packager : CentOS BuildSystem <http://bugs.centos.org> +Vendor : CentOS +URL : http://www.gtk.org +Summary : A library of handy utility functions +Description : +GLib is the low-level core library that forms the basis for projects +such as GTK+ and GNOME. It provides data structure handling for C, +portability wrappers, and interfaces for such runtime functionality +as an event loop, threads, dynamic loading, and an object system. +', + 'LONGARCHIVESIZE' => '11168196', + 'OLDSUGGESTSFLAGS' => '(none)', + 'RELEASE' => '4.el7', + 'FILENLINKS' => '1', + 'NEVRA' => 'glib2-2.46.2-4.el7.i686', + 'POSTUN' => '/sbin/ldconfig +[ ! -x /usr/bin/gio-querymodules-32 ] || \\ +gio-querymodules-32 /usr/lib/gio/modules', + 'BUILDTIME' => '1478898104', + 'LONGFILESIZES' => '14936', + 'OLDSUGGESTSNAME' => '(none)', + 'POLICYNAMES' => '(none)', + 'PREFIXES' => '(none)', + 'TRIGGERSCRIPTS' => '(none)', + 'PUBKEYS' => '(none)', + 'SHA1HEADER' => '60af3b40a992bea6f874a1ebde5a2abecfe729ab', + 'SUGGESTVERSION' => '(none)', + 'E' => '(none)', + 'COOKIE' => '(none)', + 'FILEDIGESTALGO' => '8', + 'PRETRANS' => '(none)', + 'FILEGROUPNAME' => 'root', + 'DIRNAMES' => '/usr/bin/', + 'R' => '4.el7', + 'CONFLICTVERSION' => '(none)', + 'FILEMODES' => '33261', + 'TRIGGERVERSION' => '(none)', + 'HEADERREGIONS' => '(none)', + 'SUGGESTS' => '(none)', + 'OLDENHANCESFLAGS' => '(none)', + 'TRIGGERSCRIPTPROG' => '(none)', + 'FILEVERIFYFLAGS' => '4294967295', + 'FILEDEPENDSN' => '15', + 'FILEREQUIRE' => 'libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.0) libgio-2.0.so.0 libgobject-2.0.so.0 libgmodule-2.0.so.0 libz.so.1 libselinux.so.1 libresolv.so.2 libffi.so.6 libdl.so.2 libglib-2.0.so.0 libpthread.so.0 libc.so.6 rtld(GNU_HASH)', + 'FILERDEVS' => '0', + 'PKGID' => 'd8300bd6ae89fd3d471b823d4da55e5e', + 'FILEDEVICES' => '1', + 'FILENAMES' => '/usr/bin/gapplication', + 'ENHANCES' => '(none)', + 'EPOCHNUM' => '0', + 'VERIFYSCRIPTPROG' => '(none)', + 'PREUNPROG' => '(none)', + 'CONFLICTNAME' => '(none)', + 'FILESIZES' => '14936', + 'FILEPROVIDE' => '', + 'ARCHIVESIZE' => '11168196', + 'RSAHEADER' => '8902150305005831e31824c6a8a7f4a80eb50108cdf90ffc09656e816376ef5f32f146d136999f958f3e1338f21e0cac90bac97795d92c29301478a97f8b72afee0505896fa7c31195612542ba972da405323e3ec910ecc45350459220f39f2437a9ccbc3f9052b3d042d0e4a6d687f9be827b9c766d7fc680b2d99aebafe5134a54e64f0452be09b5592360d940ed3f3f3b14de7b0b124f510cfbdbd118e1638ee280edcbf6a9f916925f1b0bda0980935aedab1f9bfc342dceae437fa14736cdff2fe330ad37ab2719f6a3de84aaf3982a575a6f4980bc8a8e10a7ba51f53ed967a6c99638565147bbb0b2427c176ffbb8be5774b45f79388ff1407e6976608c3592784b971b791f0eca73a8a2ddafa70f656e3e565c9523aa1f4e78a56acdf39a91ebd90a481c0f02186f4bca965ecf889d075a87922830ed2c701d39ce627c362b222ed153c07b532a875744e1c54e9245c1044cf93520b208384d15413aba6b3425c457781862efd215a24c0c37c32c3ab29af785adfe418d5e86af53662163a9fed16dbac3ff4704120af67e0eb584a4f8766e510e6366eb5fcce0938253962b03972eca392e61f0f979f0dd7a554273d5ca463933033d67be82c7b31bcc2ef5c477907d3734aa596aefb7988a259d48d160413590243b56850eeab96ffa76d06b86faa0b6c9fd6fe43e902669444284e1947aa652673eb58214db9d19d0447de5bd036a45e9746ab4039f4dab7c73481a1bfb5a4d', + 'FILESTATES' => '(none)', + 'PACKAGER' => 'CentOS BuildSystem <http://bugs.centos.org>', + 'SUMMARY' => 'A library of handy utility functions', + 'OPTFLAGS' => '-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables', + 'OBSOLETENAME' => '(none)', + 'REQUIRES' => '/bin/sh', + 'FILECLASS' => 'ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=1171bf18928201e1c6ec8e190e64303762a1f4d9, stripped', + 'PAYLOADCOMPRESSOR' => 'xz', + 'HEADERSIGNATURES' => '(none)', + 'PATCHESNAME' => '(none)', + 'CHANGELOGTIME:date' => 'Wed Sep 14 15:00:00 2016', + 'ENHANCENEVRS' => '(none)', + 'SIGMD5' => 'd8300bd6ae89fd3d471b823d4da55e5e', + 'FILEDEPENDSX' => '0', + 'DISTURL' => '(none)', + 'REQUIREFLAGS' => '1280', + 'TRIGGERNAME' => '(none)', + 'LONGSIZE' => '11147850', + 'SUGGESTNEVRS' => '(none)' +} +; diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.glib.output b/tests/src/vfs/extfs/helpers-list/data/rpm.glib.output new file mode 100644 index 0000000..ab012ac --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.glib.output @@ -0,0 +1,27 @@ +-r--r--r-- 1 0 0 868 2016-11-11 00:00:00 HEADER +-r-xr-xr-x 1 0 0 0 2016-11-11 00:00:00 INSTALL +-r-xr-xr-x 1 0 0 0 2016-11-11 00:00:00 UPGRADE +dr-xr-xr-x 3 0 0 0 2016-11-11 00:00:00 INFO +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/NAME-VERSION-RELEASE +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/GROUP +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/BUILDHOST +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SOURCERPM +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/BUILDTIME +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/RPMVERSION +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/OS +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SIZE +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/VENDOR +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/DESCRIPTION +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SUMMARY +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SCRIPTS/POSTIN +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SCRIPTS/POSTUN +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SCRIPTS/ALL +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SCRIPTS/POSTINPROG +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/SCRIPTS/POSTUNPROG +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/PACKAGER +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/URL +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/LICENSE +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/REQUIRES +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/PROVIDES +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 INFO/CHANGELOG +-r--r--r-- 1 0 0 0 2016-11-11 00:00:00 CONTENTS.cpio diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.rewrite.sh b/tests/src/vfs/extfs/helpers-list/data/rpm.rewrite.sh new file mode 100644 index 0000000..08867fa --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/rpm.rewrite.sh @@ -0,0 +1,52 @@ +# +# This file gets source'd into our rpm helper. +# +# It imitates the 'rpm' program by overriding a few functions. +# + +# The tags file. +TAGSF="$MC_TEST_EXTFS_INPUT" + +. "$MC_TEST_EXTFS_CONFIG_SH" # Gain access to $PERL. + +# ---------------------------------------------------------------------------- + +# +# Imitates 'rpm -qp --qf <TEMPLATE> <PACKAGE_FILE>'. +# +# (It ignores <PACKAGE_FILE>, using our input instead.) +# +# E.g.: given "Name: %{NAME} Ver: %{VERSION}", +# prints "Name: php-pear-Twig Ver: 1.0.0". +# +rpm_qf() +{ + $PERL -w -e ' + $tagsf = $ARGV[0]; + $tmplt = $ARGV[1]; + + do $tagsf or die("$tagsf: $!"); + $tmplt =~ s/\\n/\n/g; + $tmplt =~ s/%\{(.*?)\}/ + (my $tag = $1) =~ s,^RPMTAG_,,; # Tag names may be specified with or without this prefix. + exists $tags->{$tag} ? $tags->{$tag} : "(none)" + /eg; + print $tmplt; + ' \ + "$TAGSF" "$1" +} +RPM_QUERY_FMT=rpm_qf # Tell the helper to use it instead of the 'rpm' binary. + +# ---------------------------------------------------------------------------- + +# +# Overrides helper's. +# +# @Mock +# +mcrpmfs_getDesription() +{ + rpm_qf "%{_INFO}" +} + +# ---------------------------------------------------------------------------- diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.README b/tests/src/vfs/extfs/helpers-list/data/u7z.README new file mode 100644 index 0000000..45ae720 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.README @@ -0,0 +1,26 @@ + +We have 4 inputs: + +- u7z.simple.input + + Simplest input: no abnormalities. + (One line has a filename with spaces in it.) + +- u7z.missing-date.input + + Date field is missing (see #2707). + +- u7z.missing-size-and-date.input + + Size field is missing, and in some rows the date is missing too (see #2707). + +- u7z.complex.input + + Downloaded from #2707. It's 'list.txt' plus three bottom lines from + 'listing2.txt'. It demonstrates all the above: missing date, missing + uncompressed and compressed size. + + +Output files must be constant. Therefore in our '*.env_var' files we +define a command that sets missing dates to some fixed date (instead of +being the archive's date). diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.complex.env_vars b/tests/src/vfs/extfs/helpers-list/data/u7z.complex.env_vars new file mode 100644 index 0000000..4521908 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.complex.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_U7Z_STAT="echo 2007-07-07 07:07:07" diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.complex.input b/tests/src/vfs/extfs/helpers-list/data/u7z.complex.input new file mode 100644 index 0000000..4842ffd --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.complex.input @@ -0,0 +1,74 @@ + +7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 +p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) + +Listing archive: Geekbench-2.2.3-WindowsSetup.exe + +-- +Path = Geekbench-2.2.3-WindowsSetup.exe +Type = PE +CPU = x86 +Characteristics = Executable 32-bit NoRelocs NoLineNums NoLocalSyms +Created = 2009-12-06 03:50:52 +Physical Size = 5649208 +Headers Size = 1024 +Checksum = 5651922 +Image Size = 327680 +Section Alignment = 4096 +File Alignment = 512 +Code Size = 24064 +Initialized Data Size = 164864 +Uninitialized Data Size = 1024 +Linker Version = 6.0 +OS Version = 4.0 +Image Version = 6.0 +Subsystem Version = 4.0 +Subsystem = Windows GUI +DLL Characteristics = TerminalServerAware +Stack Reserve = 1048576 +Stack Commit = 4096 +Heap Reserve = 1048576 +Heap Commit = 4096 +Image Base = 4194304 +---- +Path = [0] +Size = 5519272 +Packed Size = 5519272 +Offset = 123904 +-- +Path = [0] +Type = Nsis +Method = Deflate +Solid = - + + Date Time Attr Size Compressed Name +------------------- ----- ------------ ------------ ------------------------ + ..... 8005 $PLUGINSDIR/InstallOptions.dll + ..... 3328 $PLUGINSDIR/StartMenu.dll +2007-11-15 01:12:38 ..... 134 $PLUGINSDIR/ioSpecial.ini +2003-09-24 00:34:00 ..... 1886 $PLUGINSDIR/modern-wizard.bmp +2011-11-03 02:33:04 ..... 1178084 Geekbench22.exe +2011-11-03 02:33:04 ..... 101652 geekbench.exe +2011-11-03 02:33:06 ..... 1058731 geekbench_x86_32.exe +2011-11-03 02:33:06 ..... 1192155 geekbench_x86_64.exe +2011-11-03 02:33:04 ..... 445814 cpuidsdk.dll +2011-11-03 02:33:04 ..... 469920 cpuidsdk64.dll +2011-11-03 02:33:04 ..... 737580 geekbench.plar +2011-11-03 02:23:16 ..... 4014 $_OUTDIR/html/ui/bg-repeat.gif +2011-11-03 02:23:16 ..... 12817 12817 $_OUTDIR/html/ui/callout-bg-bottom.gif +2011-11-03 02:23:16 ..... 14648 $_OUTDIR/html/ui/callout-bg-top.gif +2011-11-03 02:23:16 ..... 120 $_OUTDIR/html/ui/graph-background.png +2011-11-03 02:23:16 ..... 861 861 $_OUTDIR/html/ui/heading-bg-left.gif +2011-11-03 02:23:16 ..... 9854 $_OUTDIR/html/ui/heading-bg.gif +2011-11-03 02:23:16 ..... 30401 $_OUTDIR/html/ui/logo.gif +2011-11-03 02:23:16 ..... 1431 1431 $_OUTDIR/html/ui/nav-arrow-down.gif +2011-11-03 02:23:16 ..... 1446 1446 $_OUTDIR/html/ui/nav-arrow-up.gif +2011-11-03 02:23:16 ..... 1425 1425 $_OUTDIR/html/ui/nav-arrows-bg.gif +2011-11-03 02:23:16 ..... 3841 $_OUTDIR/html/ui/table-wrapper-bg-repeat-x.gif +2011-11-03 02:23:16 ..... 2885 2885 $_OUTDIR/html/ui/table-wrapper-bg-repeat.gif +2011-11-03 02:23:16 ..... 142162 142162 $_OUTDIR/ux/splash-screen.png +2006-08-11 23:49:28 ..... 28016 $PLUGINSDIR/splash.bmp + ..... 6144 $PLUGINSDIR/AdvSplash.dll + ..... plugins/shared memory/uninstall.exe +------------------- ----- ------------ ------------ ------------------------ + 163027 5423194 27 files, 0 folders diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.complex.output b/tests/src/vfs/extfs/helpers-list/data/u7z.complex.output new file mode 100644 index 0000000..93012b1 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.complex.output @@ -0,0 +1,27 @@ +-rw-r--r-- 1 <<uid>> <<gid>> 6144 2007-07-07 07:07:07 $PLUGINSDIR/AdvSplash.dll +-rw-r--r-- 1 <<uid>> <<gid>> 8005 2007-07-07 07:07:07 $PLUGINSDIR/InstallOptions.dll +-rw-r--r-- 1 <<uid>> <<gid>> 3328 2007-07-07 07:07:07 $PLUGINSDIR/StartMenu.dll +-rw-r--r-- 1 <<uid>> <<gid>> 134 2007-11-15 01:12:38 $PLUGINSDIR/ioSpecial.ini +-rw-r--r-- 1 <<uid>> <<gid>> 1886 2003-09-24 00:34:00 $PLUGINSDIR/modern-wizard.bmp +-rw-r--r-- 1 <<uid>> <<gid>> 28016 2006-08-11 23:49:28 $PLUGINSDIR/splash.bmp +-rw-r--r-- 1 <<uid>> <<gid>> 4014 2011-11-03 02:23:16 $_OUTDIR/html/ui/bg-repeat.gif +-rw-r--r-- 1 <<uid>> <<gid>> 12817 2011-11-03 02:23:16 $_OUTDIR/html/ui/callout-bg-bottom.gif +-rw-r--r-- 1 <<uid>> <<gid>> 14648 2011-11-03 02:23:16 $_OUTDIR/html/ui/callout-bg-top.gif +-rw-r--r-- 1 <<uid>> <<gid>> 120 2011-11-03 02:23:16 $_OUTDIR/html/ui/graph-background.png +-rw-r--r-- 1 <<uid>> <<gid>> 861 2011-11-03 02:23:16 $_OUTDIR/html/ui/heading-bg-left.gif +-rw-r--r-- 1 <<uid>> <<gid>> 9854 2011-11-03 02:23:16 $_OUTDIR/html/ui/heading-bg.gif +-rw-r--r-- 1 <<uid>> <<gid>> 30401 2011-11-03 02:23:16 $_OUTDIR/html/ui/logo.gif +-rw-r--r-- 1 <<uid>> <<gid>> 1431 2011-11-03 02:23:16 $_OUTDIR/html/ui/nav-arrow-down.gif +-rw-r--r-- 1 <<uid>> <<gid>> 1446 2011-11-03 02:23:16 $_OUTDIR/html/ui/nav-arrow-up.gif +-rw-r--r-- 1 <<uid>> <<gid>> 1425 2011-11-03 02:23:16 $_OUTDIR/html/ui/nav-arrows-bg.gif +-rw-r--r-- 1 <<uid>> <<gid>> 3841 2011-11-03 02:23:16 $_OUTDIR/html/ui/table-wrapper-bg-repeat-x.gif +-rw-r--r-- 1 <<uid>> <<gid>> 2885 2011-11-03 02:23:16 $_OUTDIR/html/ui/table-wrapper-bg-repeat.gif +-rw-r--r-- 1 <<uid>> <<gid>> 142162 2011-11-03 02:23:16 $_OUTDIR/ux/splash-screen.png +-rw-r--r-- 1 <<uid>> <<gid>> 1178084 2011-11-03 02:33:04 Geekbench22.exe +-rw-r--r-- 1 <<uid>> <<gid>> 445814 2011-11-03 02:33:04 cpuidsdk.dll +-rw-r--r-- 1 <<uid>> <<gid>> 469920 2011-11-03 02:33:04 cpuidsdk64.dll +-rw-r--r-- 1 <<uid>> <<gid>> 101652 2011-11-03 02:33:04 geekbench.exe +-rw-r--r-- 1 <<uid>> <<gid>> 737580 2011-11-03 02:33:04 geekbench.plar +-rw-r--r-- 1 <<uid>> <<gid>> 1058731 2011-11-03 02:33:06 geekbench_x86_32.exe +-rw-r--r-- 1 <<uid>> <<gid>> 1192155 2011-11-03 02:33:06 geekbench_x86_64.exe +-rw-r--r-- 1 <<uid>> <<gid>> 0 2007-07-07 07:07:07 plugins/shared memory/uninstall.exe diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.env_vars b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.env_vars new file mode 100644 index 0000000..4521908 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_U7Z_STAT="echo 2007-07-07 07:07:07" diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.input b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.input new file mode 100644 index 0000000..a8156e2 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.input @@ -0,0 +1,5 @@ + Date Time Attr Size Compressed Name +------------------- ----- ------------ ------------ ------------------------ + D.... 0 0 $PLUGINSDIR + ..... 11024 8005 $PLUGINSDIR/InstallOptions.dll +2007-11-15 01:12:38 ..... 235 134 $PLUGINSDIR/ioSpecial.ini diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.output b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.output new file mode 100644 index 0000000..9fea879 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-date.output @@ -0,0 +1,3 @@ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2007-07-07 07:07:07 $PLUGINSDIR +-rw-r--r-- 1 <<uid>> <<gid>> 11024 2007-07-07 07:07:07 $PLUGINSDIR/InstallOptions.dll +-rw-r--r-- 1 <<uid>> <<gid>> 235 2007-11-15 01:12:38 $PLUGINSDIR/ioSpecial.ini diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.env_vars b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.env_vars new file mode 100644 index 0000000..4521908 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_U7Z_STAT="echo 2007-07-07 07:07:07" diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.input b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.input new file mode 100644 index 0000000..f9ee9b5 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.input @@ -0,0 +1,11 @@ + Date Time Attr Size Compressed Name +------------------- ----- ------------ ------------ ------------------------ +2011-11-01 01:33:04 ..... 469920 cpuidsdk64.dll +2011-11-02 02:23:16 D.... 0 $_OUTDIR/html/ui +2011-11-03 03:33:04 ..... test.dll +2011-11-04 04:23:16 D.... test + ..... 17770090 no-date-cpuidsdk64.dll + D.... 0 no-date-$_OUTDIR/html/ui + ..... no-date-test.dll + D.... no-date-test +2011-11-05 05:23:16 ..... 17897 12817 $_OUTDIR/html/ui/callout-bg-bottom.gif diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.output b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.output new file mode 100644 index 0000000..260b705 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.missing-size-and-date.output @@ -0,0 +1,9 @@ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2011-11-02 02:23:16 $_OUTDIR/html/ui +-rw-r--r-- 1 <<uid>> <<gid>> 17897 2011-11-05 05:23:16 $_OUTDIR/html/ui/callout-bg-bottom.gif +-rw-r--r-- 1 <<uid>> <<gid>> 469920 2011-11-01 01:33:04 cpuidsdk64.dll +drwxr-xr-x 1 <<uid>> <<gid>> 0 2007-07-07 07:07:07 no-date-$_OUTDIR/html/ui +-rw-r--r-- 1 <<uid>> <<gid>> 17770090 2007-07-07 07:07:07 no-date-cpuidsdk64.dll +drwxr-xr-x 1 <<uid>> <<gid>> 0 2007-07-07 07:07:07 no-date-test +-rw-r--r-- 1 <<uid>> <<gid>> 0 2007-07-07 07:07:07 no-date-test.dll +drwxr-xr-x 1 <<uid>> <<gid>> 0 2011-11-04 04:23:16 test +-rw-r--r-- 1 <<uid>> <<gid>> 0 2011-11-03 03:33:04 test.dll diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.simple.input b/tests/src/vfs/extfs/helpers-list/data/u7z.simple.input new file mode 100644 index 0000000..69835fb --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.simple.input @@ -0,0 +1,64 @@ + +7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 +p7zip Version 16.02 (locale=en_GB.utf8,Utf16=on,HugeFiles=on,32 bits,1 CPU Intel(R) Pentium(R) 4 CPU 1.80GHz (F27),ASM) + +Scanning the drive for archives: +1 file, 7597 bytes (8 KiB) + +Listing archive: all.7z + +-- +Path = all.7z +Type = 7z +Physical Size = 7597 +Headers Size = 882 +Method = LZMA2:24k +Solid = + +Blocks = 1 + + Date Time Attr Size Compressed Name +------------------- ----- ------------ ------------ ------------------------ +2016-10-26 08:35:48 D.... 0 0 x +2009-05-03 21:01:33 D.... 0 0 x/etc +2009-05-03 21:02:13 D.... 0 0 x/etc/X11 +2006-05-02 10:12:38 D.... 0 0 x/etc/X11/xinit +2005-09-24 02:11:27 D.... 0 0 x/etc/X11/xinit/Xclients.d +2005-12-04 19:15:47 D.... 0 0 x/etc/X11/xinit/xinitrc.d +2009-05-03 21:07:38 D.... 0 0 x/etc/X11/xkb +2016-12-18 22:30:42 ....A 0 0 with spaces.txt +2002-08-01 23:21:47 ....A 143 6715 alert +2004-05-19 20:42:38 ....A 363 atime +2005-11-09 01:36:31 ....A 71 fv +2003-10-18 20:37:07 ....A 59 fvd +2006-10-22 22:26:05 ....A 83 magdev +2006-10-19 16:56:16 ....A 72 maghelp +2004-03-14 12:25:27 ....A 37 ml +2004-07-06 18:02:03 ....A 28 modernize +2004-04-02 03:05:30 ....A 138 pxml +2004-12-08 20:42:44 ....A 725 s +2002-07-29 11:58:15 ....A 803 ser +2004-08-04 14:29:00 ....A 40 title +2002-08-01 23:21:41 ....A 156 ualert +2004-06-28 16:49:03 ....A 17 ucopy +2004-06-28 16:49:10 ....A 18 upaste +2003-08-25 19:08:11 ....A 2146 utf8_to_cp1255.perl +2006-05-16 21:00:06 ....A 63 utf8_to_cp1255.sh +2003-08-11 17:40:25 ....A 846 vimspell.sh +2002-03-28 01:20:12 ....A 819 vimspell.txt +2005-11-14 04:41:01 ....A 233 vp +2010-01-31 23:04:48 ....A 340 x/.xsession +2005-09-24 02:11:27 ....A 1856 x/etc/X11/xinit/Xclients +2005-09-24 02:11:27 ....A 1270 x/etc/X11/xinit/xinitrc +2005-09-24 02:11:27 ....A 2161 x/etc/X11/xinit/xinitrc-common +2005-09-24 02:11:27 ....A 1579 x/etc/X11/xinit/xinitrc.d/xinput.sh +2005-09-02 17:36:13 ....A 81 x/etc/X11/xinit/xinitrc.d/xmbind.sh +2009-05-03 21:07:38 ....A 71 x/etc/X11/xkb/note.txt +2003-08-03 01:46:40 ....A 489 x/setxkb +2003-03-09 14:08:01 ....A 142 x/setxkb2 +2002-11-08 13:28:37 ....A 158 x/x +2006-12-07 11:30:57 ....A 3746 x/xinitrc +2006-12-07 11:28:18 ....A 42 x/xs +2003-02-17 15:11:46 ....A 58 xcopy +2003-02-17 15:10:46 ....A 58 xpaste +------------------- ----- ------------ ------------ ------------------------ +2016-12-18 22:30:42 18911 6715 35 files, 7 folders diff --git a/tests/src/vfs/extfs/helpers-list/data/u7z.simple.output b/tests/src/vfs/extfs/helpers-list/data/u7z.simple.output new file mode 100644 index 0000000..009d8fd --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/u7z.simple.output @@ -0,0 +1,42 @@ +-rw-r--r-- 1 <<uid>> <<gid>> 143 2002-08-01 23:21:47 alert +-rw-r--r-- 1 <<uid>> <<gid>> 363 2004-05-19 20:42:38 atime +-rw-r--r-- 1 <<uid>> <<gid>> 71 2005-11-09 01:36:31 fv +-rw-r--r-- 1 <<uid>> <<gid>> 59 2003-10-18 20:37:07 fvd +-rw-r--r-- 1 <<uid>> <<gid>> 83 2006-10-22 22:26:05 magdev +-rw-r--r-- 1 <<uid>> <<gid>> 72 2006-10-19 16:56:16 maghelp +-rw-r--r-- 1 <<uid>> <<gid>> 37 2004-03-14 12:25:27 ml +-rw-r--r-- 1 <<uid>> <<gid>> 28 2004-07-06 18:02:03 modernize +-rw-r--r-- 1 <<uid>> <<gid>> 138 2004-04-02 03:05:30 pxml +-rw-r--r-- 1 <<uid>> <<gid>> 725 2004-12-08 20:42:44 s +-rw-r--r-- 1 <<uid>> <<gid>> 803 2002-07-29 11:58:15 ser +-rw-r--r-- 1 <<uid>> <<gid>> 40 2004-08-04 14:29:00 title +-rw-r--r-- 1 <<uid>> <<gid>> 156 2002-08-01 23:21:41 ualert +-rw-r--r-- 1 <<uid>> <<gid>> 17 2004-06-28 16:49:03 ucopy +-rw-r--r-- 1 <<uid>> <<gid>> 18 2004-06-28 16:49:10 upaste +-rw-r--r-- 1 <<uid>> <<gid>> 2146 2003-08-25 19:08:11 utf8_to_cp1255.perl +-rw-r--r-- 1 <<uid>> <<gid>> 63 2006-05-16 21:00:06 utf8_to_cp1255.sh +-rw-r--r-- 1 <<uid>> <<gid>> 846 2003-08-11 17:40:25 vimspell.sh +-rw-r--r-- 1 <<uid>> <<gid>> 819 2002-03-28 01:20:12 vimspell.txt +-rw-r--r-- 1 <<uid>> <<gid>> 233 2005-11-14 04:41:01 vp +-rw-r--r-- 1 <<uid>> <<gid>> 0 2016-12-18 22:30:42 with spaces.txt +drwxr-xr-x 1 <<uid>> <<gid>> 0 2016-10-26 08:35:48 x +-rw-r--r-- 1 <<uid>> <<gid>> 340 2010-01-31 23:04:48 x/.xsession +drwxr-xr-x 1 <<uid>> <<gid>> 0 2009-05-03 21:01:33 x/etc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2009-05-03 21:02:13 x/etc/X11 +drwxr-xr-x 1 <<uid>> <<gid>> 0 2006-05-02 10:12:38 x/etc/X11/xinit +-rw-r--r-- 1 <<uid>> <<gid>> 1856 2005-09-24 02:11:27 x/etc/X11/xinit/Xclients +drwxr-xr-x 1 <<uid>> <<gid>> 0 2005-09-24 02:11:27 x/etc/X11/xinit/Xclients.d +-rw-r--r-- 1 <<uid>> <<gid>> 1270 2005-09-24 02:11:27 x/etc/X11/xinit/xinitrc +-rw-r--r-- 1 <<uid>> <<gid>> 2161 2005-09-24 02:11:27 x/etc/X11/xinit/xinitrc-common +drwxr-xr-x 1 <<uid>> <<gid>> 0 2005-12-04 19:15:47 x/etc/X11/xinit/xinitrc.d +-rw-r--r-- 1 <<uid>> <<gid>> 1579 2005-09-24 02:11:27 x/etc/X11/xinit/xinitrc.d/xinput.sh +-rw-r--r-- 1 <<uid>> <<gid>> 81 2005-09-02 17:36:13 x/etc/X11/xinit/xinitrc.d/xmbind.sh +drwxr-xr-x 1 <<uid>> <<gid>> 0 2009-05-03 21:07:38 x/etc/X11/xkb +-rw-r--r-- 1 <<uid>> <<gid>> 71 2009-05-03 21:07:38 x/etc/X11/xkb/note.txt +-rw-r--r-- 1 <<uid>> <<gid>> 489 2003-08-03 01:46:40 x/setxkb +-rw-r--r-- 1 <<uid>> <<gid>> 142 2003-03-09 14:08:01 x/setxkb2 +-rw-r--r-- 1 <<uid>> <<gid>> 158 2002-11-08 13:28:37 x/x +-rw-r--r-- 1 <<uid>> <<gid>> 3746 2006-12-07 11:30:57 x/xinitrc +-rw-r--r-- 1 <<uid>> <<gid>> 42 2006-12-07 11:28:18 x/xs +-rw-r--r-- 1 <<uid>> <<gid>> 58 2003-02-17 15:11:46 xcopy +-rw-r--r-- 1 <<uid>> <<gid>> 58 2003-02-17 15:10:46 xpaste diff --git a/tests/src/vfs/extfs/helpers-list/data/uace.README b/tests/src/vfs/extfs/helpers-list/data/uace.README new file mode 100644 index 0000000..1f53df0 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uace.README @@ -0,0 +1,15 @@ + +The input file was created by doing "unace l test.ace" on an archive +created with WinAce (run under Wine; there's no native Linux ACE packer). +One date was then changed by hand to "17.04.94" to test the 1900/2000 +boundary. + +Known issues with our uace: + +- It doesn't support filenames with spaces. (For the benefit of those + wishing to fix this, the input file intentionally contains such files.) + +- It reports '0' gid. + +- See note in the source about using Debian's 'unace-nonfree' package, + not 'unace'. diff --git a/tests/src/vfs/extfs/helpers-list/data/uace.input b/tests/src/vfs/extfs/helpers-list/data/uace.input new file mode 100644 index 0000000..af722db --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uace.input @@ -0,0 +1,148 @@ + +UNACE v2.5 Copyright by ACE Compression Software May 7 2015 03:22:29 + +processing archive /..ive_c/Program Files/test.ace +created on 11.12.2016 with ver 2.0 by +*UNREGISTERED VERSION* +Contents of archive test.ace + + Date Time Packed Size Ratio File + +08.11.07 02:06 168 256 65% WinAce/find.add +08.11.07 02:06 1796 5655 31% WinAce/winace.cnt +08.11.07 02:06 580 1943 29% WinAce/winace_enu.cnt +17.04.94 02:06 13968 31232 44% WinAce/arcext.de +08.11.07 02:06 4484 26624 16% WinAce/sxuninst.de +08.11.07 02:06 528 883 59% WinAce/file_id.diz +08.11.07 02:06 463204 1446400 32% WinAce/acetools.dll +08.11.07 02:06 137536 235008 58% WinAce/acev2.dll +08.11.07 02:06 59604 166912 35% WinAce/arcext.dll +08.11.07 02:06 8852 61440 14% WinAce/arcicons.dll +08.11.07 02:06 31868 65536 48% WinAce/cabinet.dll +08.11.07 02:06 327564 335360 97% WinAce/find.dll +08.11.07 02:06 53588 119808 44% WinAce/sfxlib.dll +23.10.07 01:06 74148 160256 46% WinAce/unrar3.dll +08.11.07 02:06 3080 16384 18% WinAce/zficons.dll +08.11.07 02:06 748 1938 38% WinAce/license.doc +08.11.07 02:06 3208 11895 27% WinAce/technote.doc +08.11.07 02:06 75240 439296 17% WinAce/acetools.enu +08.11.07 02:06 6800 48128 14% WinAce/find.enu +08.11.07 02:06 39852 104960 38% WinAce/order.enu +08.11.07 02:06 1068 29696 3% WinAce/wb_setup.enu +08.11.07 02:06 82952 594432 14% WinAce/winace.enu +08.11.07 02:06 30148 36864 81% WinAce/ccrypt.exe +08.11.07 02:06 35072 93696 37% WinAce/helpinst.exe +11.12.16 22:17 74828 88092 84% Internet Explorer/iexplore.exe +08.11.07 02:06 242496 252928 95% WinAce/order.exe +08.11.07 02:06 24744 165376 15% WinAce/sxuninst.exe +08.11.07 02:06 146988 401408 36% WinAce/wb_setup.exe +08.11.07 02:06 1169036 1207296 96% WinAce/winace.exe +08.11.07 02:06 504140 839956 60% WinAce/winace.hlp +08.11.07 02:06 98852 137589 71% WinAce/winace_enu.hlp +08.11.07 02:06 4896 20278 24% WinAce/menuimg.imf +08.11.07 02:06 6232 20278 30% WinAce/menu256.imf +08.11.07 02:06 12652 77878 16% WinAce/tool256.imf +08.11.07 02:06 10144 77878 13% WinAce/toolimg.imf +08.11.07 02:06 6460 80464 8% WinAce/menuimg.img +08.11.07 02:06 15012 321254 4% WinAce/toolimg.img +08.11.07 02:06 208 356 58% WinAce/outbar.ini +08.11.07 02:06 320 1304 24% WinAce/products.ini +08.11.07 02:06 256 409 62% WinAce/sfxopt.ini +08.11.07 02:06 912 4215 21% WinAce/sxuninst.ini +08.11.07 02:06 124 155 80% WinAce/toolimg.ini +08.11.07 02:06 476 854 55% WinAce/volume.ini +08.11.07 02:06 156 235 66% WinAce/order.ord +08.11.07 02:06 298 298 100% WinAce/html/images/abort.png +08.11.07 02:06 128 211 60% WinAce/html/images/added.png +08.11.07 02:06 156 230 67% WinAce/html/images/back.png +08.11.07 02:06 104 184 56% WinAce/html/images/backimg.png +08.11.07 02:06 8184 8573 95% WinAce/html/images/banner_bg.png +08.11.07 02:06 724 1488 48% WinAce/html/images/bar.png +08.11.07 02:06 1148 1846 62% WinAce/html/images/bar1.png +08.11.07 02:06 100 191 52% WinAce/html/images/bg2.png +08.11.07 02:06 224 1001 22% WinAce/html/images/bug.png +08.11.07 02:06 124 223 55% WinAce/html/images/check.png +08.11.07 02:06 22632 23049 98% WinAce/html/images/compare.png +08.11.07 02:06 220 278 79% WinAce/html/images/contact.png +08.11.07 02:06 32 278 11% WinAce/html/images/email.png +08.11.07 02:06 336 385 87% WinAce/html/images/fillout.png +08.11.07 02:06 636 943 67% WinAce/html/images/fwd.png +08.11.07 02:06 64 176 36% WinAce/html/images/infoback.png +08.11.07 02:06 88 145 60% WinAce/html/images/line.png +08.11.07 02:06 7852 7911 99% WinAce/html/images/logo.png +08.11.07 02:06 5020 5595 89% WinAce/html/images/logotop.png +08.11.07 02:06 1928 2551 75% WinAce/html/images/logoarc.png +08.11.07 02:06 756 1108 68% WinAce/html/images/master.png +08.11.07 02:06 372 1090 34% WinAce/html/images/new.png +08.11.07 02:06 140 235 59% WinAce/html/images/nexttip.png +08.11.07 02:06 64 211 30% WinAce/html/images/plus.png +08.11.07 02:06 416 1015 41% WinAce/html/images/preview.png +08.11.07 02:06 164 960 17% WinAce/html/images/redo.png +08.11.07 02:06 124 201 61% WinAce/html/images/side.png +08.11.07 02:06 316 382 82% WinAce/html/images/sysinfo.png +08.11.07 02:06 448 482 92% WinAce/html/images/tip.png +08.11.07 02:06 276 345 80% WinAce/html/images/tip1.png +08.11.07 02:06 520 1264 41% WinAce/html/images/top.png +08.11.07 02:06 300 993 30% WinAce/html/images/top_r.png +08.11.07 02:06 112 992 11% WinAce/html/images/top_l.png +08.11.07 02:06 212 1012 20% WinAce/html/images/visa.png +08.11.07 02:06 76 132 57% WinAce/html/images/vline.png +08.11.07 02:06 188 263 71% WinAce/html/images/w.png +08.11.07 02:06 424 1186 35% WinAce/html/images/waceico.png +08.11.07 02:06 4236 4824 87% WinAce/html/images/winacelogo.png +08.11.07 02:06 332 406 81% WinAce/html/images/winace.png +08.11.07 02:06 61840 64933 95% WinAce/sfxfiles/dos32.sfx +08.11.07 02:06 40800 79937 51% WinAce/sfxfiles/os2cl.sfx +08.11.07 02:06 57588 68877 83% WinAce/sfxfiles/wgui_hu.sfx +08.11.07 02:06 7540 68834 11% WinAce/sfxfiles/wgui_plk.sfx +08.11.07 02:06 6660 68824 9% WinAce/sfxfiles/wgui_cz.sfx +08.11.07 02:06 6748 68781 9% WinAce/sfxfiles/wgui_fr.sfx +08.11.07 02:06 6964 68692 10% WinAce/sfxfiles/wgui_nld.sfx +08.11.07 02:06 3636 68621 5% WinAce/sfxfiles/wgui_it.sfx +08.11.07 02:06 6824 68478 10% WinAce/sfxfiles/wgui_de.sfx +08.11.07 02:06 6052 68215 8% WinAce/sfxfiles/wgui_en.sfx +08.11.07 02:06 35912 46936 76% WinAce/sfxfiles/win32cl.sfx +08.11.07 02:06 1020 2249 45% WinAce/html/english/infotip.txt +08.11.07 02:06 984 2234 44% WinAce/html/deutsch/infotip.txt +08.11.07 02:06 476 960 49% WinAce/infodeu.txt +08.11.07 02:06 32 256 12% WinAce/language.txt +08.11.07 02:06 920 3138 29% WinAce/register.txt +08.11.07 02:06 424 1117 38% WinAce/regsites.txt +08.11.07 02:06 344 960 35% WinAce/techinfo.txt +08.11.07 02:06 44 47 93% WinAce/winace.url +08.11.07 02:06 1260 3538 35% WinAce/html/english/av.whf +08.11.07 02:06 40 3538 1% WinAce/html/deutsch/av.whf +08.11.07 02:06 1564 13100 11% WinAce/html/deutsch/commands.whf +08.11.07 02:06 1100 10299 10% WinAce/html/english/commands.whf +08.11.07 02:06 200 1157 17% WinAce/html/deutsch/compare.whf +08.11.07 02:06 48 1155 4% WinAce/html/english/compare.whf +08.11.07 02:06 13200 85468 15% WinAce/html/deutsch/history.whf +08.11.07 02:06 10804 69151 15% WinAce/html/english/history.whf +08.11.07 02:06 1532 10208 15% WinAce/html/deutsch/info.whf +08.11.07 02:06 1128 7971 14% WinAce/html/english/info.whf +08.11.07 02:06 584 3193 18% WinAce/html/deutsch/infotip.whf +08.11.07 02:06 272 2518 10% WinAce/html/english/infotip.whf +08.11.07 02:06 336 2271 14% WinAce/html/deutsch/menu.whf +08.11.07 02:06 116 2239 5% WinAce/html/english/menu.whf +08.11.07 02:06 140 1256 11% WinAce/html/english/menuex.whf +08.11.07 02:06 100 1245 8% WinAce/html/deutsch/menuex.whf +08.11.07 02:06 264 1945 13% WinAce/html/english/nav.whf +08.11.07 02:06 88 1930 4% WinAce/html/deutsch/nav.whf +08.11.07 02:06 1792 12471 14% WinAce/html/deutsch/order.whf +08.11.07 02:06 1480 12426 11% WinAce/html/english/order.whf +08.11.07 02:06 460 2158 21% WinAce/html/deutsch/share.whf +08.11.07 02:06 332 1745 19% WinAce/html/english/share.whf +08.11.07 02:06 376 1547 24% WinAce/html/english/system.whf +08.11.07 02:06 220 1462 15% WinAce/html/deutsch/system.whf +08.11.07 02:06 300 2282 13% WinAce/html/english/top.whf +08.11.07 02:06 68 2256 3% WinAce/html/deutsch/top.whf +08.11.07 02:06 176 602 29% WinAce/html/deutsch/usage.whf +08.11.07 02:06 44 601 7% WinAce/html/english/usage.whf +08.11.07 02:06 220 889 24% WinAce/html/english/welcome.whf +08.11.07 02:06 40 881 4% WinAce/html/deutsch/welcome.whf +08.11.07 02:06 228 374 61% WinAce/projects/backup fast.wpf +08.11.07 02:06 68 354 19% WinAce/projects/backup maximum.wpf +08.11.07 02:06 68 126 54% WinAce/projects/multivolume.wpf +08.11.07 02:06 52 94 55% WinAce/projects/zip compression.wpf + +listed: 136 files, totaling 8.613K bytes (compressed 4.021K) diff --git a/tests/src/vfs/extfs/helpers-list/data/uace.output b/tests/src/vfs/extfs/helpers-list/data/uace.output new file mode 100644 index 0000000..a2cedea --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uace.output @@ -0,0 +1,136 @@ +-rw-r--r-- 1 <<uid>> 0 256 2007-11-08 02:06:00 WinAce/find.add +-rw-r--r-- 1 <<uid>> 0 5655 2007-11-08 02:06:00 WinAce/winace.cnt +-rw-r--r-- 1 <<uid>> 0 1943 2007-11-08 02:06:00 WinAce/winace_enu.cnt +-rw-r--r-- 1 <<uid>> 0 31232 1994-04-17 02:06:00 WinAce/arcext.de +-rw-r--r-- 1 <<uid>> 0 26624 2007-11-08 02:06:00 WinAce/sxuninst.de +-rw-r--r-- 1 <<uid>> 0 883 2007-11-08 02:06:00 WinAce/file_id.diz +-rw-r--r-- 1 <<uid>> 0 1446400 2007-11-08 02:06:00 WinAce/acetools.dll +-rw-r--r-- 1 <<uid>> 0 235008 2007-11-08 02:06:00 WinAce/acev2.dll +-rw-r--r-- 1 <<uid>> 0 166912 2007-11-08 02:06:00 WinAce/arcext.dll +-rw-r--r-- 1 <<uid>> 0 61440 2007-11-08 02:06:00 WinAce/arcicons.dll +-rw-r--r-- 1 <<uid>> 0 65536 2007-11-08 02:06:00 WinAce/cabinet.dll +-rw-r--r-- 1 <<uid>> 0 335360 2007-11-08 02:06:00 WinAce/find.dll +-rw-r--r-- 1 <<uid>> 0 119808 2007-11-08 02:06:00 WinAce/sfxlib.dll +-rw-r--r-- 1 <<uid>> 0 160256 2007-10-23 01:06:00 WinAce/unrar3.dll +-rw-r--r-- 1 <<uid>> 0 16384 2007-11-08 02:06:00 WinAce/zficons.dll +-rw-r--r-- 1 <<uid>> 0 1938 2007-11-08 02:06:00 WinAce/license.doc +-rw-r--r-- 1 <<uid>> 0 11895 2007-11-08 02:06:00 WinAce/technote.doc +-rw-r--r-- 1 <<uid>> 0 439296 2007-11-08 02:06:00 WinAce/acetools.enu +-rw-r--r-- 1 <<uid>> 0 48128 2007-11-08 02:06:00 WinAce/find.enu +-rw-r--r-- 1 <<uid>> 0 104960 2007-11-08 02:06:00 WinAce/order.enu +-rw-r--r-- 1 <<uid>> 0 29696 2007-11-08 02:06:00 WinAce/wb_setup.enu +-rw-r--r-- 1 <<uid>> 0 594432 2007-11-08 02:06:00 WinAce/winace.enu +-rw-r--r-- 1 <<uid>> 0 36864 2007-11-08 02:06:00 WinAce/ccrypt.exe +-rw-r--r-- 1 <<uid>> 0 93696 2007-11-08 02:06:00 WinAce/helpinst.exe +-rw-r--r-- 1 <<uid>> 0 88092 2016-12-11 22:17:00 Internet +-rw-r--r-- 1 <<uid>> 0 252928 2007-11-08 02:06:00 WinAce/order.exe +-rw-r--r-- 1 <<uid>> 0 165376 2007-11-08 02:06:00 WinAce/sxuninst.exe +-rw-r--r-- 1 <<uid>> 0 401408 2007-11-08 02:06:00 WinAce/wb_setup.exe +-rw-r--r-- 1 <<uid>> 0 1207296 2007-11-08 02:06:00 WinAce/winace.exe +-rw-r--r-- 1 <<uid>> 0 839956 2007-11-08 02:06:00 WinAce/winace.hlp +-rw-r--r-- 1 <<uid>> 0 137589 2007-11-08 02:06:00 WinAce/winace_enu.hlp +-rw-r--r-- 1 <<uid>> 0 20278 2007-11-08 02:06:00 WinAce/menuimg.imf +-rw-r--r-- 1 <<uid>> 0 20278 2007-11-08 02:06:00 WinAce/menu256.imf +-rw-r--r-- 1 <<uid>> 0 77878 2007-11-08 02:06:00 WinAce/tool256.imf +-rw-r--r-- 1 <<uid>> 0 77878 2007-11-08 02:06:00 WinAce/toolimg.imf +-rw-r--r-- 1 <<uid>> 0 80464 2007-11-08 02:06:00 WinAce/menuimg.img +-rw-r--r-- 1 <<uid>> 0 321254 2007-11-08 02:06:00 WinAce/toolimg.img +-rw-r--r-- 1 <<uid>> 0 356 2007-11-08 02:06:00 WinAce/outbar.ini +-rw-r--r-- 1 <<uid>> 0 1304 2007-11-08 02:06:00 WinAce/products.ini +-rw-r--r-- 1 <<uid>> 0 409 2007-11-08 02:06:00 WinAce/sfxopt.ini +-rw-r--r-- 1 <<uid>> 0 4215 2007-11-08 02:06:00 WinAce/sxuninst.ini +-rw-r--r-- 1 <<uid>> 0 155 2007-11-08 02:06:00 WinAce/toolimg.ini +-rw-r--r-- 1 <<uid>> 0 854 2007-11-08 02:06:00 WinAce/volume.ini +-rw-r--r-- 1 <<uid>> 0 235 2007-11-08 02:06:00 WinAce/order.ord +-rw-r--r-- 1 <<uid>> 0 298 2007-11-08 02:06:00 WinAce/html/images/abort.png +-rw-r--r-- 1 <<uid>> 0 211 2007-11-08 02:06:00 WinAce/html/images/added.png +-rw-r--r-- 1 <<uid>> 0 230 2007-11-08 02:06:00 WinAce/html/images/back.png +-rw-r--r-- 1 <<uid>> 0 184 2007-11-08 02:06:00 WinAce/html/images/backimg.png +-rw-r--r-- 1 <<uid>> 0 8573 2007-11-08 02:06:00 WinAce/html/images/banner_bg.png +-rw-r--r-- 1 <<uid>> 0 1488 2007-11-08 02:06:00 WinAce/html/images/bar.png +-rw-r--r-- 1 <<uid>> 0 1846 2007-11-08 02:06:00 WinAce/html/images/bar1.png +-rw-r--r-- 1 <<uid>> 0 191 2007-11-08 02:06:00 WinAce/html/images/bg2.png +-rw-r--r-- 1 <<uid>> 0 1001 2007-11-08 02:06:00 WinAce/html/images/bug.png +-rw-r--r-- 1 <<uid>> 0 223 2007-11-08 02:06:00 WinAce/html/images/check.png +-rw-r--r-- 1 <<uid>> 0 23049 2007-11-08 02:06:00 WinAce/html/images/compare.png +-rw-r--r-- 1 <<uid>> 0 278 2007-11-08 02:06:00 WinAce/html/images/contact.png +-rw-r--r-- 1 <<uid>> 0 278 2007-11-08 02:06:00 WinAce/html/images/email.png +-rw-r--r-- 1 <<uid>> 0 385 2007-11-08 02:06:00 WinAce/html/images/fillout.png +-rw-r--r-- 1 <<uid>> 0 943 2007-11-08 02:06:00 WinAce/html/images/fwd.png +-rw-r--r-- 1 <<uid>> 0 176 2007-11-08 02:06:00 WinAce/html/images/infoback.png +-rw-r--r-- 1 <<uid>> 0 145 2007-11-08 02:06:00 WinAce/html/images/line.png +-rw-r--r-- 1 <<uid>> 0 7911 2007-11-08 02:06:00 WinAce/html/images/logo.png +-rw-r--r-- 1 <<uid>> 0 5595 2007-11-08 02:06:00 WinAce/html/images/logotop.png +-rw-r--r-- 1 <<uid>> 0 2551 2007-11-08 02:06:00 WinAce/html/images/logoarc.png +-rw-r--r-- 1 <<uid>> 0 1108 2007-11-08 02:06:00 WinAce/html/images/master.png +-rw-r--r-- 1 <<uid>> 0 1090 2007-11-08 02:06:00 WinAce/html/images/new.png +-rw-r--r-- 1 <<uid>> 0 235 2007-11-08 02:06:00 WinAce/html/images/nexttip.png +-rw-r--r-- 1 <<uid>> 0 211 2007-11-08 02:06:00 WinAce/html/images/plus.png +-rw-r--r-- 1 <<uid>> 0 1015 2007-11-08 02:06:00 WinAce/html/images/preview.png +-rw-r--r-- 1 <<uid>> 0 960 2007-11-08 02:06:00 WinAce/html/images/redo.png +-rw-r--r-- 1 <<uid>> 0 201 2007-11-08 02:06:00 WinAce/html/images/side.png +-rw-r--r-- 1 <<uid>> 0 382 2007-11-08 02:06:00 WinAce/html/images/sysinfo.png +-rw-r--r-- 1 <<uid>> 0 482 2007-11-08 02:06:00 WinAce/html/images/tip.png +-rw-r--r-- 1 <<uid>> 0 345 2007-11-08 02:06:00 WinAce/html/images/tip1.png +-rw-r--r-- 1 <<uid>> 0 1264 2007-11-08 02:06:00 WinAce/html/images/top.png +-rw-r--r-- 1 <<uid>> 0 993 2007-11-08 02:06:00 WinAce/html/images/top_r.png +-rw-r--r-- 1 <<uid>> 0 992 2007-11-08 02:06:00 WinAce/html/images/top_l.png +-rw-r--r-- 1 <<uid>> 0 1012 2007-11-08 02:06:00 WinAce/html/images/visa.png +-rw-r--r-- 1 <<uid>> 0 132 2007-11-08 02:06:00 WinAce/html/images/vline.png +-rw-r--r-- 1 <<uid>> 0 263 2007-11-08 02:06:00 WinAce/html/images/w.png +-rw-r--r-- 1 <<uid>> 0 1186 2007-11-08 02:06:00 WinAce/html/images/waceico.png +-rw-r--r-- 1 <<uid>> 0 4824 2007-11-08 02:06:00 WinAce/html/images/winacelogo.png +-rw-r--r-- 1 <<uid>> 0 406 2007-11-08 02:06:00 WinAce/html/images/winace.png +-rw-r--r-- 1 <<uid>> 0 64933 2007-11-08 02:06:00 WinAce/sfxfiles/dos32.sfx +-rw-r--r-- 1 <<uid>> 0 79937 2007-11-08 02:06:00 WinAce/sfxfiles/os2cl.sfx +-rw-r--r-- 1 <<uid>> 0 68877 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_hu.sfx +-rw-r--r-- 1 <<uid>> 0 68834 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_plk.sfx +-rw-r--r-- 1 <<uid>> 0 68824 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_cz.sfx +-rw-r--r-- 1 <<uid>> 0 68781 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_fr.sfx +-rw-r--r-- 1 <<uid>> 0 68692 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_nld.sfx +-rw-r--r-- 1 <<uid>> 0 68621 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_it.sfx +-rw-r--r-- 1 <<uid>> 0 68478 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_de.sfx +-rw-r--r-- 1 <<uid>> 0 68215 2007-11-08 02:06:00 WinAce/sfxfiles/wgui_en.sfx +-rw-r--r-- 1 <<uid>> 0 46936 2007-11-08 02:06:00 WinAce/sfxfiles/win32cl.sfx +-rw-r--r-- 1 <<uid>> 0 2249 2007-11-08 02:06:00 WinAce/html/english/infotip.txt +-rw-r--r-- 1 <<uid>> 0 2234 2007-11-08 02:06:00 WinAce/html/deutsch/infotip.txt +-rw-r--r-- 1 <<uid>> 0 960 2007-11-08 02:06:00 WinAce/infodeu.txt +-rw-r--r-- 1 <<uid>> 0 256 2007-11-08 02:06:00 WinAce/language.txt +-rw-r--r-- 1 <<uid>> 0 3138 2007-11-08 02:06:00 WinAce/register.txt +-rw-r--r-- 1 <<uid>> 0 1117 2007-11-08 02:06:00 WinAce/regsites.txt +-rw-r--r-- 1 <<uid>> 0 960 2007-11-08 02:06:00 WinAce/techinfo.txt +-rw-r--r-- 1 <<uid>> 0 47 2007-11-08 02:06:00 WinAce/winace.url +-rw-r--r-- 1 <<uid>> 0 3538 2007-11-08 02:06:00 WinAce/html/english/av.whf +-rw-r--r-- 1 <<uid>> 0 3538 2007-11-08 02:06:00 WinAce/html/deutsch/av.whf +-rw-r--r-- 1 <<uid>> 0 13100 2007-11-08 02:06:00 WinAce/html/deutsch/commands.whf +-rw-r--r-- 1 <<uid>> 0 10299 2007-11-08 02:06:00 WinAce/html/english/commands.whf +-rw-r--r-- 1 <<uid>> 0 1157 2007-11-08 02:06:00 WinAce/html/deutsch/compare.whf +-rw-r--r-- 1 <<uid>> 0 1155 2007-11-08 02:06:00 WinAce/html/english/compare.whf +-rw-r--r-- 1 <<uid>> 0 85468 2007-11-08 02:06:00 WinAce/html/deutsch/history.whf +-rw-r--r-- 1 <<uid>> 0 69151 2007-11-08 02:06:00 WinAce/html/english/history.whf +-rw-r--r-- 1 <<uid>> 0 10208 2007-11-08 02:06:00 WinAce/html/deutsch/info.whf +-rw-r--r-- 1 <<uid>> 0 7971 2007-11-08 02:06:00 WinAce/html/english/info.whf +-rw-r--r-- 1 <<uid>> 0 3193 2007-11-08 02:06:00 WinAce/html/deutsch/infotip.whf +-rw-r--r-- 1 <<uid>> 0 2518 2007-11-08 02:06:00 WinAce/html/english/infotip.whf +-rw-r--r-- 1 <<uid>> 0 2271 2007-11-08 02:06:00 WinAce/html/deutsch/menu.whf +-rw-r--r-- 1 <<uid>> 0 2239 2007-11-08 02:06:00 WinAce/html/english/menu.whf +-rw-r--r-- 1 <<uid>> 0 1256 2007-11-08 02:06:00 WinAce/html/english/menuex.whf +-rw-r--r-- 1 <<uid>> 0 1245 2007-11-08 02:06:00 WinAce/html/deutsch/menuex.whf +-rw-r--r-- 1 <<uid>> 0 1945 2007-11-08 02:06:00 WinAce/html/english/nav.whf +-rw-r--r-- 1 <<uid>> 0 1930 2007-11-08 02:06:00 WinAce/html/deutsch/nav.whf +-rw-r--r-- 1 <<uid>> 0 12471 2007-11-08 02:06:00 WinAce/html/deutsch/order.whf +-rw-r--r-- 1 <<uid>> 0 12426 2007-11-08 02:06:00 WinAce/html/english/order.whf +-rw-r--r-- 1 <<uid>> 0 2158 2007-11-08 02:06:00 WinAce/html/deutsch/share.whf +-rw-r--r-- 1 <<uid>> 0 1745 2007-11-08 02:06:00 WinAce/html/english/share.whf +-rw-r--r-- 1 <<uid>> 0 1547 2007-11-08 02:06:00 WinAce/html/english/system.whf +-rw-r--r-- 1 <<uid>> 0 1462 2007-11-08 02:06:00 WinAce/html/deutsch/system.whf +-rw-r--r-- 1 <<uid>> 0 2282 2007-11-08 02:06:00 WinAce/html/english/top.whf +-rw-r--r-- 1 <<uid>> 0 2256 2007-11-08 02:06:00 WinAce/html/deutsch/top.whf +-rw-r--r-- 1 <<uid>> 0 602 2007-11-08 02:06:00 WinAce/html/deutsch/usage.whf +-rw-r--r-- 1 <<uid>> 0 601 2007-11-08 02:06:00 WinAce/html/english/usage.whf +-rw-r--r-- 1 <<uid>> 0 889 2007-11-08 02:06:00 WinAce/html/english/welcome.whf +-rw-r--r-- 1 <<uid>> 0 881 2007-11-08 02:06:00 WinAce/html/deutsch/welcome.whf +-rw-r--r-- 1 <<uid>> 0 374 2007-11-08 02:06:00 WinAce/projects/backup +-rw-r--r-- 1 <<uid>> 0 354 2007-11-08 02:06:00 WinAce/projects/backup +-rw-r--r-- 1 <<uid>> 0 126 2007-11-08 02:06:00 WinAce/projects/multivolume.wpf +-rw-r--r-- 1 <<uid>> 0 94 2007-11-08 02:06:00 WinAce/projects/zip diff --git a/tests/src/vfs/extfs/helpers-list/data/uarc.README b/tests/src/vfs/extfs/helpers-list/data/uarc.README new file mode 100644 index 0000000..8a463a3 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uarc.README @@ -0,0 +1,19 @@ + +The input file was created by doing "arc v test.arc" on archive created +with "arc a test.arc ...". We then made sure to have: + +- One date prior to year 2000 (to test the 1900/2000 boundary). +- Both AM and PM times. + +Our 'uarc' doesn't support spaces in filenames but that's no biggie: + + Man page: "Full compatibility with PC ARC files is maintained, the + price for which is that arc doesn't like long filenames, and can only + archive files with names of up to 12 characters. [...] I suggest you + put long-winded filenames in a 'shar' before arcing them." + + Wikipedia: "ARC is incapable of compressing entire directory trees" + +Known issues with our uarc: + +- It reports '0' gid. diff --git a/tests/src/vfs/extfs/helpers-list/data/uarc.input b/tests/src/vfs/extfs/helpers-list/data/uarc.input new file mode 100644 index 0000000..eeb2161 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uarc.input @@ -0,0 +1,7 @@ +Name Length Stowage SF Size now Date Time CRC +============ ======== ======== ==== ======== ========= ====== ==== +README.html 9799 Crunched 50% 4922 23 Nov 16 11:48a 40ba +extfs.c 49679 Crunched 67% 16874 18 Apr 94 3:05p 38ff +run.log 1051 Crunched 50% 536 23 Nov 16 10:36a 6184 + ==== ======== ==== ======== +Total 3 60529 64% 22332 diff --git a/tests/src/vfs/extfs/helpers-list/data/uarc.output b/tests/src/vfs/extfs/helpers-list/data/uarc.output new file mode 100644 index 0000000..133e4cb --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uarc.output @@ -0,0 +1,3 @@ +-rw-r--r-- 1 <<uid>> 0 9799 2016-11-23 11:48:00 README.html +-rw-r--r-- 1 <<uid>> 0 49679 1994-04-18 15:05:00 extfs.c +-rw-r--r-- 1 <<uid>> 0 1051 2016-11-23 10:36:00 run.log diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.README b/tests/src/vfs/extfs/helpers-list/data/urar.README new file mode 100644 index 0000000..8ff5b1d --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.README @@ -0,0 +1,17 @@ + +The archive was created thus: + + echo hello > 'filename with spaces.txt' + rar a archive.rar 'filename with spaces.txt' ... + +Our 'urar' supports two listing formats: that of versions 6 and 5, and that of +versions 4 and 3. + +'urar.v6,v5.input' was created with "unrar vt -c- -cfg- archive.rar" using +unrar 5.30. + +'urar.v4,v3.input' was created with "unrar v -c- -cfg- archive.rar" using +unrar 3.80 for DOS (google "unrar dos"), via DOSBox (and then the "\" was +changed to "/" by hand). An inspection of our urar's source code should +lead us to conclude that this format is compatible with that of version +4. diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.env_vars b/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.env_vars new file mode 100644 index 0000000..475a847 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_UNRAR_VERSION=4 diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.input b/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.input new file mode 100644 index 0000000..ac525bd --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.input @@ -0,0 +1,29 @@ + +UNRAR 3.80 freeware Copyright (c) 1993-2008 Alexander Roshal + +Archive ARCHIVE.RAR + +Pathname/Comment + Size Packed Ratio Date Time Attr CRC Meth Ver +------------------------------------------------------------------------------- + .viminfo + 11032 2468 22% 23-11-16 07:10 -rw------- 295ED9AB m3g 2.9 + .wget-hsts + 205 181 88% 26-10-16 13:14 -rw-rw-r-- 58429CA4 m3g 2.9 + .xboardrc + 7527 2964 39% 17-04-16 01:21 -rw-rw-r-- 1DA6AD04 m3g 2.9 + .xchm + 559 382 68% 29-09-16 01:08 -rw-rw-r-- 73DBF2B9 m3g 2.9 + .xinputrc + 130 123 94% 27-12-15 17:08 -rw-rw-r-- 70CD8EF3 m3g 2.9 + .dosbox/dosbox-0.74.conf + 10730 4005 37% 07-06-16 20:43 -rw-rw-r-- 1D5A9AA6 m3g 2.9 + log.txt + 5869937 42114 0% 23-11-16 07:43 -rw-rw-r-- E63DE4A6 m3g 2.9 + filename with spaces.txt + 6 16 266% 23-11-16 07:39 -rw-r--r-- 363A3020 m3g 2.9 + .dosbox + 0 0 0% 07-06-16 20:43 drwx------ 00000000 m0 2.0 +------------------------------------------------------------------------------- + 9 5900126 52253 0% + diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.output b/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.output new file mode 100644 index 0000000..9568598 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.v4,v3.output @@ -0,0 +1,9 @@ +drwx------ 1 <<uid>> <<gid>> 0 2016-06-07 20:43:00 ./.dosbox +-rw-rw-r-- 1 <<uid>> <<gid>> 10730 2016-06-07 20:43:00 ./.dosbox/dosbox-0.74.conf +-rw------- 1 <<uid>> <<gid>> 11032 2016-11-23 07:10:00 ./.viminfo +-rw-rw-r-- 1 <<uid>> <<gid>> 205 2016-10-26 13:14:00 ./.wget-hsts +-rw-rw-r-- 1 <<uid>> <<gid>> 7527 2016-04-17 01:21:00 ./.xboardrc +-rw-rw-r-- 1 <<uid>> <<gid>> 559 2016-09-29 01:08:00 ./.xchm +-rw-rw-r-- 1 <<uid>> <<gid>> 130 2015-12-27 17:08:00 ./.xinputrc +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:39:00 ./filename with spaces.txt +-rw-rw-r-- 1 <<uid>> <<gid>> 5869937 2016-11-23 07:43:00 ./log.txt diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.env_vars b/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.env_vars new file mode 100644 index 0000000..abdefcc --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_UNRAR_VERSION=5 diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.input b/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.input new file mode 100644 index 0000000..5039076 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.input @@ -0,0 +1,102 @@ + +UNRAR 5.30 beta 2 freeware Copyright (c) 1993-2015 Alexander Roshal + +Archive: archive.rar +Details: RAR 4 + + Name: .viminfo + Type: File + Size: 11032 + Packed size: 2468 + Ratio: 22% + mtime: 2016-11-23 07:10:39,000 + Attributes: -rw------- + CRC32: 295ED9AB + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: .wget-hsts + Type: File + Size: 205 + Packed size: 181 + Ratio: 88% + mtime: 2016-10-26 13:14:09,000 + Attributes: -rw-rw-r-- + CRC32: 58429CA4 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: .xboardrc + Type: File + Size: 7527 + Packed size: 2964 + Ratio: 39% + mtime: 2016-04-17 01:21:46,000 + Attributes: -rw-rw-r-- + CRC32: 1DA6AD04 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: .xchm + Type: File + Size: 559 + Packed size: 382 + Ratio: 68% + mtime: 2016-09-29 01:08:46,000 + Attributes: -rw-rw-r-- + CRC32: 73DBF2B9 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: .xinputrc + Type: File + Size: 130 + Packed size: 123 + Ratio: 94% + mtime: 2015-12-27 17:08:35,000 + Attributes: -rw-rw-r-- + CRC32: 70CD8EF3 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: .dosbox/dosbox-0.74.conf + Type: File + Size: 10730 + Packed size: 4005 + Ratio: 37% + mtime: 2016-06-07 20:43:58,000 + Attributes: -rw-rw-r-- + CRC32: 1D5A9AA6 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: log.txt + Type: File + Size: 5869937 + Packed size: 42114 + Ratio: 0% + mtime: 2016-11-23 07:43:18,000 + Attributes: -rw-rw-r-- + CRC32: E63DE4A6 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: filename with spaces.txt + Type: File + Size: 6 + Packed size: 16 + Ratio: 266% + mtime: 2016-11-23 07:39:15,000 + Attributes: -rw-r--r-- + CRC32: 363A3020 + Host OS: Unix + Compression: RAR 3.0(v29) -m3 -md=4M + + Name: .dosbox + Type: Directory + mtime: 2016-06-07 20:43:58,000 + Attributes: drwx------ + CRC32: 00000000 + Host OS: Unix + Compression: RAR 3.0(v20) -m0 -md=0K + diff --git a/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.output b/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.output new file mode 100644 index 0000000..9568598 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/urar.v6,v5.output @@ -0,0 +1,9 @@ +drwx------ 1 <<uid>> <<gid>> 0 2016-06-07 20:43:00 ./.dosbox +-rw-rw-r-- 1 <<uid>> <<gid>> 10730 2016-06-07 20:43:00 ./.dosbox/dosbox-0.74.conf +-rw------- 1 <<uid>> <<gid>> 11032 2016-11-23 07:10:00 ./.viminfo +-rw-rw-r-- 1 <<uid>> <<gid>> 205 2016-10-26 13:14:00 ./.wget-hsts +-rw-rw-r-- 1 <<uid>> <<gid>> 7527 2016-04-17 01:21:00 ./.xboardrc +-rw-rw-r-- 1 <<uid>> <<gid>> 559 2016-09-29 01:08:00 ./.xchm +-rw-rw-r-- 1 <<uid>> <<gid>> 130 2015-12-27 17:08:00 ./.xinputrc +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:39:00 ./filename with spaces.txt +-rw-rw-r-- 1 <<uid>> <<gid>> 5869937 2016-11-23 07:43:00 ./log.txt diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.README b/tests/src/vfs/extfs/helpers-list/data/uzip.README new file mode 100644 index 0000000..01a7c1c --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.README @@ -0,0 +1,16 @@ + +The input files were created thus: + + cd ~/.gimp-2.8 + echo hello > 'filename with spaces.txt' + echo hello > ' filename with leading space.txt' + echo hello > '-filename with leading dash.txt' + zip a.zip * + unzip -Z -l -T a.zip > uzip.with-zipinfo.input + unzip -qq -v a.zip > uzip.without-zipinfo--ymd.input + rm a.zip + +uzip supports two date formats for "without-zipinfo" mode: ymd +(YYYY-MM-DD) and mdy (MM-DD-YY). To create the +'uzip.without-zipinfo--mdy.input' file, with MM-DD-YY dates, I simply +altered two dates with an editor (one with year before 70, one after). diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.env_vars b/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.env_vars new file mode 100644 index 0000000..0192895 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_HAVE_ZIPINFO=1 diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.input b/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.input new file mode 100644 index 0000000..568f224 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.input @@ -0,0 +1,45 @@ +Archive: a.zip +Zip file size: 75234 bytes, number of entries: 42 +-rw-r--r-- 3.0 unx 6 tx 6 stor 20161123.071336 -filename with leading dash.txt +-rw-r--r-- 3.0 unx 6 tx 6 stor 20161123.071336 filename with leading space.txt +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 brushes/ +-rw------- 3.0 unx 739 tx 164 defN 20160918.164557 colorrc +-rw------- 3.0 unx 1863 tx 441 defN 20160918.164558 controllerrc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 curves/ +-rw------- 3.0 unx 1982 tx 423 defN 20160918.164557 dockrc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 dynamics/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 environ/ +-rw-r--r-- 3.0 unx 6 tx 6 stor 20161123.071336 filename with spaces.txt +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 fonts/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 fractalexplorer/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 gfig/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 gflare/ +-rw------- 3.0 unx 355 tx 223 defN 20160108.011031 gimprc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 gimpressionist/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 gradients/ +-rw-r--r-- 3.0 unx 430 tx 251 defN 20151225.001514 gtkrc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 interpreters/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 levels/ +-rw-r--r-- 3.0 unx 76873 tx 8770 defN 20160918.164558 menurc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 modules/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 palettes/ +-rw------- 3.0 unx 102 tx 86 defN 20160918.164559 parasiterc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 patterns/ +-rw-r--r-- 3.0 unx 277486 tx 48556 defN 20151225.001526 pluginrc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 plug-ins/ +-rw-rw-r-- 3.0 unx 209 tx 143 defN 20160918.164437 print-page-setup +-rw-rw-r-- 3.0 unx 506 tx 295 defN 20160918.164437 print-settings +-rw------- 3.0 unx 62 tx 43 defN 20160108.010813 profilerc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 scripts/ +-rw------- 3.0 unx 2370 tx 685 defN 20160918.164557 sessionrc +-rw-rw-r-- 3.0 unx 34747 tx 7545 defN 20160918.164559 tags.xml +-rw------- 3.0 unx 4817 tx 589 defN 20160918.164559 templaterc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 templates/ +-rw-rw-r-- 3.0 unx 310 tx 204 defN 20160918.164204 themerc +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 themes/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 tmp/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20160403.000739 tool-options/ +drwxr-xr-x 3.0 unx 0 bx 0 stor 20151225.001514 tool-presets/ +-rw------- 3.0 unx 3996 tx 528 defN 20160918.164558 toolrc +-rw------- 3.0 unx 1178 tx 388 defN 20160918.164559 unitrc +40 files, 408031 bytes uncompressed, 69340 bytes compressed: 83.0% diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.output b/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.output new file mode 100644 index 0000000..dcf37d0 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.with-zipinfo.output @@ -0,0 +1,42 @@ +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:13:36 ./-filename with leading dash.txt +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:13:36 ./ filename with leading space.txt +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./brushes/ +-rw------- 1 <<uid>> <<gid>> 739 2016-09-18 16:45:57 ./colorrc +-rw------- 1 <<uid>> <<gid>> 1863 2016-09-18 16:45:58 ./controllerrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./curves/ +-rw------- 1 <<uid>> <<gid>> 1982 2016-09-18 16:45:57 ./dockrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./dynamics/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./environ/ +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:13:36 ./filename with spaces.txt +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./fonts/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./fractalexplorer/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./gfig/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./gflare/ +-rw------- 1 <<uid>> <<gid>> 355 2016-01-08 01:10:31 ./gimprc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./gimpressionist/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./gradients/ +-rw-r--r-- 1 <<uid>> <<gid>> 430 2015-12-25 00:15:14 ./gtkrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./interpreters/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./levels/ +-rw-r--r-- 1 <<uid>> <<gid>> 76873 2016-09-18 16:45:58 ./menurc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./modules/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./palettes/ +-rw------- 1 <<uid>> <<gid>> 102 2016-09-18 16:45:59 ./parasiterc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./patterns/ +-rw-r--r-- 1 <<uid>> <<gid>> 277486 2015-12-25 00:15:26 ./pluginrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./plug-ins/ +-rw-rw-r-- 1 <<uid>> <<gid>> 209 2016-09-18 16:44:37 ./print-page-setup +-rw-rw-r-- 1 <<uid>> <<gid>> 506 2016-09-18 16:44:37 ./print-settings +-rw------- 1 <<uid>> <<gid>> 62 2016-01-08 01:08:13 ./profilerc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./scripts/ +-rw------- 1 <<uid>> <<gid>> 2370 2016-09-18 16:45:57 ./sessionrc +-rw-rw-r-- 1 <<uid>> <<gid>> 34747 2016-09-18 16:45:59 ./tags.xml +-rw------- 1 <<uid>> <<gid>> 4817 2016-09-18 16:45:59 ./templaterc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./templates/ +-rw-rw-r-- 1 <<uid>> <<gid>> 310 2016-09-18 16:42:04 ./themerc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./themes/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./tmp/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2016-04-03 00:07:39 ./tool-options/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:14 ./tool-presets/ +-rw------- 1 <<uid>> <<gid>> 3996 2016-09-18 16:45:58 ./toolrc +-rw------- 1 <<uid>> <<gid>> 1178 2016-09-18 16:45:59 ./unitrc diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.env_vars b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.env_vars new file mode 100644 index 0000000..9c8ce7f --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_HAVE_ZIPINFO=0 diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.input b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.input new file mode 100644 index 0000000..2eb60ef --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.input @@ -0,0 +1,2 @@ + 0 Stored 0 0% 12-25-15 00:15 00000000 brushes/ + 739 Defl:N 164 78% 09-16-78 16:45 2d7277eb colorrc diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.output b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.output new file mode 100644 index 0000000..18c113e --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--mdy.output @@ -0,0 +1,2 @@ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./brushes/ +-rw-r--r-- 1 <<uid>> <<gid>> 739 1978-09-16 16:45:00 ./colorrc diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.env_vars b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.env_vars new file mode 100644 index 0000000..9c8ce7f --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.env_vars @@ -0,0 +1 @@ +MC_TEST_EXTFS_HAVE_ZIPINFO=0 diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.input b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.input new file mode 100644 index 0000000..9e7e16a --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.input @@ -0,0 +1,42 @@ + 6 Stored 6 0% 2016-11-23 07:13 363a3020 -filename with leading dash.txt + 6 Stored 6 0% 2016-11-23 07:13 363a3020 filename with leading space.txt + 0 Stored 0 0% 2015-12-25 00:15 00000000 brushes/ + 739 Defl:N 164 78% 2016-09-18 16:45 2d7277eb colorrc + 1863 Defl:N 441 76% 2016-09-18 16:45 4a229bae controllerrc + 0 Stored 0 0% 2015-12-25 00:15 00000000 curves/ + 1982 Defl:N 423 79% 2016-09-18 16:45 0f21e877 dockrc + 0 Stored 0 0% 2015-12-25 00:15 00000000 dynamics/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 environ/ + 6 Stored 6 0% 2016-11-23 07:13 363a3020 filename with spaces.txt + 0 Stored 0 0% 2015-12-25 00:15 00000000 fonts/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 fractalexplorer/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 gfig/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 gflare/ + 355 Defl:N 223 37% 2016-01-08 01:10 05197193 gimprc + 0 Stored 0 0% 2015-12-25 00:15 00000000 gimpressionist/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 gradients/ + 430 Defl:N 251 42% 2015-12-25 00:15 a3ed42bc gtkrc + 0 Stored 0 0% 2015-12-25 00:15 00000000 interpreters/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 levels/ + 76873 Defl:N 8770 89% 2016-09-18 16:45 7d9cb346 menurc + 0 Stored 0 0% 2015-12-25 00:15 00000000 modules/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 palettes/ + 102 Defl:N 86 16% 2016-09-18 16:45 62252c7b parasiterc + 0 Stored 0 0% 2015-12-25 00:15 00000000 patterns/ + 277486 Defl:N 48556 83% 2015-12-25 00:15 f846b075 pluginrc + 0 Stored 0 0% 2015-12-25 00:15 00000000 plug-ins/ + 209 Defl:N 143 32% 2016-09-18 16:44 1c6688d4 print-page-setup + 506 Defl:N 295 42% 2016-09-18 16:44 ce580111 print-settings + 62 Defl:N 43 31% 2016-01-08 01:08 d149fa62 profilerc + 0 Stored 0 0% 2015-12-25 00:15 00000000 scripts/ + 2370 Defl:N 685 71% 2016-09-18 16:45 b31b0c93 sessionrc + 34747 Defl:N 7545 78% 2016-09-18 16:45 6f219ddd tags.xml + 4817 Defl:N 589 88% 2016-09-18 16:45 edb121a1 templaterc + 0 Stored 0 0% 2015-12-25 00:15 00000000 templates/ + 310 Defl:N 204 34% 2016-09-18 16:42 0b2c424e themerc + 0 Stored 0 0% 2015-12-25 00:15 00000000 themes/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 tmp/ + 0 Stored 0 0% 2016-04-03 00:07 00000000 tool-options/ + 0 Stored 0 0% 2015-12-25 00:15 00000000 tool-presets/ + 3996 Defl:N 528 87% 2016-09-18 16:45 f51984ae toolrc + 1178 Defl:N 388 67% 2016-09-18 16:45 b8420722 unitrc diff --git a/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.output b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.output new file mode 100644 index 0000000..ef3c8fc --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzip.without-zipinfo--ymd.output @@ -0,0 +1,42 @@ +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:13:00 ./-filename with leading dash.txt +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:13:00 ./ filename with leading space.txt +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./brushes/ +-rw-r--r-- 1 <<uid>> <<gid>> 739 2016-09-18 16:45:00 ./colorrc +-rw-r--r-- 1 <<uid>> <<gid>> 1863 2016-09-18 16:45:00 ./controllerrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./curves/ +-rw-r--r-- 1 <<uid>> <<gid>> 1982 2016-09-18 16:45:00 ./dockrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./dynamics/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./environ/ +-rw-r--r-- 1 <<uid>> <<gid>> 6 2016-11-23 07:13:00 ./filename with spaces.txt +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./fonts/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./fractalexplorer/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./gfig/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./gflare/ +-rw-r--r-- 1 <<uid>> <<gid>> 355 2016-01-08 01:10:00 ./gimprc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./gimpressionist/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./gradients/ +-rw-r--r-- 1 <<uid>> <<gid>> 430 2015-12-25 00:15:00 ./gtkrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./interpreters/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./levels/ +-rw-r--r-- 1 <<uid>> <<gid>> 76873 2016-09-18 16:45:00 ./menurc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./modules/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./palettes/ +-rw-r--r-- 1 <<uid>> <<gid>> 102 2016-09-18 16:45:00 ./parasiterc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./patterns/ +-rw-r--r-- 1 <<uid>> <<gid>> 277486 2015-12-25 00:15:00 ./pluginrc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./plug-ins/ +-rw-r--r-- 1 <<uid>> <<gid>> 209 2016-09-18 16:44:00 ./print-page-setup +-rw-r--r-- 1 <<uid>> <<gid>> 506 2016-09-18 16:44:00 ./print-settings +-rw-r--r-- 1 <<uid>> <<gid>> 62 2016-01-08 01:08:00 ./profilerc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./scripts/ +-rw-r--r-- 1 <<uid>> <<gid>> 2370 2016-09-18 16:45:00 ./sessionrc +-rw-r--r-- 1 <<uid>> <<gid>> 34747 2016-09-18 16:45:00 ./tags.xml +-rw-r--r-- 1 <<uid>> <<gid>> 4817 2016-09-18 16:45:00 ./templaterc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./templates/ +-rw-r--r-- 1 <<uid>> <<gid>> 310 2016-09-18 16:42:00 ./themerc +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./themes/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./tmp/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2016-04-03 00:07:00 ./tool-options/ +drwxr-xr-x 1 <<uid>> <<gid>> 0 2015-12-25 00:15:00 ./tool-presets/ +-rw-r--r-- 1 <<uid>> <<gid>> 3996 2016-09-18 16:45:00 ./toolrc +-rw-r--r-- 1 <<uid>> <<gid>> 1178 2016-09-18 16:45:00 ./unitrc diff --git a/tests/src/vfs/extfs/helpers-list/data/uzoo.README b/tests/src/vfs/extfs/helpers-list/data/uzoo.README new file mode 100644 index 0000000..4c21006 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzoo.README @@ -0,0 +1,8 @@ + +The input file was created by running "zoo lq" on the archive at: + + https://www.midnight-commander.org/ticket/3696 + +Known bugs in our uzoo: +- It doesn't support filenames with spaces. +- It reports '0' gid. diff --git a/tests/src/vfs/extfs/helpers-list/data/uzoo.input b/tests/src/vfs/extfs/helpers-list/data/uzoo.input new file mode 100644 index 0000000..4659744 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzoo.input @@ -0,0 +1,18 @@ + 4 0% 4 26 Sep 16 12:56:02+61 тест/тест3/тест2.txt + 4 0% 4 26 Sep 16 12:56:00+61 тест/тест3/тест1.txt + 4 0% 4 26 Sep 16 12:56:08+61 тест/тест3/тест3.txt + 4 0% 4 26 Sep 16 12:56:02+61 тест/тест1/тест2.txt + 4 0% 4 26 Sep 16 12:56:00+61 тест/тест1/тест1.txt + 4 0% 4 26 Sep 16 12:56:08+61 тест/тест1/тест3.txt + 4 0% 4 26 Sep 16 12:56:02+61 тест/тест2/тест2.txt + 4 0% 4 26 Sep 16 12:56:00+61 тест/тест2/тест1.txt + 4 0% 4 26 Sep 16 12:56:08+61 тест/тест2/тест3.txt + 4 0% 4 26 Sep 16 12:56:02+61 тест/test1/тест2.txt + 4 0% 4 26 Sep 16 12:56:00+61 тест/test1/тест1.txt + 4 0% 4 26 Sep 16 12:56:08+61 тест/test1/тест3.txt + 4 0% 4 26 Sep 16 12:56:02+61 тест/test3/тест2.txt + 4 0% 4 26 Sep 16 12:56:00+61 тест/test3/тест1.txt + 4 0% 4 26 Sep 16 12:56:08+61 тест/test3/тест3.txt + 4 0% 4 26 Sep 16 12:56:02+61 тест/test2/тест2.txt + 4 0% 4 26 Sep 16 12:56:00+61 тест/test2/тест1.txt + 4 0% 4 26 Sep 16 12:56:08+61 тест/test2/тест3.txt diff --git a/tests/src/vfs/extfs/helpers-list/data/uzoo.output b/tests/src/vfs/extfs/helpers-list/data/uzoo.output new file mode 100644 index 0000000..2e9ad9a --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/data/uzoo.output @@ -0,0 +1,18 @@ +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест3/тест2.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест3/тест1.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест3/тест3.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест1/тест2.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест1/тест1.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест1/тест3.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест2/тест2.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест2/тест1.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/тест2/тест3.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test1/тест2.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test1/тест1.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test1/тест3.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test3/тест2.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test3/тест1.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test3/тест3.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test2/тест2.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test2/тест1.txt +-rw-r--r-- 1 <<uid>> 0 4 2016-09-26 12:56:00 тест/test2/тест3.txt diff --git a/tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c b/tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c new file mode 100644 index 0000000..dbb8e65 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c @@ -0,0 +1,407 @@ +/* + A parser for file-listings formatted like 'ls -l'. + + Copyright (C) 2016-2022 + Free Software Foundation, Inc. + + This file is part of the Midnight Commander. + + The Midnight Commander is free software: you can redistribute it + and/or modify it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + The Midnight Commander is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** \file + * \brief A parser for file-listings formatted like 'ls -l'. + * + * This program parses file-listings the same way MC does. + * It's basically a wrapper around vfs_parse_ls_lga(). + * You can feed it the output of any of extfs's helpers. + * + * After parsing, the data is written out to stdout. The output + * format can be either YAML or a format similar to 'ls -l'. + * + * This program is the main tool our tester script is going to use. + */ + +#include <config.h> + +#include <stdio.h> +#include <stdlib.h> + +#include "lib/global.h" + +#include "lib/vfs/utilvfs.h" /* vfs_parse_ls_lga() */ +#include "lib/util.h" /* string_perm() */ +#include "lib/timefmt.h" /* FMT_LOCALTIME */ +#include "lib/widget.h" /* for the prototype of message() only */ + +/*** global variables ****************************************************************************/ + +/*** file scope macro definitions ****************************************************************/ + +/*** file scope type declarations ****************************************************************/ + +typedef enum +{ + FORMAT_YAML, + FORMAT_LS +} output_format_t; + +/*** file scope variables ************************************************************************/ + +/* Command-line options. */ +static gboolean opt_drop_mtime = FALSE; +static gboolean opt_drop_ids = FALSE; +static gboolean opt_symbolic_ids = FALSE; +static output_format_t opt_output_format = FORMAT_LS; + +/* Misc. */ +static int error_count = 0; + +/* forward declarations */ +static gboolean +parse_format_name_argument (const gchar * option_name, const gchar * value, gpointer data, + GError ** error); + +static GOptionEntry entries[] = { + {"drop-mtime", 0, 0, G_OPTION_ARG_NONE, &opt_drop_mtime, "Don't include mtime in the output.", + NULL}, + {"drop-ids", 0, 0, G_OPTION_ARG_NONE, &opt_drop_ids, "Don't include uid/gid in the output.", + NULL}, + {"symbolic-ids", 0, 0, G_OPTION_ARG_NONE, &opt_symbolic_ids, + "Print the strings '<<uid>>'/'<<gid>>' instead of the numeric IDs when they match the process' uid/gid.", + NULL}, + {"format", 'f', 0, G_OPTION_ARG_CALLBACK, parse_format_name_argument, + "Output format. Default: ls.", "<ls|yaml>"}, + G_OPTION_ENTRY_NULL +}; + +/*** file scope functions ************************************************************************/ +/* --------------------------------------------------------------------------------------------- */ +/** + * Command-line handling. + */ +/* --------------------------------------------------------------------------------------------- */ + +static gboolean +parse_format_name_argument (const gchar * option_name, const gchar * value, gpointer data, + GError ** error) +{ + (void) option_name; + (void) data; + + if (strcmp (value, "yaml") == 0) + opt_output_format = FORMAT_YAML; + else if (strcmp (value, "ls") == 0) + opt_output_format = FORMAT_LS; + else + { + g_set_error (error, MC_ERROR, G_OPTION_ERROR_FAILED, "unknown output format '%s'", value); + return FALSE; + } + + return TRUE; +} + +/* --------------------------------------------------------------------------------------------- */ + +static gboolean +parse_command_line (int *argc, char **argv[]) +{ + GError *error = NULL; + GOptionContext *context; + + context = + g_option_context_new + ("- Parses its input, which is expected to be in a format similar to 'ls -l', and writes the result to stdout."); + g_option_context_add_main_entries (context, entries, NULL); + if (!g_option_context_parse (context, argc, argv, &error)) + { + g_print ("option parsing failed: %s\n", error->message); + g_error_free (error); + + return FALSE; + } + + return TRUE; +} + +/* --------------------------------------------------------------------------------------------- */ +/** + * Utility functions. + */ +/* --------------------------------------------------------------------------------------------- */ + +static const char * +my_itoa (int i) +{ + static char buf[BUF_SMALL]; + + sprintf (buf, "%d", i); + return buf; +} + +/* --------------------------------------------------------------------------------------------- */ + +/** + * Returns the uid as-is, or as "<<uid>>" if the same as current user. + */ +static const char * +symbolic_uid (uid_t uid) +{ + return (opt_symbolic_ids && uid == getuid ())? "<<uid>>" : my_itoa ((int) uid); +} + +/* --------------------------------------------------------------------------------------------- */ + +static const char * +symbolic_gid (gid_t gid) +{ + return (opt_symbolic_ids && gid == getgid ())? "<<gid>>" : my_itoa ((int) gid); +} + +/* --------------------------------------------------------------------------------------------- */ + +/** + * Cuts off a string's line-end (as in Perl). + */ +static void +chomp (char *s) +{ + int i; + + i = strlen (s); + + /* Code taken from vfs_parse_ls_lga(), with modifications. */ + if ((--i >= 0) && (s[i] == '\r' || s[i] == '\n')) + s[i] = '\0'; + if ((--i >= 0) && (s[i] == '\r' || s[i] == '\n')) + s[i] = '\0'; +} + +/* --------------------------------------------------------------------------------------------- */ + +static const char * +string_date (time_t t) +{ + static char buf[BUF_SMALL]; + + /* + * If we ever want to be able to re-parse the output of this program, + * we'll need to use the American brain-damaged MM-DD-YYYY instead of + * YYYY-MM-DD because vfs_parse_ls_lga() doesn't currently recognize + * the latter. + */ + FMT_LOCALTIME (buf, sizeof buf, "%Y-%m-%d %H:%M:%S", t); + return buf; +} + +/* --------------------------------------------------------------------------------------------- */ + +/** + * Override MC's message(). + * + * vfs_parse_ls_lga() calls this on error. Since MC's uses tty/widgets, it + * will crash us. We replace it with a plain version. + */ +void +message (int flags, const char *title, const char *text, ...) +{ + char *p; + va_list ap; + + (void) flags; + (void) title; + + va_start (ap, text); + p = g_strdup_vprintf (text, ap); + va_end (ap); + printf ("message(): vfs_parse_ls_lga(): parsing error at: %s\n", p); + g_free (p); +} + +/* --------------------------------------------------------------------------------------------- */ +/** + * YAML output format. + */ +/* --------------------------------------------------------------------------------------------- */ + +static void +yaml_dump_stbuf (const struct stat *st) +{ + /* Various casts and flags here were taken/inspired by info_show_info(). */ + printf (" perm: %s\n", string_perm (st->st_mode)); + if (!opt_drop_ids) + { + printf (" uid: %s\n", symbolic_uid (st->st_uid)); + printf (" gid: %s\n", symbolic_gid (st->st_gid)); + } + printf (" size: %" PRIuMAX "\n", (uintmax_t) st->st_size); + printf (" nlink: %d\n", (int) st->st_nlink); + if (!opt_drop_mtime) + printf (" mtime: %s\n", string_date (st->st_mtime)); +} + +/* --------------------------------------------------------------------------------------------- */ + +static void +yaml_dump_string (const char *name, const char *val) +{ + char *q; + + q = g_shell_quote (val); + printf (" %s: %s\n", name, q); + g_free (q); +} + +/* --------------------------------------------------------------------------------------------- */ + +static void +yaml_dump_record (gboolean success, const char *input_line, const struct stat *st, + const char *filename, const char *linkname) +{ + printf ("-\n"); /* Start new item in the list. */ + + if (success) + { + if (filename != NULL) + yaml_dump_string ("name", filename); + if (linkname != NULL) + yaml_dump_string ("linkname", linkname); + yaml_dump_stbuf (st); + } + else + { + yaml_dump_string ("cannot parse input line", input_line); + } +} + +/* --------------------------------------------------------------------------------------------- */ +/** + * 'ls' output format. + */ +/* --------------------------------------------------------------------------------------------- */ + +static void +ls_dump_stbuf (const struct stat *st) +{ + /* Various casts and flags here were taken/inspired by info_show_info(). */ + printf ("%s %3d ", string_perm (st->st_mode), (int) st->st_nlink); + if (!opt_drop_ids) + { + printf ("%8s ", symbolic_uid (st->st_uid)); + printf ("%8s ", symbolic_gid (st->st_gid)); + } + printf ("%10" PRIuMAX " ", (uintmax_t) st->st_size); + if (!opt_drop_mtime) + printf ("%s ", string_date (st->st_mtime)); +} + +/* --------------------------------------------------------------------------------------------- */ + +static void +ls_dump_record (gboolean success, const char *input_line, const struct stat *st, + const char *filename, const char *linkname) +{ + if (success) + { + ls_dump_stbuf (st); + if (filename != NULL) + printf ("%s", filename); + if (linkname != NULL) + printf (" -> %s", linkname); + printf ("\n"); + } + else + { + printf ("cannot parse input line: '%s'\n", input_line); + } +} + +/* ------------------------------------------------------------------------------ */ +/** + * Main code. + */ +/* ------------------------------------------------------------------------------ */ + +static void +process_ls_line (const char *line) +{ + struct stat st; + char *filename, *linkname; + gboolean success; + + memset (&st, 0, sizeof st); + filename = NULL; + linkname = NULL; + + success = vfs_parse_ls_lga (line, &st, &filename, &linkname, NULL); + + if (!success) + error_count++; + + if (opt_output_format == FORMAT_YAML) + yaml_dump_record (success, line, &st, filename, linkname); + else + ls_dump_record (success, line, &st, filename, linkname); + + g_free (filename); + g_free (linkname); +} + +/* ------------------------------------------------------------------------------ */ + +static void +process_input (FILE * input) +{ + char line[BUF_4K]; + + while (fgets (line, sizeof line, input) != NULL) + { + chomp (line); /* Not mandatory. Makes error messages nicer. */ + if (strncmp (line, "total ", 6) == 0) /* Convenience only: makes 'ls -l' parse cleanly. */ + continue; + process_ls_line (line); + } +} + +/* ------------------------------------------------------------------------------ */ + +int +main (int argc, char *argv[]) +{ + FILE *input; + + if (!parse_command_line (&argc, &argv)) + return EXIT_FAILURE; + + if (argc >= 2) + { + input = fopen (argv[1], "r"); + if (input == NULL) + { + perror (argv[1]); + return EXIT_FAILURE; + } + } + else + { + input = stdin; + } + + process_input (input); + + return (error_count > 0) ? EXIT_FAILURE : EXIT_SUCCESS; +} + +/* ------------------------------------------------------------------------------ */ diff --git a/tests/src/vfs/extfs/helpers-list/mc_xcat b/tests/src/vfs/extfs/helpers-list/mc_xcat new file mode 100755 index 0000000..7871a8f --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/mc_xcat @@ -0,0 +1,16 @@ +#!/bin/sh + +# +# This program is intended to be identical to 'cat' with the exception that +# it ignores any arguments past the 1st one. +# +# To understand why it's needed, first read the section about +# MC_TEST_EXTFS_LIST_CMD in the README. As explained there, the command in +# MC_TEST_EXTFS_LIST_CMD has to ignore any extra arguments passed to it. +# The tester achieves this by invoking a helper thus (roughly): +# +# export MC_TEST_EXTFS_LIST_CMD="mc_xcat /path/to/fake/input" +# sh /path/to/helper list /dev/null +# + +exec cat "$1" diff --git a/tests/src/vfs/extfs/helpers-list/misc/Makefile.am b/tests/src/vfs/extfs/helpers-list/misc/Makefile.am new file mode 100644 index 0000000..909d497 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/misc/Makefile.am @@ -0,0 +1,2 @@ + +EXTRA_DIST = rpm/rpm2tags.pl rpm/test.spec diff --git a/tests/src/vfs/extfs/helpers-list/misc/Makefile.in b/tests/src/vfs/extfs/helpers-list/misc/Makefile.in new file mode 100644 index 0000000..409a5d5 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/misc/Makefile.in @@ -0,0 +1,579 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = tests/src/vfs/extfs/helpers-list/misc +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ + $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ + $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ + $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ + $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ + $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ + $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ + $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ + $(top_srcdir)/m4.include/dx_doxygen.m4 \ + $(top_srcdir)/m4.include/ax_require_defined.m4 \ + $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ + $(top_srcdir)/m4.include/mc-cflags.m4 \ + $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ + $(top_srcdir)/m4.include/mc-check-search-type.m4 \ + $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ + $(top_srcdir)/m4.include/mc-with-x.m4 \ + $(top_srcdir)/m4.include/mc-use-termcap.m4 \ + $(top_srcdir)/m4.include/mc-with-screen.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ + $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ + $(top_srcdir)/m4.include/mc-subshell.m4 \ + $(top_srcdir)/m4.include/mc-background.m4 \ + $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ + $(top_srcdir)/m4.include/mc-glib.m4 \ + $(top_srcdir)/m4.include/mc-vfs.m4 \ + $(top_srcdir)/m4.include/vfs/rpc.m4 \ + $(top_srcdir)/m4.include/vfs/socket.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-fish.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ + $(top_srcdir)/m4.include/mc-version.m4 \ + $(top_srcdir)/m4.include/mc-tests.m4 \ + $(top_srcdir)/m4.include/mc-i18n.m4 \ + $(top_srcdir)/m4.include/mc-assert.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECK_CFLAGS = @CHECK_CFLAGS@ +CHECK_LIBS = @CHECK_LIBS@ +COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ +COM_ERR_LIBS = @COM_ERR_LIBS@ +CP1251 = @CP1251@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOC_LINGUAS = @DOC_LINGUAS@ +DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +DX_CONFIG = @DX_CONFIG@ +DX_DOCDIR = @DX_DOCDIR@ +DX_DOT = @DX_DOT@ +DX_DOXYGEN = @DX_DOXYGEN@ +DX_DVIPS = @DX_DVIPS@ +DX_EGREP = @DX_EGREP@ +DX_ENV = @DX_ENV@ +DX_FLAG_chi = @DX_FLAG_chi@ +DX_FLAG_chm = @DX_FLAG_chm@ +DX_FLAG_doc = @DX_FLAG_doc@ +DX_FLAG_dot = @DX_FLAG_dot@ +DX_FLAG_html = @DX_FLAG_html@ +DX_FLAG_man = @DX_FLAG_man@ +DX_FLAG_pdf = @DX_FLAG_pdf@ +DX_FLAG_ps = @DX_FLAG_ps@ +DX_FLAG_rtf = @DX_FLAG_rtf@ +DX_FLAG_xml = @DX_FLAG_xml@ +DX_HHC = @DX_HHC@ +DX_LATEX = @DX_LATEX@ +DX_MAKEINDEX = @DX_MAKEINDEX@ +DX_PDFLATEX = @DX_PDFLATEX@ +DX_PERL = @DX_PERL@ +DX_PROJECT = @DX_PROJECT@ +E2P_CFLAGS = @E2P_CFLAGS@ +E2P_LIBS = @E2P_LIBS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ +EXT2FS_LIBS = @EXT2FS_LIBS@ +EXTHELPERSDIR = @EXTHELPERSDIR@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_LIBS = @GLIB_LIBS@ +GMODULE_CFLAGS = @GMODULE_CFLAGS@ +GMODULE_LIBS = @GMODULE_LIBS@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GREP = @GREP@ +HAVE_FILECMD = @HAVE_FILECMD@ +HAVE_ZIPINFO = @HAVE_ZIPINFO@ +HAVE_nroff = @HAVE_nroff@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBMC_RELEASE = @LIBMC_RELEASE@ +LIBMC_VERSION = @LIBMC_VERSION@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ +LIBSSH_LIBS = @LIBSSH_LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANDOC = @MANDOC@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MAN_DATE = @MAN_DATE@ +MAN_FLAGS = @MAN_FLAGS@ +MAN_VERSION = @MAN_VERSION@ +MCLIBS = @MCLIBS@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CPPFLAGS = @PCRE_CPPFLAGS@ +PCRE_LIBS = @PCRE_LIBS@ +PERL = @PERL@ +PERL_FOR_BUILD = @PERL_FOR_BUILD@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +POSUB = @POSUB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SLANG_CFLAGS = @SLANG_CFLAGS@ +SLANG_LIBS = @SLANG_LIBS@ +STRIP = @STRIP@ +TESTS_LDFLAGS = @TESTS_LDFLAGS@ +UNZIP = @UNZIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +X11_WWW = @X11_WWW@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +ZIP = @ZIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRA_DIST = rpm/rpm2tags.pl rpm/test.spec +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/src/vfs/extfs/helpers-list/misc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/src/vfs/extfs/helpers-list/misc/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + cscopelist-am ctags-am distclean distclean-generic \ + distclean-libtool distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/src/vfs/extfs/helpers-list/misc/rpm/rpm2tags.pl b/tests/src/vfs/extfs/helpers-list/misc/rpm/rpm2tags.pl new file mode 100644 index 0000000..c776407 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/misc/rpm/rpm2tags.pl @@ -0,0 +1,103 @@ +use strict; +use warnings; +use Data::Dumper; + +my $help = <<EOF; +WHAT +---- + +This script converts an RPM package into what we call a "tags file", +which is simply an associative array listing all the tags and their +values. + +WHY +--- + +For our rpm helper tests we need an RPM file. But we also want the tests +to be able to run on systems where the rpm binary isn't installed. The +solution: our tests work on "tags files" instead of real RPM files. + +HOW +--- + +Use it like this: + + \$ perl $0 /path/to/some/package.rpm > test.input + +You can run this script only on systems where 'rpm' is installed. + +WHEW +---- + +After all was done the author of this script discovered something not +mentioned in rpm's manpage: one can do "rpm -qp --xml pkg.rpm" to +serialize the metadata and get the same effect. But this would just move +the complexity to the test (in handling XML). +EOF + +# Tag variations we're interested in and wish to record as well. +my @formatted_tags = qw( + BUILDTIME:date + CHANGELOGTIME:date + + REQUIREFLAGS:depflags + PROVIDEFLAGS:depflags + OBSOLETEFLAGS:depflags + CONFLICTFLAGS:depflags +); + +# Big tags we want to omit to save space. +my %skip = map {$_ => 1} qw( + HEADERIMMUTABLE +); + +# Make 'rpm' print dates in the format our helper expects. +$ENV{'LC_TIME'} = 'C'; + +sub rpm2tags +{ + my ($rpm_pkg) = @_; + + my %tags = (); + + chomp(my @all_tags = `rpm --querytags`); + @all_tags = grep {!$skip{$_}} @all_tags; + + foreach my $tag (@all_tags, @formatted_tags) { + $tags{$tag} = `rpm -qp --qf "%{$tag}" "$rpm_pkg"`; + } + + # Add pseudo tags: + $tags{'_INFO'} = `rpm -qip "$rpm_pkg"`; + + return %tags; +} + +sub prolog +{ + my $cmdline = join(' ', 'perl', $0, @ARGV); + return <<EOF; +# -*- mode: perl -*- +# vim: filetype=perl +# +# This "tags file" was created by running the following command: +# +# \$ $cmdline +# +# This file is used in our tests instead of the corresponding RPM file. +# This lets us run the tests on systems where 'rpm' is not installed. +EOF +} + +sub main +{ + if (!$ARGV[0] || $ARGV[0] eq "--help" || $ARGV[0] eq "-h") { + print $help; + exit; + } + my %tags = rpm2tags($ARGV[0]); + $Data::Dumper::Terse = 1; + print(prolog(), "\n", '$tags = ', Dumper(\%tags), ";\n"); +} + +main(); diff --git a/tests/src/vfs/extfs/helpers-list/misc/rpm/test.spec b/tests/src/vfs/extfs/helpers-list/misc/rpm/test.spec new file mode 100644 index 0000000..04e106c --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/misc/rpm/test.spec @@ -0,0 +1,85 @@ +# +# This spec file is used to build the test*.rpm package we use in one of +# our tests. +# +# The advantage of using our own custom package, instead of downloading a +# random one from the net, is that we get the chance here to define all the +# tags our rpm helper is supposed to support. +# +# Build this package with: +# +# $ rpmbuild -bb test.spec +# +# Then create the input for the test with: +# +# $ perl /path/to/rpm2tags.pl ~/rpmbuild/RPMS/noarch/test*.rpm > rpm.custom.input +# +Name: test +Summary: Testing +Epoch: 1 +Version: 2.3 +Release: 4%{?dist} +URL: http://example.com +Group: Development/System +License: MIT +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildArch: noarch +Conflicts: notest +Obsoletes: testing +Distribution: Test Distro +Packager: Test Packager +Vendor: Test Vendor + + +%description +Multi-line description field +with "double", 'single quotes', and $weird | \characters i\n = i\\t, empty line... + +...and a tab: [ ]. + +%install +[ "%{buildroot}" != / ] && %{__rm} -rf "%{buildroot}" +%{__mkdir_p} %{buildroot}%{_tmppath} +echo %{name} > %{buildroot}%{_tmppath}/%{name}.txt + + +%pretrans +echo "Pre-transaction script" + + +%pre +echo "Pre-installation script" + + +%post +echo "Post-installation script" + + +%preun +echo "Pre-uninstallation script" + + +%postun +echo "Post-uninstallation script" + + +%posttrans +echo "Post-transaction script" + + +%verifyscript +echo "Verify script" + + +%clean +[ "%{buildroot}" != / ] && %{__rm} -rf "%{buildroot}" + + +%files +%defattr(-,root,root,-) +%{_tmppath}/%{name}.txt + + +%changelog +* Fri Dec 30 2016 Jiri Tyr <jiri.tyr at gmail.com> 1:2.3-4 +- Initial build. diff --git a/tests/src/vfs/extfs/helpers-list/test_all b/tests/src/vfs/extfs/helpers-list/test_all new file mode 100755 index 0000000..f5f9be6 --- /dev/null +++ b/tests/src/vfs/extfs/helpers-list/test_all @@ -0,0 +1,462 @@ +#!/bin/sh + +# A tester for extfs helpers. +# +# Copyright (C) 2016-2017 +# The Free Software Foundation, Inc. +# +# This file is part of the Midnight Commander. +# +# The Midnight Commander is free software: you can redistribute it +# and/or modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the License, +# or (at your option) any later version. +# +# The Midnight Commander is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +help() { + cat << EOS + +NAME + +$(basename "$0") - Tests the 'list' command of extfs helpers. + +SYNOPSIS + + $(basename "$0") \\ + --data-dir /path/to/where/data/files/are/stored \\ + --helpers-dir /path/to/where/helpers/are/stored \\ + --data-build-dir /path/to/where/config.sh/is/stored + +(But you're more likely to invoke this program with the 'run' script +created by 'make check'; or by 'make check' itself.) + +DESCRIPTION + +This program tests extfs helpers by feeding them input and comparing +their output to the expected output. + +See README for full details. + +You need to tell this program primarily two things: where the helpers are +stored, and where the "data files" are stored. The data files are *.input +files that are fed to the helpers and *.output files that are the correct +output expected from these helpers. + +You also need to tell this program where the build flavor of the "data +files" is stored. Most notably this is where the 'config.sh' file is +created during build time. You do this with '--data-build-dir'. + +EOS +} + +#"' + +# +# Some helpers use the 'sort' utility. The "expected output" files we +# provide must be generated in the same locale these helpers are to be run +# by the tester or else 'sort' will produce a different output than ours, +# failing the tests. +# +# We settle on the C locale. +# +LC_ALL=C +export LC_ALL + +############################ Global variables ############################## + +# The directories used. +data_dir= +data_build_dir= +helpers_dir1= +helpers_dir2= + +opt_create_output=no # "yes" if '--create-output' provided. +opt_run_mcdiff_on_error=no # "yes" if '--mcdiff' provided. + +############################ Coding guidance ############################### + +# +# Portability notes: +# +# - We do `local var="$whatever"` instead of `local var=$whatever` for +# compatibility with Dash. See http://unix.stackexchange.com/questions/97560. +# +# - The 'local' keyword used in this file isn't mandatory. Feel free to +# remove it if it isn't supported by your archaic shell. +# + +############################ Utility functions ############################# + +# +# Does $1 contain $2? +# +# Accepts basic regex. +# +has_string() { + local haystack="$1" # quotes needed for Dash, as may contain spaces (see notes above). + local needle="$2" + echo "$haystack" | grep "$needle" > /dev/null +} + +# +# Given "/path/to/basename.and.some.ext", returns "basename" +# +basename_sans_extensions() { + local base="$(basename "$1")" + echo "${base%%.*}" +} + +# +# Does an executable exist? +# +has_prog() { + # see http://stackoverflow.com/questions/592620 + command -v "$1" >/dev/null 2>&1 +} + +# +# Are we running interactively? Or is our output redirected to a file/pipe? +# +is_interactive() { + [ -t 1 ] +} + +# +# Can we use colors? +# +has_colors() { + is_interactive && has_string "$TERM" 'linux\|xterm\|screen\|tmux\|putty' +} + +init_colors() { + if has_colors; then + local esc="$(printf '\033')" # for portability + C_bold="$esc[1m" + C_green="$esc[1;32m" + C_red="$esc[1;31m" + C_magenta="$esc[1;35m" + C_norm="$esc[0m" + fi +} + +# +# A few colorful alternatives to 'echo'. +# +header() { echo $C_bold"$@"$C_norm; } +err() { echo $C_red"$@"$C_norm; } +notice() { echo $C_magenta"$@"$C_norm; } +success() { echo $C_green"$@"$C_norm; } + +die() { + err "Error: $@" + exit 1 +} + +assert_dir_exists() { + [ -d "$1" ] || die "The directory '$1' doesn't exist, or is not a directory." +} + +# +# Creates a temporary file. +# +temp_file() { + local template="$1" + # BSD's doesn't support -t. + mktemp "${TMPDIR:-/tmp}/$template" +} + +################################ Main code ################################# + +# +# Prints out the command to run a helper, if it can find it. +# +# For example, +# +# find_helper uzip /path/to/helpers/dir +# +# prints: +# +# /usr/bin/perl -w /path/to/helpers/dir/uzip +# +# Since helpers in the build tree don't yet have executable bit set, we +# need to extract the shebang line. +# +find_helper() { + local helper_name="$1" + local dir="$2" + + local try="$dir/$helper_name" + if [ -f "$try" ]; then + helper_CMD="$(head -1 $try | cut -c 3-) $try" # reason #1 we don't allow spaces in pathnames. + true + else + false + fi +} + +# +# Returns the path of 'config.sh'. +# +path_of_config_sh() { + echo "$data_build_dir/config.sh" +} + +# +# Export variables to be used by tests. +# +# See README for their documentation. +# +export_useful_variables() { + local input="$1" + + # Frequently used variables: + MC_TEST_EXTFS_LIST_CMD="mc_xcat $input" # reason #2 we don't allow spaces in pathnames. + export MC_TEST_EXTFS_LIST_CMD + + # Infrequently used variables: + MC_TEST_EXTFS_INPUT=$input + export MC_TEST_EXTFS_INPUT + MC_TEST_EXTFS_DATA_DIR=$data_dir + export MC_TEST_EXTFS_DATA_DIR + MC_TEST_EXTFS_DATA_BUILD_DIR=$data_build_dir + export MC_TEST_EXTFS_DATA_BUILD_DIR + MC_TEST_EXTFS_CONFIG_SH=$(path_of_config_sh) + export MC_TEST_EXTFS_CONFIG_SH +} + +# +# The crux of this program. +# +run() { + + local error_count=0 + local pass_count=0 + + for input in "$data_dir"/*.input; do + + has_string "$input" '\*' && break # we can't use 'shopt -s nullglob' as it's bash-specific. + + header "Testing $input" + + has_string "$input" " " && die "Error: filename contains spaces." + + # + # Set up variables: + # + + local helper_name="$(basename_sans_extensions "$input")" + local expected_parsed_output="${input%.input}.output" + local env_vars_file="${input%.input}.env_vars" + local args_file="${input%.input}.args" + + local do_create_output=no + + if [ ! -f "$expected_parsed_output" ]; then + # Corresponding *.output file doesn't exist. We either create it, later, or exit with error. + if [ $opt_create_output = "yes" ]; then + do_create_output=yes + else + err + err "Missing file: '$expected_parsed_output'." + err "You have to create an '.output' file for each '.input' one." + err + notice "Tip: invoke this program with '--create-output' to" + notice "automatically create missing '.output' files." + notice + exit 1 + fi + fi + + find_helper "$helper_name" "$helpers_dir1" || + find_helper "$helper_name" "$helpers_dir2" || + die "I can't find helper '$helper_name' in either $helpers_dir1 or $helpers_dir2" + + local extra_parser_args="" + [ -f "$args_file" ] && extra_parser_args="$(cat "$args_file")" + + local actual_output="$(temp_file $helper_name.actual-output.XXXXXXXX)" + local actual_parsed_output="$(temp_file $helper_name.actual-parsed-output.XXXXXXXX)" + + # + # Variables are all set. Now do the actual stuff: + # + + ( + export_useful_variables "$input" + if [ -f "$env_vars_file" ]; then + set -a # "allexport: Export all variables assigned to." + . "$env_vars_file" + set +a + fi + $helper_CMD list /dev/null > "$actual_output" + ) + + error_count=$((error_count + 1)) # we'll decrement it later. + + if [ ! -s "$actual_output" ]; then + err + err "The helper '$helper_name' produced no output for this input. Something is wrong." + err + err "Make sure this helper supports testability: that it uses \$MC_TEST_EXTFS_LIST_CMD." + err + err "You may try running the helper yourself with:" + err + err " \$ MC_TEST_EXTFS_LIST_CMD=\"mc_xcat $input\" \\" + err " $helper_CMD list /dev/null" + err + continue + fi + + # '--symbolic-ids': uid/gid aren't portable between computers, + # of course, so we always represent them symbolically when possible. + if ! mc_parse_ls_l --symbolic-ids $extra_parser_args "$actual_output" > "$actual_parsed_output"; then + err + err "ERROR: Parsing of the output of the helper '$helper_name' has failed." + err "This means that $helper_name has produced output that MC won't be able to parse." + err "Run the parsing command yourself ('mc_parse_ls_l $extra_parser_args $actual_output')" + err "to figure out the problem." + err + continue + fi + + if [ $do_create_output = "yes" ]; then + # We arrive here if we were invoked with '--create-output' and + # the .output file doesn't exist. We create it and move to the next iteration. + cp "$actual_parsed_output" "$expected_parsed_output" + notice "The output file has been created in $expected_parsed_output" + continue + fi + + if ! cmp "$expected_parsed_output" "$actual_parsed_output"; then + err + err "ERROR: $helper_name has produced output that's different than the expected output." + err + err " Expected output (after parsing): $expected_parsed_output" + err " Actual output (after parsing): $actual_parsed_output" + err + err "This might mean that a bug was introduced into $helper_name. Or that a bug was fixed." + err "Please compare the files." + err + err "If the actual output is the correct one, just copy the latter file" + err "onto the former (and commit to the git repository)." + err + if is_interactive; then + if [ $opt_run_mcdiff_on_error = "yes" ]; then + notice "Hit ENTER to launch mcdiff ..." + read dummy_var # dash needs this. + ${MCDIFF:-mcdiff} "$expected_parsed_output" "$actual_parsed_output" + else + notice "Tip: invoke this program with '--mcdiff' to automatically launch" + notice "mcdiff to visually inspect the diff." + notice + notice "(Running this program non-interactively (i.e., redirecting the" + notice "output to a file or pipe) automatically adds diff to the output.)" + notice + fi + else + err "------------ diff of the expected output vs the actual output: -------------" + diff -U2 "$expected_parsed_output" "$actual_parsed_output" + err "------------------------------- end of diff --------------------------------" + fi + continue + fi + + rm "$actual_output" "$actual_parsed_output" + + error_count=$((error_count - 1)) # cancel the earlier "+1". + pass_count=$((pass_count + 1)) + + success "PASSED." + + done + + [ $pass_count = "0" -a $error_count = "0" ] && notice "Note: The data directory contains no *.input files." + + [ $error_count = "0" ] # exit status of function. +} + +parse_command_line_arguments() { + # We want --long-options, so we don't use 'getopts'. + while [ -n "$1" ]; do + case "$1" in + --data-dir) + data_dir=$2 + shift 2 + ;; + --data-build-dir) + data_build_dir=$2 + shift 2 + ;; + --helpers-dir) + if [ -z "$helpers_dir1" ]; then + helpers_dir1=$2 + else + helpers_dir2=$2 + fi + shift 2 + ;; + --create-output) + opt_create_output=yes + shift + ;; + --mcdiff) + opt_run_mcdiff_on_error=yes + shift + ;; + --help|-h) + help + exit + ;; + *) + die "Unknown command-line option $1" + ;; + esac + done +} + +# +# Check that everything is set up correctly. +# +verify_setup() { + [ -n "$data_dir" ] || die "You didn't specify the data dir (--data-dir). Run me with --help for info." + [ -n "$data_build_dir" ] || die "You didn't specify the data build dir (--data-build-dir). Run me with --help for info." + [ -n "$helpers_dir1" ] || die "You didn't specify the helpers dir (--helpers-dir). Run me with --help for info." + [ -z "$helpers_dir2" ] && helpers_dir2=$helpers_dir1 # we're being lazy. + + local dir + for dir in "$data_dir" "$data_build_dir" "$helpers_dir1" "$helpers_dir2"; do + assert_dir_exists "$dir" + has_string "$dir" " " && die "$dir: Sorry, spaces aren't allowed in pathnames." # search "reason", twice, above. + done + + [ -e "$(path_of_config_sh)" ] || die "Missing file $(path_of_config_sh). You probably have a mistake in the '--data-build-dir' path." + + local missing_progs="" + check_prog() { + if ! has_prog "$1"; then + err "I can't see the program '$1'." + missing_progs="${missing_progs}${missing_progs:+ and }'$1'" + fi + } + + check_prog "mc_parse_ls_l" + check_prog "mc_xcat" + check_prog "mktemp" # non-POSIX + [ -z "$missing_progs" ] || die "You need to add to your PATH the directories containing the executables $missing_progs." +} + +main() { + init_colors + parse_command_line_arguments "$@" + verify_setup + run # being the last command executed, its exit status is that of this whole script. +} + +main "$@" diff --git a/tests/src/vfs/ftpfs/Makefile.am b/tests/src/vfs/ftpfs/Makefile.am new file mode 100644 index 0000000..294604b --- /dev/null +++ b/tests/src/vfs/ftpfs/Makefile.am @@ -0,0 +1,32 @@ +PACKAGE_STRING = "/src/vfs/ftpfs" + +AM_CPPFLAGS = \ + $(GLIB_CFLAGS) \ + -DTEST_DATA_DIR=\"$(abs_srcdir)/data\" \ + -I$(top_srcdir) \ + -I$(top_srcdir)/lib/vfs \ + @CHECK_CFLAGS@ + +AM_LDFLAGS = @TESTS_LDFLAGS@ + +LIBS = @CHECK_LIBS@ \ + $(top_builddir)/src/libinternal.la \ + $(top_builddir)/lib/libmc.la + +if ENABLE_MCLIB +LIBS += $(GLIB_LIBS) +endif + +EXTRA_DIST = \ + data/aix_list.input \ + data/aix_list.output \ + data/ms_list.input \ + data/ms_list.output + +TESTS = \ + ftpfs_parse_long_list + +check_PROGRAMS = $(TESTS) + +ftpfs_parse_long_list_SOURCES = \ + ftpfs_parse_long_list.c diff --git a/tests/src/vfs/ftpfs/Makefile.in b/tests/src/vfs/ftpfs/Makefile.in new file mode 100644 index 0000000..d3fea57 --- /dev/null +++ b/tests/src/vfs/ftpfs/Makefile.in @@ -0,0 +1,1122 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@ENABLE_MCLIB_TRUE@am__append_1 = $(GLIB_LIBS) +TESTS = ftpfs_parse_long_list$(EXEEXT) +check_PROGRAMS = $(am__EXEEXT_1) +subdir = tests/src/vfs/ftpfs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ + $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ + $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ + $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ + $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ + $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ + $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ + $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ + $(top_srcdir)/m4.include/dx_doxygen.m4 \ + $(top_srcdir)/m4.include/ax_require_defined.m4 \ + $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_flag.m4 \ + $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ + $(top_srcdir)/m4.include/mc-cflags.m4 \ + $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ + $(top_srcdir)/m4.include/mc-check-search-type.m4 \ + $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ + $(top_srcdir)/m4.include/mc-with-x.m4 \ + $(top_srcdir)/m4.include/mc-use-termcap.m4 \ + $(top_srcdir)/m4.include/mc-with-screen.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ + $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ + $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ + $(top_srcdir)/m4.include/mc-subshell.m4 \ + $(top_srcdir)/m4.include/mc-background.m4 \ + $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ + $(top_srcdir)/m4.include/mc-glib.m4 \ + $(top_srcdir)/m4.include/mc-vfs.m4 \ + $(top_srcdir)/m4.include/vfs/rpc.m4 \ + $(top_srcdir)/m4.include/vfs/socket.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-fish.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ + $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ + $(top_srcdir)/m4.include/mc-version.m4 \ + $(top_srcdir)/m4.include/mc-tests.m4 \ + $(top_srcdir)/m4.include/mc-i18n.m4 \ + $(top_srcdir)/m4.include/mc-assert.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__EXEEXT_1 = ftpfs_parse_long_list$(EXEEXT) +am_ftpfs_parse_long_list_OBJECTS = ftpfs_parse_long_list.$(OBJEXT) +ftpfs_parse_long_list_OBJECTS = $(am_ftpfs_parse_long_list_OBJECTS) +ftpfs_parse_long_list_LDADD = $(LDADD) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__maybe_remake_depfiles = depfiles +am__depfiles_remade = ./$(DEPDIR)/ftpfs_parse_long_list.Po +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(ftpfs_parse_long_list_SOURCES) +DIST_SOURCES = $(ftpfs_parse_long_list_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +am__tty_colors_dummy = \ + mgn= red= grn= lgn= blu= brg= std=; \ + am__color_tests=no +am__tty_colors = { \ + $(am__tty_colors_dummy); \ + if test "X$(AM_COLOR_TESTS)" = Xno; then \ + am__color_tests=no; \ + elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ + am__color_tests=yes; \ + elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ + am__color_tests=yes; \ + fi; \ + if test $$am__color_tests = yes; then \ + red='[0;31m'; \ + grn='[0;32m'; \ + lgn='[1;32m'; \ + blu='[1;34m'; \ + mgn='[0;35m'; \ + brg='[1m'; \ + std='[m'; \ + fi; \ +} +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__recheck_rx = ^[ ]*:recheck:[ ]* +am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* +am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* +# A command that, given a newline-separated list of test names on the +# standard input, print the name of the tests that are to be re-run +# upon "make recheck". +am__list_recheck_tests = $(AWK) '{ \ + recheck = 1; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + { \ + if ((getline line2 < ($$0 ".log")) < 0) \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ + { \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ + { \ + break; \ + } \ + }; \ + if (recheck) \ + print $$0; \ + close ($$0 ".trs"); \ + close ($$0 ".log"); \ +}' +# A command that, given a newline-separated list of test names on the +# standard input, create the global log from their .trs and .log files. +am__create_global_log = $(AWK) ' \ +function fatal(msg) \ +{ \ + print "fatal: making $@: " msg | "cat >&2"; \ + exit 1; \ +} \ +function rst_section(header) \ +{ \ + print header; \ + len = length(header); \ + for (i = 1; i <= len; i = i + 1) \ + printf "="; \ + printf "\n\n"; \ +} \ +{ \ + copy_in_global_log = 1; \ + global_test_result = "RUN"; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + fatal("failed to read from " $$0 ".trs"); \ + if (line ~ /$(am__global_test_result_rx)/) \ + { \ + sub("$(am__global_test_result_rx)", "", line); \ + sub("[ ]*$$", "", line); \ + global_test_result = line; \ + } \ + else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ + copy_in_global_log = 0; \ + }; \ + if (copy_in_global_log) \ + { \ + rst_section(global_test_result ": " $$0); \ + while ((rc = (getline line < ($$0 ".log"))) != 0) \ + { \ + if (rc < 0) \ + fatal("failed to read from " $$0 ".log"); \ + print line; \ + }; \ + printf "\n"; \ + }; \ + close ($$0 ".trs"); \ + close ($$0 ".log"); \ +}' +# Restructured Text title. +am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } +# Solaris 10 'make', and several other traditional 'make' implementations, +# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it +# by disabling -e (using the XSI extension "set +e") if it's set. +am__sh_e_setup = case $$- in *e*) set +e;; esac +# Default flags passed to test drivers. +am__common_driver_flags = \ + --color-tests "$$am__color_tests" \ + --enable-hard-errors "$$am__enable_hard_errors" \ + --expect-failure "$$am__expect_failure" +# To be inserted before the command running the test. Creates the +# directory for the log if needed. Stores in $dir the directory +# containing $f, in $tst the test, in $log the log. Executes the +# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and +# passes TESTS_ENVIRONMENT. Set up options for the wrapper that +# will run the test scripts (or their associated LOG_COMPILER, if +# thy have one). +am__check_pre = \ +$(am__sh_e_setup); \ +$(am__vpath_adj_setup) $(am__vpath_adj) \ +$(am__tty_colors); \ +srcdir=$(srcdir); export srcdir; \ +case "$@" in \ + */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ + *) am__odir=.;; \ +esac; \ +test "x$$am__odir" = x"." || test -d "$$am__odir" \ + || $(MKDIR_P) "$$am__odir" || exit $$?; \ +if test -f "./$$f"; then dir=./; \ +elif test -f "$$f"; then dir=; \ +else dir="$(srcdir)/"; fi; \ +tst=$$dir$$f; log='$@'; \ +if test -n '$(DISABLE_HARD_ERRORS)'; then \ + am__enable_hard_errors=no; \ +else \ + am__enable_hard_errors=yes; \ +fi; \ +case " $(XFAIL_TESTS) " in \ + *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ + am__expect_failure=yes;; \ + *) \ + am__expect_failure=no;; \ +esac; \ +$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) +# A shell command to get the names of the tests scripts with any registered +# extension removed (i.e., equivalently, the names of the test logs, with +# the '.log' extension removed). The result is saved in the shell variable +# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, +# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", +# since that might cause problem with VPATH rewrites for suffix-less tests. +# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. +am__set_TESTS_bases = \ + bases='$(TEST_LOGS)'; \ + bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ + bases=`echo $$bases` +AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' +RECHECK_LOGS = $(TEST_LOGS) +AM_RECURSIVE_TARGETS = check recheck +TEST_SUITE_LOG = test-suite.log +TEST_EXTENSIONS = @EXEEXT@ .test +LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver +LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) +am__set_b = \ + case '$@' in \ + */*) \ + case '$*' in \ + */*) b='$*';; \ + *) b=`echo '$@' | sed 's/\.log$$//'`; \ + esac;; \ + *) \ + b='$*';; \ + esac +am__test_logs1 = $(TESTS:=.log) +am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) +TEST_LOGS = $(am__test_logs2:.test.log=.log) +TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver +TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ + $(TEST_LOG_FLAGS) +am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp \ + $(top_srcdir)/config/test-driver +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECK_CFLAGS = @CHECK_CFLAGS@ +CHECK_LIBS = @CHECK_LIBS@ +COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ +COM_ERR_LIBS = @COM_ERR_LIBS@ +CP1251 = @CP1251@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOC_LINGUAS = @DOC_LINGUAS@ +DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +DX_CONFIG = @DX_CONFIG@ +DX_DOCDIR = @DX_DOCDIR@ +DX_DOT = @DX_DOT@ +DX_DOXYGEN = @DX_DOXYGEN@ +DX_DVIPS = @DX_DVIPS@ +DX_EGREP = @DX_EGREP@ +DX_ENV = @DX_ENV@ +DX_FLAG_chi = @DX_FLAG_chi@ +DX_FLAG_chm = @DX_FLAG_chm@ +DX_FLAG_doc = @DX_FLAG_doc@ +DX_FLAG_dot = @DX_FLAG_dot@ +DX_FLAG_html = @DX_FLAG_html@ +DX_FLAG_man = @DX_FLAG_man@ +DX_FLAG_pdf = @DX_FLAG_pdf@ +DX_FLAG_ps = @DX_FLAG_ps@ +DX_FLAG_rtf = @DX_FLAG_rtf@ +DX_FLAG_xml = @DX_FLAG_xml@ +DX_HHC = @DX_HHC@ +DX_LATEX = @DX_LATEX@ +DX_MAKEINDEX = @DX_MAKEINDEX@ +DX_PDFLATEX = @DX_PDFLATEX@ +DX_PERL = @DX_PERL@ +DX_PROJECT = @DX_PROJECT@ +E2P_CFLAGS = @E2P_CFLAGS@ +E2P_LIBS = @E2P_LIBS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ +EXT2FS_LIBS = @EXT2FS_LIBS@ +EXTHELPERSDIR = @EXTHELPERSDIR@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_LIBS = @GLIB_LIBS@ +GMODULE_CFLAGS = @GMODULE_CFLAGS@ +GMODULE_LIBS = @GMODULE_LIBS@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GREP = @GREP@ +HAVE_FILECMD = @HAVE_FILECMD@ +HAVE_ZIPINFO = @HAVE_ZIPINFO@ +HAVE_nroff = @HAVE_nroff@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBMC_RELEASE = @LIBMC_RELEASE@ +LIBMC_VERSION = @LIBMC_VERSION@ +LIBOBJS = @LIBOBJS@ +LIBS = @CHECK_LIBS@ $(top_builddir)/src/libinternal.la \ + $(top_builddir)/lib/libmc.la $(am__append_1) +LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ +LIBSSH_LIBS = @LIBSSH_LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANDOC = @MANDOC@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MAN_DATE = @MAN_DATE@ +MAN_FLAGS = @MAN_FLAGS@ +MAN_VERSION = @MAN_VERSION@ +MCLIBS = @MCLIBS@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = "/src/vfs/ftpfs" +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CPPFLAGS = @PCRE_CPPFLAGS@ +PCRE_LIBS = @PCRE_LIBS@ +PERL = @PERL@ +PERL_FOR_BUILD = @PERL_FOR_BUILD@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +POSUB = @POSUB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SLANG_CFLAGS = @SLANG_CFLAGS@ +SLANG_LIBS = @SLANG_LIBS@ +STRIP = @STRIP@ +TESTS_LDFLAGS = @TESTS_LDFLAGS@ +UNZIP = @UNZIP@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +X11_WWW = @X11_WWW@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +ZIP = @ZIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CPPFLAGS = \ + $(GLIB_CFLAGS) \ + -DTEST_DATA_DIR=\"$(abs_srcdir)/data\" \ + -I$(top_srcdir) \ + -I$(top_srcdir)/lib/vfs \ + @CHECK_CFLAGS@ + +AM_LDFLAGS = @TESTS_LDFLAGS@ +EXTRA_DIST = \ + data/aix_list.input \ + data/aix_list.output \ + data/ms_list.input \ + data/ms_list.output + +ftpfs_parse_long_list_SOURCES = \ + ftpfs_parse_long_list.c + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/src/vfs/ftpfs/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/src/vfs/ftpfs/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-checkPROGRAMS: + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +ftpfs_parse_long_list$(EXEEXT): $(ftpfs_parse_long_list_OBJECTS) $(ftpfs_parse_long_list_DEPENDENCIES) $(EXTRA_ftpfs_parse_long_list_DEPENDENCIES) + @rm -f ftpfs_parse_long_list$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(ftpfs_parse_long_list_OBJECTS) $(ftpfs_parse_long_list_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftpfs_parse_long_list.Po@am__quote@ # am--include-marker + +$(am__depfiles_remade): + @$(MKDIR_P) $(@D) + @echo '# dummy' >$@-t && $(am__mv) $@-t $@ + +am--depfiles: $(am__depfiles_remade) + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +# Recover from deleted '.trs' file; this should ensure that +# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create +# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells +# to avoid problems with "make -n". +.log.trs: + rm -f $< $@ + $(MAKE) $(AM_MAKEFLAGS) $< + +# Leading 'am--fnord' is there to ensure the list of targets does not +# expand to empty, as could happen e.g. with make check TESTS=''. +am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) +am--force-recheck: + @: + +$(TEST_SUITE_LOG): $(TEST_LOGS) + @$(am__set_TESTS_bases); \ + am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ + redo_bases=`for i in $$bases; do \ + am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ + done`; \ + if test -n "$$redo_bases"; then \ + redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ + redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ + if $(am__make_dryrun); then :; else \ + rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ + fi; \ + fi; \ + if test -n "$$am__remaking_logs"; then \ + echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ + "recursion detected" >&2; \ + elif test -n "$$redo_logs"; then \ + am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ + fi; \ + if $(am__make_dryrun); then :; else \ + st=0; \ + errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ + for i in $$redo_bases; do \ + test -f $$i.trs && test -r $$i.trs \ + || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ + test -f $$i.log && test -r $$i.log \ + || { echo "$$errmsg $$i.log" >&2; st=1; }; \ + done; \ + test $$st -eq 0 || exit 1; \ + fi + @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ + ws='[ ]'; \ + results=`for b in $$bases; do echo $$b.trs; done`; \ + test -n "$$results" || results=/dev/null; \ + all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ + pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ + fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ + skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ + xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ + xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ + error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ + if test `expr $$fail + $$xpass + $$error` -eq 0; then \ + success=true; \ + else \ + success=false; \ + fi; \ + br='==================='; br=$$br$$br$$br$$br; \ + result_count () \ + { \ + if test x"$$1" = x"--maybe-color"; then \ + maybe_colorize=yes; \ + elif test x"$$1" = x"--no-color"; then \ + maybe_colorize=no; \ + else \ + echo "$@: invalid 'result_count' usage" >&2; exit 4; \ + fi; \ + shift; \ + desc=$$1 count=$$2; \ + if test $$maybe_colorize = yes && test $$count -gt 0; then \ + color_start=$$3 color_end=$$std; \ + else \ + color_start= color_end=; \ + fi; \ + echo "$${color_start}# $$desc $$count$${color_end}"; \ + }; \ + create_testsuite_report () \ + { \ + result_count $$1 "TOTAL:" $$all "$$brg"; \ + result_count $$1 "PASS: " $$pass "$$grn"; \ + result_count $$1 "SKIP: " $$skip "$$blu"; \ + result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ + result_count $$1 "FAIL: " $$fail "$$red"; \ + result_count $$1 "XPASS:" $$xpass "$$red"; \ + result_count $$1 "ERROR:" $$error "$$mgn"; \ + }; \ + { \ + echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ + $(am__rst_title); \ + create_testsuite_report --no-color; \ + echo; \ + echo ".. contents:: :depth: 2"; \ + echo; \ + for b in $$bases; do echo $$b; done \ + | $(am__create_global_log); \ + } >$(TEST_SUITE_LOG).tmp || exit 1; \ + mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ + if $$success; then \ + col="$$grn"; \ + else \ + col="$$red"; \ + test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ + fi; \ + echo "$${col}$$br$${std}"; \ + echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ + echo "$${col}$$br$${std}"; \ + create_testsuite_report --maybe-color; \ + echo "$$col$$br$$std"; \ + if $$success; then :; else \ + echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ + if test -n "$(PACKAGE_BUGREPORT)"; then \ + echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ + fi; \ + echo "$$col$$br$$std"; \ + fi; \ + $$success || exit 1 + +check-TESTS: $(check_PROGRAMS) + @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list + @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list + @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @set +e; $(am__set_TESTS_bases); \ + log_list=`for i in $$bases; do echo $$i.log; done`; \ + trs_list=`for i in $$bases; do echo $$i.trs; done`; \ + log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ + $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ + exit $$?; +recheck: all $(check_PROGRAMS) + @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @set +e; $(am__set_TESTS_bases); \ + bases=`for i in $$bases; do echo $$i; done \ + | $(am__list_recheck_tests)` || exit 1; \ + log_list=`for i in $$bases; do echo $$i.log; done`; \ + log_list=`echo $$log_list`; \ + $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ + am__force_recheck=am--force-recheck \ + TEST_LOGS="$$log_list"; \ + exit $$? +ftpfs_parse_long_list.log: ftpfs_parse_long_list$(EXEEXT) + @p='ftpfs_parse_long_list$(EXEEXT)'; \ + b='ftpfs_parse_long_list'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +.test.log: + @p='$<'; \ + $(am__set_b); \ + $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +@am__EXEEXT_TRUE@.test$(EXEEXT).log: +@am__EXEEXT_TRUE@ @p='$<'; \ +@am__EXEEXT_TRUE@ $(am__set_b); \ +@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ +@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ +@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ +@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) + -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) + -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -f ./$(DEPDIR)/ftpfs_parse_long_list.Po + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f ./$(DEPDIR)/ftpfs_parse_long_list.Po + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \ + check-am clean clean-checkPROGRAMS clean-generic clean-libtool \ + cscopelist-am ctags ctags-am distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + recheck tags tags-am uninstall uninstall-am + +.PRECIOUS: Makefile + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tests/src/vfs/ftpfs/data/aix_list.input b/tests/src/vfs/ftpfs/data/aix_list.input new file mode 100644 index 0000000..9296955 --- /dev/null +++ b/tests/src/vfs/ftpfs/data/aix_list.input @@ -0,0 +1,96 @@ +-rw-rw---- 1 darkna promak 6624 Jun 26 10:21 ${plktmp}ddd +-rw-rw---- 1 brydro promak 0 Mar 11 2007 * +drwxrws--- 3 promak promak 256 Oct 01 2007 .cpan +-rwxr----- 1 promak promak 879 Aug 13 2009 .profile +-rw------- 1 promak promak 6344 Jul 05 00:11 .sh_history +drwx--S--- 2 promak promak 256 Jan 23 2009 .ssh +-rw------- 1 promak promak 277 Jun 30 00:41 .vi_history +drwxrwsrwx 21 promak promak 4096 Dec 22 2010 A +drwxrws--- 104 promak promak 16384 May 25 20:37 JP +drwxrws--- 3 promak promak 4096 Feb 01 14:43 MDM +drwx--x--- 2 promak promak 256 Mar 12 2007 Mail +drwxrws--- 22 promak promak 4096 Jun 28 18:09 N +drwxrws--- 26 promak promak 4096 May 25 23:20 O +drwxrws--- 10 promak promak 4096 Jun 21 10:18 PB +drwxrws--- 4 promak promak 4096 Aug 12 2009 S +drwxr-s--- 13 promak promak 4096 Nov 26 2009 TECH +-rw-rw---- 1 matpil promak 0 Jul 05 09:10 TMP_FILED +-rw-rw---- 1 promak promak 2808 Sep 05 2011 ala.txt +-rw-rw---- 1 promak promak 228 Apr 16 2009 archiwum.log +drwxr-s--- 2 promak promak 256 Mar 23 2011 bin +-rw-rw---- 1 brydro promak 69 Apr 25 14:23 brydro20120425122315.txt +-rw-rw---- 1 darkna promak 0 Jul 03 08:15 core +-rw-rw---- 1 promak promak 2664 Jul 31 2007 dupadupa.sql +-rwxr-x--- 1 promak promak 7340 Aug 25 2007 dupkop.sh +-rw-rw---- 1 promak promak 16365 Jul 19 2010 duppppa +drwxr-s--- 2 promak promak 256 Jun 22 2011 err.log +-rw-rw---- 1 promak promak 0 Mar 12 2007 err_bkx +drwxr-s--- 2 promak promak 4096 Aug 12 2009 etc +-rw-rw-r-- 1 promak promak 94 Feb 21 09:18 ftp594398.cfg +-rw-r----- 1 promak promak 2855 Apr 22 2009 goenv_arch +-rw-r----- 1 promak promak 2875 Aug 12 2009 goenv_nsdr +-rw-r----- 1 promak promak 2821 Aug 12 2009 goenv_optksg +-rw-r----- 1 promak promak 10691433 Mar 01 14:22 ike.elg +-rw-rw---- 1 promak promak 32136 Mar 20 11:14 index.html +drwxrws--- 65 promak promak 4096 Mar 01 12:38 jkk +-rw-r----- 1 promak promak 55 Feb 22 2011 jkk.awk +-rw-rw---- 1 matpil promak 64 Jul 04 19:19 jkk.log +-rw-rw---- 1 promak promak 338 Mar 12 2007 jkkver.sh +-rw-rw---- 1 matpil promak 12 Jun 13 12:37 jpdatatmp.txt +-rw-rw---- 1 promak promak 132 Jun 25 2010 jpsir.log +-rw-r----- 1 promak promak 3 Mar 12 2007 koniecstrony +-rw-rw-rw- 1 promak promak 64 Jul 04 17:38 ksg_kart_drw.unl +-rw-rw---- 1 promak promak 190 Aug 17 2009 ksg_kartpw.test.unl +drwxr-s--- 2 promak promak 256 Aug 28 2009 libsh +drwxr-xr-x 2 root system 256 Mar 06 2007 lost+found +-rw-rw---- 1 matpil promak 69 Mar 27 19:57 matpil20120327175745.txt +-rw-rw---- 1 matpil promak 81 May 14 19:57 matpil20120514175733.txt +-rw------- 1 promak promak 10743 Aug 13 2009 mbox +-rwxr-x--- 1 promak promak 68 Mar 12 2007 odproappl +-rw-rw---- 1 promak promak 83 Nov 19 2010 papier_notow.sql +-rw-rw-r-- 1 promak promak 1785 Jun 14 2011 plikwyj.txt +-rw-r--r-- 1 promak promak 8477579 Jul 02 23:24 proappl.err +-rwx------ 1 promak promak 1957 Aug 24 2009 proappl.sh +-rwx------ 1 promak promak 674 Mar 12 2007 proappl2f80 +-rwx------ 1 promak promak 9272 Mar 28 2007 prokop.bkp +-rwx------ 1 promak promak 1107611 Jul 04 22:57 prokop.log +-rw-r--r-- 1 promak promak 20194873 Jul 04 23:23 prokop.promak +-rwxr-x--- 1 promak promak 8769 May 09 18:17 prokop.sh +-rwx------ 1 promak promak 8072 Jun 26 2010 prokop.sh.old +-rw-r--r-- 1 promak promak 345415 Jun 30 22:25 prokop.wsunle +-rwx------ 1 promak promak 6004 Mar 12 2007 prokop2 +-rwx------ 1 promak promak 6169 Mar 12 2007 prokopF50 +-rwx------ 1 promak promak 6156 Mar 12 2007 prokopF80 +-rw-rw---- 1 promak promak 0 Aug 12 2010 promak +-rwx------ 1 promak promak 201476 Jul 04 23:06 promak.log +-rw-rw---- 1 promak promak 4594135 Aug 12 2009 promak_pliki.txt +-rw-r--r-- 1 promak promak 222319 Jul 05 09:05 promonusr.err +-rwx------ 1 promak promak 334 Apr 22 2009 promonusr.sh +-rw-r--r-- 1 promak promak 7058202 Jul 05 06:07 prostat.err +-rwx------ 1 promak promak 525 Sep 19 2009 prostat.sh +-rw-r--r-- 1 promak promak 536893 Jul 04 19:15 prowsunle.err +-rwx------ 1 promak promak 868 Nov 27 2008 prowsunle.sh +-rw-rw---- 1 barros promak 0 Jul 14 2010 salda_z_bazy +-rw-rw---- 1 promak promak 1932 Jun 19 13:00 smit.log +-rw-rw---- 1 promak promak 908 Jun 19 13:00 smit.script +-rw-rw---- 1 promak promak 1174 Jun 19 13:00 smit.transaction +-rw-rw-rw- 1 promak promak 613 Jun 20 2011 sqexplain.out +-rwxr-xr-x 1 promak promak 45 Mar 12 2007 srozl.sh +-rwxr-x--- 1 promak promak 1602 Aug 12 2009 taruj.sh +-rw-rw---- 1 darkna promak 1270950 Jan 23 16:41 tax_dznk_nz.unl +drwxrws--- 14 promak promak 4096 Aug 04 2009 temp +drwxrwx--- 3 promak promak 4096 Mar 23 2011 tmp +-rw-rw---- 1 promak promak 75 Jul 22 2010 tmp_drw_pwnul.unl +-rw-rw-rw- 1 promak promak 104 Jul 04 17:38 tmp_konta4nik.unl +-rw-rw-rw- 1 promak promak 196 Jun 11 09:29 tmpa_drw_portfel09:29:44.774 +-rw-rw-rw- 1 promak promak 196 Jun 11 09:29 tmpa_drw_portfel09:29:44.967 +-rw-rw-rw- 1 promak promak 0 Jun 11 09:29 tmpa_drw_portfel_pw09:29:44.774 +-rw-rw-rw- 1 promak promak 0 Jun 11 09:29 tmpa_drw_portfel_pw09:29:44.967 +-rw-rw-rw- 1 promak promak 3293 Jun 11 09:29 tmpa_drw_pw09:29:44.774 +-rw-rw-rw- 1 promak promak 3293 Jun 11 09:29 tmpa_drw_pw09:29:44.967 +-rwxr-x--- 1 promak promak 1562 Dec 04 2009 ws_go +-rwxr-x--- 1 promak promak 406 Aug 14 2009 ws_off +-rw-rw---- 1 promak promak 41803 Jun 30 22:13 wsunle.log +-rw-r--r-- 1 promak promak 1601 Apr 04 2007 wsunload.err +-rw-rw---- 1 promak promak 129 Mar 29 2011 zagraniczne.log +-rw-r----- 1 promak promak 57 Mar 12 2007 zrestartuj_informixa diff --git a/tests/src/vfs/ftpfs/data/aix_list.output b/tests/src/vfs/ftpfs/data/aix_list.output new file mode 100644 index 0000000..144d1a7 --- /dev/null +++ b/tests/src/vfs/ftpfs/data/aix_list.output @@ -0,0 +1,96 @@ +${plktmp}ddd +* +.cpan +.profile +.sh_history +.ssh +.vi_history +A +JP +MDM +Mail +N +O +PB +S +TECH +TMP_FILED +ala.txt +archiwum.log +bin +brydro20120425122315.txt +core +dupadupa.sql +dupkop.sh +duppppa +err.log +err_bkx +etc +ftp594398.cfg +goenv_arch +goenv_nsdr +goenv_optksg +ike.elg +index.html +jkk +jkk.awk +jkk.log +jkkver.sh +jpdatatmp.txt +jpsir.log +koniecstrony +ksg_kart_drw.unl +ksg_kartpw.test.unl +libsh +lost+found +matpil20120327175745.txt +matpil20120514175733.txt +mbox +odproappl +papier_notow.sql +plikwyj.txt +proappl.err +proappl.sh +proappl2f80 +prokop.bkp +prokop.log +prokop.promak +prokop.sh +prokop.sh.old +prokop.wsunle +prokop2 +prokopF50 +prokopF80 +promak +promak.log +promak_pliki.txt +promonusr.err +promonusr.sh +prostat.err +prostat.sh +prowsunle.err +prowsunle.sh +salda_z_bazy +smit.log +smit.script +smit.transaction +sqexplain.out +srozl.sh +taruj.sh +tax_dznk_nz.unl +temp +tmp +tmp_drw_pwnul.unl +tmp_konta4nik.unl +tmpa_drw_portfel09:29:44.774 +tmpa_drw_portfel09:29:44.967 +tmpa_drw_portfel_pw09:29:44.774 +tmpa_drw_portfel_pw09:29:44.967 +tmpa_drw_pw09:29:44.774 +tmpa_drw_pw09:29:44.967 +ws_go +ws_off +wsunle.log +wsunload.err +zagraniczne.log +zrestartuj_informixa diff --git a/tests/src/vfs/ftpfs/data/ms_list.input b/tests/src/vfs/ftpfs/data/ms_list.input new file mode 100644 index 0000000..e9d6bc5 --- /dev/null +++ b/tests/src/vfs/ftpfs/data/ms_list.input @@ -0,0 +1,11 @@ +10-15-13 10:08AM <DIR> analytics +05-27-14 05:16AM <DIR> aspnet_client +11-20-14 12:36PM 161645801 DiscIntercity.tsv +11-20-14 12:47PM 2031110 DiscLocal.tsv +03-22-15 01:15PM <DIR> INC0023508 +12-23-14 12:35PM 3403603000 Initial_KPI_20141223_62808477.CSV +10-14-13 04:07PM <DIR> segment +11-20-14 02:54AM 399282436 SSUnlimAll.tsv +10-14-13 04:07PM <DIR> subscriber +03-22-15 05:51PM <DIR> tmp +11-20-14 11:45AM 773305597 UnlimOnnet.tsv diff --git a/tests/src/vfs/ftpfs/data/ms_list.output b/tests/src/vfs/ftpfs/data/ms_list.output new file mode 100644 index 0000000..147ef83 --- /dev/null +++ b/tests/src/vfs/ftpfs/data/ms_list.output @@ -0,0 +1,11 @@ +analytics +aspnet_client +DiscIntercity.tsv +DiscLocal.tsv +INC0023508 +Initial_KPI_20141223_62808477.CSV +segment +SSUnlimAll.tsv +subscriber +tmp +UnlimOnnet.tsv diff --git a/tests/src/vfs/ftpfs/ftpfs_parse_long_list.c b/tests/src/vfs/ftpfs/ftpfs_parse_long_list.c new file mode 100644 index 0000000..ea68d91 --- /dev/null +++ b/tests/src/vfs/ftpfs/ftpfs_parse_long_list.c @@ -0,0 +1,167 @@ +/* src/vfs/ftpfs - tests for ftpfs_parse_long_list() function. + + Copyright (C) 2021-2022 + Free Software Foundation, Inc. + + Written by: + Andrew Borodin <aborodin@vmail.ru>, 2021 + + This file is part of the Midnight Commander. + + The Midnight Commander is free software: you can redistribute it + and/or modify it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + The Midnight Commander is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#define TEST_SUITE_NAME "/src/vfs/ftpfs" + +#include "tests/mctest.h" + +#include <stdio.h> + +#include "direntry.c" +#include "src/vfs/ftpfs/ftpfs_parse_ls.c" + +/* --------------------------------------------------------------------------------------------- */ + +static struct vfs_s_subclass ftpfs_subclass; +static struct vfs_class *me = VFS_CLASS (&ftpfs_subclass); + +static struct vfs_s_super *super; + +/* --------------------------------------------------------------------------------------------- */ + +/* @Before */ +static void +setup (void) +{ + vfs_init_subclass (&ftpfs_subclass, "ftpfs", VFSF_NOLINKS | VFSF_REMOTE | VFSF_USETMP, "ftp"); + + super = vfs_s_new_super (me); + super->name = g_strdup (PATH_SEP_STR); + super->root = vfs_s_new_inode (me, super, vfs_s_default_stat (me, S_IFDIR | 0755)); +} + +/* --------------------------------------------------------------------------------------------- */ + +/* @After */ +static void +teardown (void) +{ + vfs_s_free_super (me, super); +} + +/* --------------------------------------------------------------------------------------------- */ + +static GSList * +read_list (const char *fname) +{ + FILE *f; + char buf[BUF_MEDIUM]; + GSList *ret = NULL; + + f = fopen (fname, "r"); + if (f == NULL) + return NULL; + + while (fgets (buf, sizeof (buf), f) != NULL) + ret = g_slist_prepend (ret, g_strdup (buf)); + + fclose (f); + + return ret; +} + +/* --------------------------------------------------------------------------------------------- */ + +/* @DataSource("test_ftpfs_parse_long_list_ds") */ +/* *INDENT-OFF* */ +static const struct test_ftpfs_parse_long_list_ds +{ + const char *name; +} test_ftpfs_parse_long_list_ds[] = +{ + { /* 0. Ticket #2841 */ + "aix" + }, + { /* 1. Ticket #3174 */ + "ms" + } +}; +/* *INDENT-ON* */ + +/* @Test(dataSource = "test_ftpfs_parse_long_list_ds") */ +/* *INDENT-OFF* */ +START_PARAMETRIZED_TEST (test_ftpfs_parse_long_list, test_ftpfs_parse_long_list_ds) +/* *INDENT-ON* */ +{ + /* given */ + char *name; + GSList *input, *parsed, *output; + GSList *parsed_iter, *output_iter; + int err_count; + + /* when */ + name = g_strdup_printf ("%s/%s_list.input", TEST_DATA_DIR, data->name); + input = read_list (name); + g_free (name); + mctest_assert_not_null (input); + + name = g_strdup_printf ("%s/%s_list.output", TEST_DATA_DIR, data->name); + output = read_list (name); + g_free (name); + mctest_assert_not_null (output); + + parsed = ftpfs_parse_long_list (me, super->root, input, &err_count); + + /* then */ + for (parsed_iter = parsed, output_iter = output; + parsed_iter != NULL && output_iter != NULL; + parsed_iter = g_slist_next (parsed_iter), output_iter = g_slist_next (output_iter)) + mctest_assert_str_eq (VFS_ENTRY (parsed_iter->data)->name, (char *) output_iter->data); + + mctest_assert_null (parsed_iter); + mctest_assert_null (output_iter); + + for (parsed_iter = parsed, output_iter = output; parsed_iter != NULL; + parsed_iter = g_slist_next (parsed_iter)) + vfs_s_free_entry (me, VFS_ENTRY (parsed_iter->data)); + + g_slist_free (parsed); + + g_slist_free_full (input, g_free); + g_slist_free_full (output, g_free); +} +/* *INDENT-OFF* */ +END_PARAMETRIZED_TEST +/* *INDENT-ON* */ + +/* --------------------------------------------------------------------------------------------- */ + +int +main (void) +{ + TCase *tc_core; + + tc_core = tcase_create ("Core"); + + tcase_add_checked_fixture (tc_core, setup, teardown); + + /* Add new tests here: *************** */ + mctest_add_parameterized_test (tc_core, test_ftpfs_parse_long_list, + test_ftpfs_parse_long_list_ds); + /* *********************************** */ + + return mctest_run_all (tc_core); +} + +/* --------------------------------------------------------------------------------------------- */ |