summaryrefslogtreecommitdiffstats
path: root/usr.bin/jot
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-65/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-2/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-1/+3
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2014-05-081-1/+1
| |\
| * \ Merge headsjg2014-04-2865-0/+2796
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Fix missing AUTHOR section for jot(1), rs(1), and lam(1)allanjude2015-04-071-1/+3
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | PR: 196786 Differential Revision: https://reviews.freebsd.org/D2115 Submitted by: John A. Kunze (Author) Approved by: wblock (mentor) MFC after: 1 week Sponsored by: ScaleEngine Inc.
* | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |/ |/| | | | | from the latter.
* | Migrate most of tools/regression/usr.bin/ to the new tests layout.jmmv2014-03-1665-0/+2796
|/ | | | | | | | | | | | | | | I'm starting with the easy cases. The leftovers need to be looked at a bit more closely. Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory. Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately.
* Remove superfluous paragraph macro.joel2012-03-251-1/+0
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Fix stuttering sequences and reverse rangesbrian2010-06-022-9/+96
| | | | | PR: 123635 Submitted by: Ulrich Spörlein, uqs at spoerlein dot net
* Add a reference to newly added seq(1) command.delphij2010-02-201-1/+2
| | | | | Submitted by: jilles MFC after: 3 months
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Fix some uninitialise variables.brian2009-07-081-4/+4
| | | | | | | PR: 136383 Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net Approved by: re (kib) MFC after: 3 weeks
* Use explicit braces to avoid ambiguous else.delphij2006-12-091-1/+2
|
* Prevent buffer overflow when forcibly terminating an escape character.dds2006-12-031-1/+3
| | | | | | | | | | Obtained from: OpenBSD Note: In the case of a full buffer the OpenBSD implementation will leave in the format string an invalid escape sequence. This appears to be harmless with our C library, but according to C99 this can cause undefined behavior. MFC after: 2 weeks
* Correct handling of format strings with escaped % specifications.dds2006-12-031-2/+5
| | | | | | | | | | Note: It would be nice to be able to implement getformat() using fmtcheck(3), but fmtcheck does not distinguish between signed and unsigned types, a facility jot needs to perform range checks on its output. Submitted by: Per Kristian Hove MFC after: 2 weeks
* Style facelift.dds2006-11-061-57/+73
| | | | | | | | | - Reduce the number of global variables - Make global objects static - Use bool consistently - Sort getopt arguments and their processing - Add function comments - Change notlast != 0 into !last
* Use a more sensible default of 1 or -1 when only the start anddds2006-11-062-2/+9
| | | | | | | | end values are specified. PR: bin/68981 Submitted by: Stefan `Sec` Zehl MFC after: 2 weeks
* Do What I Mean when the user asks for random integers or characters.dds2006-11-062-8/+50
| | | | | | | | | | | | | | Up to now jot would fail to generate the last character in the range or skew the integer distribution in a way that would generate the numbers in the range's limits with half the probability of the rest. This modification fixes the program, rather than documenting the strange behavior, as suggested in docs/54879. Also, correctly specify the range of random(3). PR: docs/54879 MFC after: 2 weeks
* Avoid negative array indices: an empty string can also be useddds2006-11-062-2/+3
| | | | to specify a default value.
* See also arc4randomdds2006-11-061-0/+1
| | | | | PR: docs/54879 MFC after: 2 weeks
* Restore jot's ability to use a seed for producing a deterministicdds2006-11-062-7/+18
| | | | | | | | | sequence of random numbers. This functionality was lost in revision 1.9 when the random number generator was switched to arc4random. PR: docs/54879 MFC after: 2 weeks
* Replace obscure aliases through pointers with plain variables.dds2006-11-061-11/+8
| | | | MFC after: 2 weeks
* Merge code in common cases.dds2006-11-061-29/+6
| | | | | Verified by: New regression tests in tools/regression/usr.bin/jot MFC after: 2 weeks
* Replace opaque numeric bit flag values with #defined identifiers.dds2006-11-061-29/+38
| | | | | | | While there, add some missing FALLTHROUGH comments. Verified with: cmp(1) on the executable MFC after: 2 weeks
* Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD.cperciva2006-10-201-0/+5
| | | | MFC after: 1 month
* Sort sections.ru2005-01-181-2/+2
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+2
|
* Avoid passing negative values to <ctype.h> functions on machines withtjr2004-07-161-3/+3
| | | | signed chars.
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+2
|
* Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, itdas2003-08-011-1/+1
| | | | | | | | | | would print it with probability 1/2**32. It seems that the correct behavior is to print 4 with probability 1/4, but I'd like to avoid breaking POLA until all the range inconsistencies in jot can be fixed in one pass. See PR for details. PR: 54878 Submitted by: David Brinegar <jot.3.brinegar@spamgourmet.com>
* Don't depend on pollution in <limits.h> for the definition ofmike2002-07-051-0/+1
| | | | <stdint.h> macros.
* mdoc(7) police: added missing markup bits, lowercased argument names.ru2002-07-031-5/+7
|
* Consistently use FBSDIDobrien2002-06-301-1/+0
|
* Remove local prototype for main().jmallett2002-06-151-1/+0
|
* Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value.jmallett2002-06-151-14/+10
| | | | FBSDID.
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* remove __Pimp2002-03-221-5/+5
|
OpenPOWER on IntegriCloud