<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/help-version, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2007-10-09T15:13:09Z</updated>
<entry>
<title>Move the help-version test into misc/.</title>
<updated>2007-10-09T15:13:09Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2007-10-09T15:12:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b69049da7b0083b84c51cf8d2c9f1ee11403672f'/>
<id>urn:sha1:b69049da7b0083b84c51cf8d2c9f1ee11403672f</id>
<content type='text'>
* tests/help-version: Move to...
* tests/misc/help-version: ...here.
Source test-lib.sh, as usual.
Use $abs_top_builddir, rather than ".." and "../..".
</content>
</entry>
<entry>
<title>Update all copyright notices to use the newer form.</title>
<updated>2007-07-23T12:35:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-07-23T12:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=71aa3ea88084d17bcb4fc1031ad7b66f8647115e'/>
<id>urn:sha1:71aa3ea88084d17bcb4fc1031ad7b66f8647115e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Skip "arch" test if it's not built.</title>
<updated>2007-07-10T21:39:05Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-07-10T20:37:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=89dc0194511bdf7709ad5fc63acd079d6fa62b75'/>
<id>urn:sha1:89dc0194511bdf7709ad5fc63acd079d6fa62b75</id>
<content type='text'>
* 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 &lt;jim@meyering.net&gt;
</content>
</entry>
<entry>
<title>Change "version 2" to "version 3" in all copyright notices.</title>
<updated>2007-07-10T11:35:56Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-07-10T10:21:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=33342c1a0a464f198df3f177432a0e98e482e7a4'/>
<id>urn:sha1:33342c1a0a464f198df3f177432a0e98e482e7a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* src/runcon.c: New program.</title>
<updated>2007-03-29T19:37:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-02-02T17:58:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c6922b6f7e3ed8c0d565f588df3bd4daf6635f2b'/>
<id>urn:sha1:c6922b6f7e3ed8c0d565f588df3bd4daf6635f2b</id>
<content type='text'>
* 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.
</content>
</entry>
<entry>
<title>ls: Add support for SELinux and a slightly modified -Z option.</title>
<updated>2007-03-29T19:37:05Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-05T17:23:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3ea540c7570a76bf72ae697c4040e77dad5bea6d'/>
<id>urn:sha1:3ea540c7570a76bf72ae697c4040e77dad5bea6d</id>
<content type='text'>
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-&gt;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.
</content>
</entry>
<entry>
<title>* tests/touch/empty-file: Use envvar-check, so "make check" doesn't</title>
<updated>2006-12-07T09:11:40Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-12-07T09:11:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=565b165115de72b4b276c0d5d6d5095e3c901a69'/>
<id>urn:sha1:565b165115de72b4b276c0d5d6d5095e3c901a69</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>* tests/help-version: Suppress dd transfer rate output.</title>
<updated>2006-11-23T08:02:36Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-11-23T08:02:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a409011bba1acb33374a65d8563c0a2923cdd855'/>
<id>urn:sha1:a409011bba1acb33374a65d8563c0a2923cdd855</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* tests/help-version (sync_args): Don't call sync, since it spins up</title>
<updated>2006-09-24T16:46:41Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-09-24T16:46:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6649f01059791363a0274f411600560f21dc5e09'/>
<id>urn:sha1:6649f01059791363a0274f411600560f21dc5e09</id>
<content type='text'>
disks that I've deliberately caused to spin down (but not unmounted).
</content>
</entry>
<entry>
<title>Avoid test failure when `make check' is run through debuild.</title>
<updated>2006-08-19T18:30:04Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-08-19T18:30:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77c8f5b5c2e18bf2f73945653e830d07ddcd381e'/>
<id>urn:sha1:77c8f5b5c2e18bf2f73945653e830d07ddcd381e</id>
<content type='text'>
* tests/help-version: Ensure that $SHELL is set to some value
and exported.  Patch from Sven Joachim.  For details, see
&lt;http://bugs.debian.org/355368&gt;.
</content>
</entry>
</feed>
