Jim Meyering <[EMAIL PROTECTED]> wrote:
...
> Feedback welcome.
> Unless someone objects, I'll check this in tomorrow or Friday.
>
> 2007-04-25  Jim Meyering  <[EMAIL PROTECTED]>
>
>       Add integration tests, then adjust code so that they pass.
>       These changes affect how --script (-s) works, and when diagnostics
>       are displayed.
>       * Makefile.am (SUBDIRS): Add tests.
>       * configure.ac (AC_OUTPUT): Add tests/Makefile.
>       * tests/Makefile.am: New file.
>       * tests/part-01, tests/label-01: New files.
>       * tests/part-02, tests/label-02: New files.
>       * parted/parted.c (enum) [PRETEND_INPUT_TTY]: Define.
>       Support a new, undocumented option: ---pretend-input-tty.
>       It is intended solely for testing.  The leading '---' ensures
>       that it will never conflict with a "regular" long option.
>       (do_mkpartfs): Prompt only when not in script mode.
>       Call ped_exception_leave_all() to decrement global counter.
>       Without this, the use of parted in tests/part-01 would still fail,
>       but would not issue the diagnostic explaining why.
>       * parted/ui.h (pretend_input_tty): Declare new global.
>       * parted/ui.c (exception_handler): Let the new "pretend_input_tty"
>       option override "!isatty (0)".
>       (init_ui): Don't set opt_script_mode.
>       * tests/lang-default, tests/priv-check: New files.

I've checked it in:

  http://git.debian.org/?p=parted/parted.git;a=commitdiff;h=b235f8a48

_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to