Skip to content

Commit

Permalink
screened 2024-05-18 13:14:30+00:00
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrk committed May 18, 2024
1 parent a640c53 commit 1986047
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# - ubuntu-22.04
# - macos-11
# - macos-12
# - macos-13
- macos-13
# - windows-2019
- windows-2022
ghc:
Expand All @@ -32,7 +32,7 @@ jobs:
env:
builddocs: ${{ matrix.ghc == '9.4.5' }}
runtests: ${{ matrix.ghc == '8.4.4' || matrix.ghc == '9.6.4' }}
tests-to-run: -t=issue1465_ortryrunning -t=issue2333
tests-to-run: -t=issue1465_ortryrunning -t=issue2333 -t=EXAMPLE
testcmd: cabal run -- darcs-test -f=2
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# avoid occasional timeouts in test scripts that access darcs.net:
Expand Down
4 changes: 3 additions & 1 deletion tests/EXAMPLE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ cd R
# change the working tree
mkdir d e
echo 'Example content.' > d/f
darcs record -lam 'Add d/f and e.' --debug 2>../RLOG
echo "content of _darcs/rebase:" >&2
cat _darcs/rebase >&2
darcs record -lam 'Add d/f and e.' --debug
darcs mv d/f e/
darcs record -am 'Move d/f to e/f.'
# push patches from R to S
Expand Down
8 changes: 4 additions & 4 deletions tests/issue1465_ortryrunning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ darcs changes > changes-1
darcs unrecord -a
grep fake changes-1

# on macOS running darcs in this way fails
if ! (echo $DARCSDIR | grep -q osx) then
# # on macOS running darcs in this way fails
# if ! (echo $DARCSDIR | grep -q osx) then
# Bad editor: fall through to the next choice
DARCS_EDITOR=$FAKE_EDITOR_HOME/editor-bad \
PATH=.:$DARCSDIR \
PATH=.:$DARCSDIR:$PATH \
darcs record -lam 'Initial commit.' --edit </dev/null &> log-2
darcs changes > changes-2
darcs unrecord -a
grep "Initial" changes-2
egrep -i 'vi|emacs|nano|edit' log-2
fi
# fi

# Normal failure (eg. user hit ^-C)
# If Darcs did the right thing, the output won't make any mention of
Expand Down
5 changes: 0 additions & 5 deletions tests/lib
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ if os_is_windows; then
fi
}

# trick: OS-detection (if needed)
os_is_macos() {
echo $OS | grep -i mac
}

if os_is_windows; then
# some installations of bash on Windows do not include \r by default
# which breaks a lot of tests
Expand Down

0 comments on commit 1986047

Please sign in to comment.