From: "Mitani" <mitani@ryobi.co.jp>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] "unzip01" testcase failed.
Date: Mon, 21 Dec 2009 13:23:20 +0900 [thread overview]
Message-ID: <000001ca81f5$53bbaee0$fb330ca0$@co.jp> (raw)
Hi,
I found that "unzip01" testcase failed as follows.
----------
unzip01 1 TFAIL : Test #1: unzip output differs from expected output.
Details
----------
The above error's "expected output" and "output" are :
- "tst_unzip.out.exp" file ("expected output") :
In "${LTPROOT}/testcases/bin/unzip_tests.sh", the contents of the
"tst_unzip.dir" directory are expected to output into this file.
- "tst_unzip.out" file (actual "output") :
A all contents of the "/opt/LTP/testcases/bin" directory are
logged to this file.
This problem occurs because "tst_unzip.dir" directory is not created.
Why does "DIR" become "/opt/ltp/testcases/bin" set
though "DIR := tst_unzip.dir" is defined
in "${LTPROOT}/testcases/commands/unzip/Makefile"?
To solve this problem, it is necessary to apply the following patche
to "${LTPROOT}/testcases/commands/unzip/Makefile" for creating
"tst_unzip.dir" directory, I think.
============
--- Makefile 2009-12-18 17:48:40.000000000 +0900
+++ Makefile.new 2009-12-18 17:38:00.000000000 +0900
@@ -27,8 +27,6 @@
# Only build and install if we have the zip command.
HAVE_ZIPTOOLS := $(shell if which zip >/dev/null; then echo yes;
else echo no; fi)
-DIR := tst_unzip.dir
-
RM += -r
TESTCASES_DATA_DIR := $(DESTDIR)/$(prefix)/testcases/data
@@ -36,7 +34,7 @@
ZIPFILE := $(TESTCASES_DATA_DIR)/tst_unzip_file.zip
ifeq ($(HAVE_ZIPTOOLS),yes)
-CLEAN_TARGETS := $(DIR) $(ZIPFILE)
+CLEAN_TARGETS := tst_unzip.dir $(ZIPFILE)
INSTALL_TARGETS := unzip_tests.sh
endif
@@ -45,13 +43,14 @@
$(TESTCASES_DATA_DIR):
mkdir -p "$@"
-$(ZIPFILE): | $(TESTCASES_DATA_DIR) $(DIR)
- zip -r "$@" $(DIR)
+$(ZIPFILE): | $(TESTCASES_DATA_DIR) tst_unzip.dir
+ zip -r "$@" tst_unzip.dir
chmod 00666 "$@"
# This target should be auto-removed by Make
-$(DIR): $(abs_srcdir)/unzip_genfile.sh
- $(SHELL) "$^" $(DIR)
+.INTERMEDIATE: tst_unzip.dir
+tst_unzip.dir: $(abs_srcdir)/unzip_genfile.sh
+ $(SHELL) "$^" tst_unzip.dir
include $(top_srcdir)/include/mk/generic_leaf_target.mk
============
Regards--
-Tomonori Mitani
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2009-12-21 4:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 4:23 Mitani [this message]
2009-12-21 5:16 ` [LTP] "unzip01" testcase failed Garrett Cooper
[not found] <1713808934.618481261374276809.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>
2009-12-21 5:45 ` Caspar Zhang
2009-12-21 9:10 ` Garrett Cooper
2009-12-22 2:38 ` Garrett Cooper
2010-01-14 7:30 ` Mitani
2010-01-14 8:29 ` Garrett Cooper
2010-01-14 12:41 ` Garrett Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001ca81f5$53bbaee0$fb330ca0$@co.jp' \
--to=mitani@ryobi.co.jp \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.