summaryrefslogtreecommitdiff
path: root/tests/help-version
AgeCommit message (Collapse)Author
2007-10-09Move the help-version test into misc/.Jim Meyering
* tests/help-version: Move to... * tests/misc/help-version: ...here. Source test-lib.sh, as usual. Use $abs_top_builddir, rather than ".." and "../..".
2007-07-23Update all copyright notices to use the newer form.Jim Meyering
2007-07-10Skip "arch" test if it's not built.Jim Meyering
* tests/misc/Makefile.am (built_programs): Define. (TESTS_ENVIRONMENT): Add $(built_programs), for... * tests/misc/arch: ...this: skip the test if arch is not built. * src/Makefile.am (built_programs.list): New rule. * tests/Makefile.am (built_programs): Rename from all_programs. (TESTS_ENVIRONMENT): Use built_programs, not all_programs. * tests/help-version: Likewise. * NEWS: Mention that using --enable-no-install-program=X may cause "make check" to fail. Signed-off-by: Jim Meyering <jim@meyering.net>
2007-07-10Change "version 2" to "version 3" in all copyright notices.Jim Meyering
2007-03-29* src/runcon.c: New program.Jim Meyering
* src/Makefile.am (bin_PROGRAMS): Add runcon. (runcon_LDADD): Define. * README: Add runcon to the list of programs. * AUTHORS: Add this: runcon: Russell Coker * tests/help-version: Add runcon as an exception. * man/Makefile.am (dist_man_MANS): Add runcon.1. (runcon.1): New dependency. * po/POTFILES.in: Add src/runcon.c.
2007-03-29ls: Add support for SELinux and a slightly modified -Z option.Jim Meyering
I started with the patches from Red Hat. The entries below tell how the code evolved. * src/ls.c (print_long_format, print_file_name_and_frills): When there is no security context (due to getfilecon/lgetfilecon failing with e.g. ENOTSUP), print it as "?", not "". * src/ls.c (print_file_name_and_frills): Make -Z work without -l. (length_of_file_name_and_frills): Likewise. * src/ls.c: Remove the --lcontext and --scontext options. Change the way -Z, --context work so that it no longer implies -l. Thus, -Z -l will work like -lcontext and -Z without -l will work like --scontext. Adjust tests to reflect new 'ls -l' syntax -- affects only systems with SELinux when operating on a file with no ACL. These tests assumed that everything before the first space on each line is the 10-byte mode string. But there may also be a "+" in the 11th column, just before the space. However, note that this is not new. The same thing would have happened even without the change below, when listing a file with an ACL. * tests/chmod/equals, tests/cp/cp-parents, tests/cp/fail-perm: * tests/cp/link-preserve, tests/install/basic-1, tests/misc/mknod: * tests/mkdir/parents, tests/mkdir/special-1, tests/mv/partition-perm: Don't make compilation depend on USE_ACL. An SELinux security context counts as an "alternate access control method", so ls must output a "+" for each file with a security context. * src/ls.c [struct fileinfo] (have_acl): Declare unconditionally. (FILE_HAS_ACL): Remove macro definition. Use f->have_acl directly. (gobble_file): Record whether a file has a security context, and update the condition used to determine whether to print the "+". (gobble_file): Call getfilecon/lgetfilecon also when format == long_format, so that we get the "+". * src/ls.c (gobble_file): Add a comment explaining why (with a security context option) ls doesn't exit nonzero due to e.g., getfilecon failing with errno == ENOTSUP. * src/ls.c (gobble_file): Ignore failure of getfilecon if it's due to ENOTSUP. * src/ls.c (gobble_file): Factor out three small blocks using getfilecon and lgetfilecon. Don't ignore return value from getfilecon and lgetfilecon. * src/ls.c (print_long_format): Don't use ?: (empty 2nd arg with C ternary operator). (print_scontext_format): Likewise. (print_scontext): Declare to be "bool", not int. Adjust uses. * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD): Add $(LIB_SELINUX). * tests/misc/chcon: New file. * tests/misc/chcon-fail: New file. * tests/Makefile.am (check-root): Run new, root-only misc/chcon test. * tests/misc/Makefile.am (TESTS): Add chcon and chcon-fail. * tests/misc/Makefile.am (TESTS): Add selinux. * tests/misc/selinux: New file. * tests/help-version: Skip chcon.
2006-12-07* tests/touch/empty-file: Use envvar-check, so "make check" doesn'tJim Meyering
evoke diagnostics like this when COLUMNS=0 in the environment: ls: ignoring invalid width in environment variable COLUMNS: 0 * tests/touch/no-rights: Likewise. * tests/help-version: Likewise.
2006-11-23* tests/help-version: Suppress dd transfer rate output.Jim Meyering
2006-09-24* tests/help-version (sync_args): Don't call sync, since it spins upJim Meyering
disks that I've deliberately caused to spin down (but not unmounted).
2006-08-19Avoid test failure when `make check' is run through debuild.Jim Meyering
* tests/help-version: Ensure that $SHELL is set to some value and exported. Patch from Sven Joachim. For details, see <http://bugs.debian.org/355368>.
2006-08-17Add/fix copyright notices and adjust to latest GNU FDL.Paul Eggert
2006-06-01Don't assume that \< \> works in sed.Paul Eggert
2006-03-05Set SHELL, if not already set, in order toJim Meyering
avoid failure when `make check' is run through debuild; dircolors would fail due to lack of $SHELL. Reported by Sven Joachim.
2006-02-07(expected_failure_status_vdir):Jim Meyering
Redirect an expected disk-full diagnostic to /dev/null.
2005-12-22redirect stderr to /dev/full, too (to suppress write error diagnostic)Jim Meyering
2005-01-05Punt on the uptime test, since it fails whenJim Meyering
it can't get boot time, and I don't want that to stop `make check'.
2004-12-09ls and variants now exit with status 2 on serious trouble.Paul Eggert
2004-02-17Add id's -u option, so we don't get spuriousJim Meyering
failures when there are no user or group names.
2004-02-17`make check' from a build inside a chroot environment would failJim Meyering
Specify an argument (`/') for df, in the unusual event that there is no valid entry in /etc/mtab. Patch by Tim Waugh.
2004-01-22(expected_failure_status_date): Remove, as 'date' is now normal.Jim Meyering
(expected_failure_status_nohup): New var.
2003-11-27Remove new temp file, h-$i.Jim Meyering
2003-11-20Ensure that the bug-reporting address isJim Meyering
included in the --help output for every program.
2003-07-26Adjust for above change in test behavior:Jim Meyering
`[' exits with 2, not 1, and test doesn't accept --help or --version.
2003-07-19(expected_failure_status_expr): Record thatJim Meyering
expr exits with status of 3 for e.g., a write error.
2003-07-18(--help/--version vs. /dev/full): Special-caseJim Meyering
`[' to protect it from expected_failure_status-`eval'.
2003-07-16This script would have caught at least two recent bugs: those in [ and kill.Jim Meyering
Revive this script. It wasn't doing anything useful, since $all_programs wasn't being defined by the invoking Makefile.am. Reflect that nohup is no longer a script, so don't exclude it. Add framework to handle the programs added since it was last run: kill, stat, unlink, [, link, readlink. Fix path-related problems deriving from the move of this script from src/ to its present location.
2002-01-13Tweak to work with the programs in diffutils.Jim Meyering
2001-12-15Run each --help and --version test with a few different settingsJim Meyering
of LC_MESSAGES.
2001-12-15Fail also if ./$i --version fails.Jim Meyering
2001-03-09Ensure that /dev/full is a character deviceJim Meyering
(using test -c) as well as being writable, before trying to write to it. Otherwise, the test could mistakenly append a newline to an existing, regular, writable, /dev/full file. Suggested by Ulrich Drepper.
2000-07-30moved from ../srcJim Meyering