History log of /openbsd-current/regress/usr.bin/jot/regress.sh
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.9 20-Dec-2020 tb

slightly tweak the jot regress tests to avoid file name clashes on
case insensitive file systems.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 25-Jun-2018 tb

Add a regression test for running jot without any arguments.


Revision tags: OPENBSD_6_3_BASE
# 1.7 15-Dec-2017 tb

replace a hardcoded jot with ${JOT}


# 1.6 15-Dec-2017 tb

enable the 'wDn' test now that jot has been fixed.


# 1.5 11-Dec-2017 tb

Sergey Bronnikov's code coverage analysis shows that a few more code paths
could be exercised. Add a few tests to do just that. The wDn test is
currently disabled, as it will only pass after a commit to jot.c.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.4 06-Aug-2016 tb

Add more tests for better code coverage:
What happens if begin and end are reversed? What if they are equal?

While there, add a few comments on the purpose of the tests.


# 1.3 06-Aug-2016 tb

If you see code like this, you know something's quite wrong
(present in some form since r1.1, still present in r1.31):

229 case 013:
230 if (randomize)
231 begin = BEGIN_DEF;
232 else if (reps == 0)
233 errx(1, "Must specify begin if reps == 0");
234 begin = ender - reps * s + s;

Add two tests that check for the intended behavior.


# 1.2 05-Aug-2016 tb

enable dddd regression test


# 1.1 30-Jul-2016 tb

Add regression tests for jot(1).

Adapted from FreeBSD's test suite by attila () stalphonsos ! com.

Minor tweaks:
* make tests work properly with 'make obj' and setting VERBOSE
* add 10 tests checking some examples in our man page
* disable the dddd test for now since it loops forever

Besides dddd, the following five tests fail: dhhd dhhd2 wp3 wp4 wp5
Suggested fixes for these are on tech@

Many thanks to attila for doing the hard work!


# 1.8 25-Jun-2018 tb

Add a regression test for running jot without any arguments.


Revision tags: OPENBSD_6_3_BASE
# 1.7 15-Dec-2017 tb

replace a hardcoded jot with ${JOT}


# 1.6 15-Dec-2017 tb

enable the 'wDn' test now that jot has been fixed.


# 1.5 11-Dec-2017 tb

Sergey Bronnikov's code coverage analysis shows that a few more code paths
could be exercised. Add a few tests to do just that. The wDn test is
currently disabled, as it will only pass after a commit to jot.c.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.4 06-Aug-2016 tb

Add more tests for better code coverage:
What happens if begin and end are reversed? What if they are equal?

While there, add a few comments on the purpose of the tests.


# 1.3 06-Aug-2016 tb

If you see code like this, you know something's quite wrong
(present in some form since r1.1, still present in r1.31):

229 case 013:
230 if (randomize)
231 begin = BEGIN_DEF;
232 else if (reps == 0)
233 errx(1, "Must specify begin if reps == 0");
234 begin = ender - reps * s + s;

Add two tests that check for the intended behavior.


# 1.2 05-Aug-2016 tb

enable dddd regression test


# 1.1 30-Jul-2016 tb

Add regression tests for jot(1).

Adapted from FreeBSD's test suite by attila () stalphonsos ! com.

Minor tweaks:
* make tests work properly with 'make obj' and setting VERBOSE
* add 10 tests checking some examples in our man page
* disable the dddd test for now since it loops forever

Besides dddd, the following five tests fail: dhhd dhhd2 wp3 wp4 wp5
Suggested fixes for these are on tech@

Many thanks to attila for doing the hard work!


# 1.7 15-Dec-2017 tb

replace a hardcoded jot with ${JOT}


# 1.6 15-Dec-2017 tb

enable the 'wDn' test now that jot has been fixed.


# 1.5 11-Dec-2017 tb

Sergey Bronnikov's code coverage analysis shows that a few more code paths
could be exercised. Add a few tests to do just that. The wDn test is
currently disabled, as it will only pass after a commit to jot.c.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.4 06-Aug-2016 tb

Add more tests for better code coverage:
What happens if begin and end are reversed? What if they are equal?

While there, add a few comments on the purpose of the tests.


# 1.3 06-Aug-2016 tb

If you see code like this, you know something's quite wrong
(present in some form since r1.1, still present in r1.31):

229 case 013:
230 if (randomize)
231 begin = BEGIN_DEF;
232 else if (reps == 0)
233 errx(1, "Must specify begin if reps == 0");
234 begin = ender - reps * s + s;

Add two tests that check for the intended behavior.


# 1.2 05-Aug-2016 tb

enable dddd regression test


# 1.1 30-Jul-2016 tb

Add regression tests for jot(1).

Adapted from FreeBSD's test suite by attila () stalphonsos ! com.

Minor tweaks:
* make tests work properly with 'make obj' and setting VERBOSE
* add 10 tests checking some examples in our man page
* disable the dddd test for now since it loops forever

Besides dddd, the following five tests fail: dhhd dhhd2 wp3 wp4 wp5
Suggested fixes for these are on tech@

Many thanks to attila for doing the hard work!