diff options
author | Jim Meyering <jim@meyering.net> | 2007-04-26 23:17:32 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-04-26 23:17:32 +0200 |
commit | b235f8a487d81b4703e76e08add3c89cf109a06f (patch) | |
tree | 52537230da7a7644f4aab3213d9667ede5cbd5c4 /configure.ac | |
parent | ef8d13eb0053e5e0b87fea037a150b1eef3a3372 (diff) | |
download | parted-b235f8a487d81b4703e76e08add3c89cf109a06f.tar.gz |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5735541..9401d46 100644 --- a/configure.ac +++ b/configure.ac @@ -502,6 +502,7 @@ doc/pt_BR/Makefile debug/Makefile debug/clearfat/Makefile debug/test/Makefile +tests/Makefile po/Makefile.in ]) |