The NetBSD Project

CVS log for src/tests/usr.bin/printf/printf.sh

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / printf

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9 / (download) - annotate - [select for diffs], Tue May 24 20:50:20 2022 UTC (22 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

fix various typos in comment, documentation and log messages.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:23 2021 UTC (2 years, 10 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.6: +23 -23 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 19 22:45:49 2021 UTC (2 years, 10 months ago) by kre
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.7: +19 -19 lines
Diff to previous 1.7 (colored)


With the (very) recent changes to printf(1), a numeric conversion from data
of the form '+1 (two (or more) characters after the quote) will now generate
an error message, and cause printf(1) to exit(1) when it is done.

Adapt the test cases which use that data form to handle that.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 19 22:20:34 2021 UTC (2 years, 10 months ago) by kre
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)


Fix a truly embarrassing quoting screwup.   There is an explanation as
to why this didn't cause any failures, but I won't go into it here.
This was detected by the about to be committed printf changes.

While here also correct a couple of minor comment layout issues.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 24 14:29:19 2020 UTC (3 years, 11 months ago) by kre
Branch: MAIN
CVS Tags: cjep_staticlib_x-base
Branch point for: cjep_staticlib_x
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)


ATF runs shell script tests with "sh -e" (WHY???)

Compensate for that by adding an explicit test to a command so
-e will not kill the shell when the command (expectedly) fails.

Previously this was saved by /bin/sh disabling -e in command subs.

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:33 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.3.2.2: +18 -21 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 12 18:59:51 2019 UTC (4 years, 5 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)


Add a missing ("quoting") '>' in an atf_fail error message string.
Since the tests don't (usually) fail no-one ever noticed the missing char.

That is, the "received this" and "expected this" strings were supposed
to appear in the output err message as "<<string>>" but one of those
closing '>' chars was missing.

No-one should ever notice this change in normal operation, as the tests
are not intended to fail.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 21 15:25:59 2019 UTC (4 years, 8 months ago) by kre
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.3: +17 -20 lines
Diff to previous 1.3 (colored)

Stop assuming that printf handles options in any way at all
(it doesn't - that is, shouldn't) which includes processing -- as an
"end of options".  The first arg is (always) the format string.

Remove/fix tests that assumed the contrary.

Problem (with printf) pointed out on tech-userlevel by Thierry Laronde.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:12 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.3.2.1: +1805 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

Sync with HEAD

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:58 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.2: +32 -8 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Ssync with HEAD

Revision 1.3.2.1, Fri Sep 14 19:57:57 2018 UTC (5 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.3: +0 -1805 lines
FILE REMOVED

file printf.sh was added on branch phil-wifi on 2019-06-10 22:10:12 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 14 19:57:57 2018 UTC (5 years, 7 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Branch point for: phil-wifi
Changes since 1.2: +23 -8 lines
Diff to previous 1.2 (colored)


Move the tests of character value args to floating conversions
out of the %e test and into the NetBSD specific tests, while POSIX
once (apparently) required (or seemed to require) support for that,
it no longer does (and character value args to float conversions do
not make much sense - char valuse are always integers).

When char conversions are supported, test that \'  (or \" ) (that is,
no character following the quote) works as an arg (should result in zero,
as there's a \0 in the arg after the quote char).

Add some big/small number %g conversion tests.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Sep 10 15:02:11 2018 UTC (5 years, 7 months ago) by kre
Branch: MAIN
Changes since 1.1: +10 -1 lines
Diff to previous 1.1 (colored)


Add a test where printf is run twice in the same shell, and the
first invocation uses \c in a %b arg - make sure that 2nd invocation
is not affected by that  (it was until recently, for a very long time).

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:49 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.1: +1781 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.1.2.1, Wed Sep 5 21:05:40 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -1781 lines
FILE REMOVED

file printf.sh was added on branch pgoyette-compat on 2018-09-06 06:56:49 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 5 21:05:40 2018 UTC (5 years, 7 months ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Branch point for: pgoyette-compat

Add ATF tests for printf(1)

Two new test programs, one for the version of printf in /bin/sh
and one for the command /usr/bin/printf (t_builtin and t_command)

Each test program has 28 test cases (the same in each) of which
currently 27 pass, and 1 is skipped.

See the test scripts themselves for more information.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>