bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parted-1.9.0 -- comments and patches


From: Curtis Gedak
Subject: Re: parted-1.9.0 -- comments and patches
Date: Sat, 01 Aug 2009 14:17:33 -0600
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Jim Meyering wrote:
Joel Granados wrote:
On Fri, Jul 31, 2009 at 12:31:27PM +0200, Peter Breitenlohner wrote:
On Fri, 31 Jul 2009, Joel Granados wrote:

So does t7000 fail for you always?  How are you executing the tests?
Hi Joel,

from a shell script, executing
        { make check 2>&1; echo "rc=$?" } | tee -a make.log
Can you please paste the output of the following set of commands:

<snip>
dd if=/dev/zero of=testfile bs=512c count=100
echo n | sudo /usr/local/sbin/parted  ---pretend-input-tty testfile "mklabel gpt 
mkpart pirmary ext3 1 -1"
</snip>

That should be "primary"

Following is the output from the above commands:

$ dd if=/dev/zero of=testfile bs=512c count=100
100+0 records in
100+0 records out
51200 bytes (51 kB) copied, 0.000493206 s, 104 MB/s
$ echo n | sudo /usr/local/sbin/parted ---pretend-input-tty testfile "mklabel gpt mkpart primary ext3 1 -1"
[sudo] password for gedakc:
/usr/local/sbin/parted: error while loading shared libraries: libparted-1.9.so.0: cannot open shared object file: No such file or directory
$



Since the above looks like a path/environment problem, I also tried doing the same command without the "sudo /usr/local/sbin/parted". Essentially I opened a bash shell with root privileges, set some environment variables, and then ran the command without the "sudo". This produces the following output:

$ sudo bash
# export LD_LIBRARY_PATH=/usr/local/lib
# export LD_RUN_PATH=/usr/local/lib
# export LDFLAGS=-L/usr/local/lib
# echo n | /usr/local/sbin/parted ---pretend-input-tty testfile "mklabel gpt mkpart primary ext3 1 -1" Error: Can't have the end before the start! #



For reference, the output from "make check" for parted-1.9.0 is as follows:

$ make check
make  check-recursive
<... snip ...>
make[4]: Entering directory `/home/gedakc/workspace/parted-1.9.0/tests'
PASS: t0000-basic.sh
PASS: t0100-print.sh
PASS: t0200-gpt.sh
PASS: t0201-gpt.sh
PASS: t0202-gpt-pmbr.sh
PASS: t1000-mkpartfs.sh
PASS: t1100-busy-label.sh
PASS: t1500-small-ext2.sh
FAIL: t1700-ext-probe.sh
PASS: t2000-mkfs.sh
PASS: t2100-mkswap.sh
PASS: t2200-dos-label-recog.sh
PASS: t3000-constraints.sh
PASS: t3100-resize-ext2-partion.sh
PASS: t4000-sun-raid-type.sh
PASS: t4100-msdos-partition-limits.sh
PASS: t4100-dvh-partition-limits.sh
PASS: t4100-msdos-starting-sector.sh
PASS: t4200-partprobe.sh
PASS: t5000-tags.sh
PASS: t6000-dm.sh
PASS: t6001-dm-ignoremd.sh
FAIL: t7000-scripting.sh
PASS: t8000-loop.sh
============================================
GNU parted 1.9.0: tests/test-suite.log ============================================

2 of 24 tests failed.
.. contents:: :depth: 2


FAIL: t1700-ext-probe.sh (exit: 1)
==================================

* FAIL 1: create an ext2 file system
dd if=/dev/zero of=$dev bs=1024 count=4096 >/dev/null &&
       mkfs -F -t $type $dev >/dev/null
* FAIL 2: probe the ext2 file system
parted -s $dev print >out 2>1
       grep -w $type out
* FAIL 3: create an ext3 file system
dd if=/dev/zero of=$dev bs=1024 count=4096 >/dev/null &&
       mkfs -F -t $type $dev >/dev/null
* FAIL 4: probe the ext3 file system
parted -s $dev print >out 2>1
       grep -w $type out
no ext4 support; skipping that test
* failed 4 among 4 test(s)

FAIL: t7000-scripting.sh (exit: 1)
==================================

*   ok 1: Create the test file
*   ok 2: Test the scripting mode of mkpart
*   ok 3: Compare the real error and the expected one
*   ok 4: Create the test file
*   ok 5: Test the interactive mode of mkpart
*   ok 6: normalize the actual output
* FAIL 7: Compare the real error and the expected one
   compare out errI
*   ok 8: Create the test file
*   ok 9: Test the scripting mode of mkpartfs
*   ok 10: Compare the real error and the expected one
*   ok 11: Create the test file
*   ok 12: Test the interactive mode of mkpartfs
*   ok 13: normalize the actual output
* FAIL 14: Compare the real error and the expected one
   compare out errI
* failed 2 among 14 test(s)
===================================
2 of 24 tests failed
See tests/test-suite.log
Please report to address@hidden
===================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/home/gedakc/workspace/parted-1.9.0/tests'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/home/gedakc/workspace/parted-1.9.0/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/gedakc/workspace/parted-1.9.0/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/gedakc/workspace/parted-1.9.0'
make: *** [check] Error 2
$



Hope this helps to diagnose the problem.

Regards,
Curtis Gedak




reply via email to

[Prev in Thread] Current Thread [Next in Thread]