socketry / multipart-post

Adds multipart POST capability to net/http
MIT License
293 stars 72 forks source link

not able to run the tests #19

Closed ajinkya-bhosale closed 12 years ago

ajinkya-bhosale commented 12 years ago

ajinkya@ajinkya-Inspiron-N5010:~$ gem2deb multipart-post multipart-post doesn't seem to exist. Let's try to download it with 'gem fetch multipart-post' gem fetch multipart-post Fetching: multipart-post-1.1.5.gem (100%) Downloaded multipart-post-1.1.5 -- Creating source tarball from multipart-post-1.1.5.gem ... tar xfm /home/ajinkya/multipart-post-1.1.5.gem tar xzfm data.tar.gz zcat metadata.gz > metadata.yml tar czf /home/ajinkya/multipart-post-1.1.5.tar.gz multipart-post-1.1.5 -- Successfully created multipart-post-1.1.5.tar.gz

-- Creating Debian source package from multipart-post-1.1.5.tar.gz ... tar xzf ruby-multipart-post_1.1.5.orig.tar.gz -- Generated Debian source tree in ruby-multipart-post-1.1.5

-- Building Debian package ... dpkg-buildpackage -us -uc dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package ruby-multipart-post dpkg-buildpackage: source version 1.1.5-1 dpkg-buildpackage: source changed by ajinkya ajinkya@ajinkya-Inspiron-N5010 dpkg-buildpackage: host architecture i386 dpkg-source --before-build ruby-multipart-post-1.1.5 fakeroot debian/rules clean dh clean --buildsystem=ruby --with ruby dh_testdir -O--buildsystem=ruby dh_auto_clean -O--buildsystem=ruby Entering dh_ruby --clean Leaving dh_ruby --clean dh_clean -O--buildsystem=ruby dpkg-source -b ruby-multipart-post-1.1.5 dpkg-source: info: using source format 3.0 (quilt)' dpkg-source: info: building ruby-multipart-post using existing ./ruby-multipart-post_1.1.5.orig.tar.gz dpkg-source: info: building ruby-multipart-post in ruby-multipart-post_1.1.5-1.debian.tar.gz dpkg-source: info: building ruby-multipart-post in ruby-multipart-post_1.1.5-1.dsc debian/rules build dh build --buildsystem=ruby --with ruby dh_testdir -O--buildsystem=ruby dh_auto_configure -O--buildsystem=ruby dh_auto_build -O--buildsystem=ruby dh_auto_test -O--buildsystem=ruby fakeroot debian/rules binary dh binary --buildsystem=ruby --with ruby dh_testroot -O--buildsystem=ruby dh_prep -O--buildsystem=ruby dh_installdirs -O--buildsystem=ruby dh_auto_install -O--buildsystem=ruby Entering dh_ruby --install install -d /home/ajinkya/ruby-multipart-post-1.1.5/debian/ruby-multipart-post/usr/lib/ruby/vendor_ruby install -D -m644 lib/composite_io.rb /home/ajinkya/ruby-multipart-post-1.1.5/debian/ruby-multipart-post/usr/lib/ruby/vendor_ruby/composite_io.rb install -D -m644 lib/net/http/post/multipart.rb /home/ajinkya/ruby-multipart-post-1.1.5/debian/ruby-multipart-post/usr/lib/ruby/vendor_ruby/net/http/post/multipart.rb install -D -m644 lib/multipartable.rb /home/ajinkya/ruby-multipart-post-1.1.5/debian/ruby-multipart-post/usr/lib/ruby/vendor_ruby/multipartable.rb install -D -m644 lib/multipart_post.rb /home/ajinkya/ruby-multipart-post-1.1.5/debian/ruby-multipart-post/usr/lib/ruby/vendor_ruby/multipart_post.rb install -D -m644 lib/parts.rb /home/ajinkya/ruby-multipart-post-1.1.5/debian/ruby-multipart-post/usr/lib/ruby/vendor_ruby/parts.rb /usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb Running tests for ruby1.8 with test file list from debian/ruby-test-files.yaml ... -e:1:inrequire': no such file to load -- test/multibyte.txt (LoadError) from -e:1 from -e:1:in `each' from -e:1

Test "ruby1.8" failed. Continue building the package? (Y/N)

pravi commented 12 years ago

Fix was using ruby-tests.rb instead of ruby-test-files.yaml method (we could have also removed test/multibyte.txt from ruby-test-files.yaml - just tried it now and it works). Probably gem2deb should not have added this in the first place to list of test files. Reported it against gem2deb http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691236