History log of /openbsd-current/regress/bin/ksh/edit/subr.sh
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.9 10-Jul-2021 anton

minor nits:
* compile the edit utility once
* emit a warning during timeout


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.8 21-Nov-2017 anton

Add tests for emacs editing mode in ksh. While here, improve the output on test
failure.


Revision tags: OPENBSD_6_2_BASE
# 1.7 22-Aug-2017 anton

Make the edit regress tests respect the KSH variable just like the main regress
tests. Makes it easier to run all tests using another binary:

$ pwd
/usr/src/regress/bin/ksh
$ make KSH=/usr/src/bin/ksh/obj/ksh


# 1.6 22-Jul-2017 anton

Add missing RCS IDs and zap redundant SRCS from Makefile.


# 1.5 19-Jul-2017 anton

The first version of the edit program used to test csh, ksh and mail was based
on the following reasoning: once the program to test has written some data it
has entered the main-loop and is by now ready to receive user input. At this
point it should be safe to start writing input and once the program once again
enters a blocking reading state, its done processing the input. This approach
was sensitive to timing and determining when a shell is done processing its
input (if ever) is tricky.

This iteration of the edit program takes a new approach and uses presence of a
prompt for synchronisation of I/O. It doesn't solve all problems but is a step
in the right direction.

Joint work with bluhm@


# 1.4 05-Jul-2017 anton

Revert previously added tests for file completion that are currently failing.

Prodded by bluhm@


# 1.3 05-Jul-2017 anton

Add tests for file completion in ksh emacs mode, currently failing.

While here, pass the v option to hexdump in order to output all data.


# 1.2 17-Jun-2017 anton

Pass the command to execute as an argument. Allows the edit program to be
reused.


# 1.1 05-Jun-2017 anton

Add new edit regress files.

Absent from my previous commit.


# 1.8 21-Nov-2017 anton

Add tests for emacs editing mode in ksh. While here, improve the output on test
failure.


Revision tags: OPENBSD_6_2_BASE
# 1.7 22-Aug-2017 anton

Make the edit regress tests respect the KSH variable just like the main regress
tests. Makes it easier to run all tests using another binary:

$ pwd
/usr/src/regress/bin/ksh
$ make KSH=/usr/src/bin/ksh/obj/ksh


# 1.6 22-Jul-2017 anton

Add missing RCS IDs and zap redundant SRCS from Makefile.


# 1.5 19-Jul-2017 anton

The first version of the edit program used to test csh, ksh and mail was based
on the following reasoning: once the program to test has written some data it
has entered the main-loop and is by now ready to receive user input. At this
point it should be safe to start writing input and once the program once again
enters a blocking reading state, its done processing the input. This approach
was sensitive to timing and determining when a shell is done processing its
input (if ever) is tricky.

This iteration of the edit program takes a new approach and uses presence of a
prompt for synchronisation of I/O. It doesn't solve all problems but is a step
in the right direction.

Joint work with bluhm@


# 1.4 05-Jul-2017 anton

Revert previously added tests for file completion that are currently failing.

Prodded by bluhm@


# 1.3 05-Jul-2017 anton

Add tests for file completion in ksh emacs mode, currently failing.

While here, pass the v option to hexdump in order to output all data.


# 1.2 17-Jun-2017 anton

Pass the command to execute as an argument. Allows the edit program to be
reused.


# 1.1 05-Jun-2017 anton

Add new edit regress files.

Absent from my previous commit.