Mercurial > octave
changeset 31321:1d99e68c05c0
GitHub-CI: Add step to test creating a history file with nested directory (bug #62365).
* .github/workflows/make.yaml (ubuntu, macos, windows): Add step to test if
creating a history works if several levels of directories are not existing.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 20 Oct 2022 17:47:09 +0200 |
parents | 6a5e4ef80a95 |
children | 42990806eb9d |
files | .github/workflows/make.yaml |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/make.yaml Sat Oct 15 17:36:34 2022 +0200 +++ b/.github/workflows/make.yaml Thu Oct 20 17:47:09 2022 +0200 @@ -137,6 +137,14 @@ [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || exit 1 echo No unknown failing tests. + - name: test history file creation + # see bug #62365 + # Pipe to an interactive session to trigger appending the command to + # the history. This will trigger the creation of a history file. + run: | + echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i + [ -f ./a/b/c/history ] || echo "::warning::Creating history file failed" + macos: runs-on: ${{ matrix.os }} @@ -299,6 +307,14 @@ [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || echo "::warning::At least one regression in test suite" echo Finished analyzing test suite results. + - name: test history file creation + # see bug #62365 + # Pipe to an interactive session to trigger appending the command to + # the history. This will trigger the creation of a history file. + run: | + echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i + [ -f ./a/b/c/history ] || echo "::warning::Creating history file failed" + windows: runs-on: ${{ matrix.os }} @@ -520,6 +536,14 @@ [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || echo "::warning::At least one regression in test suite" echo Finished analyzing test suite results. + - name: test history file creation + # see bug #62365 + # Pipe to an interactive session to trigger appending the command to + # the history. This will trigger the creation of a history file. + run: | + echo "history_file (make_absolute_filename ('./a/b/c/history')); disp ('test')" | ./.build/run-octave -i + [ -f ./a/b/c/history ] || echo "::warning::Creating history file failed" + - name: install and compress if: matrix.msystem == 'MINGW64' continue-on-error: true