Skip to content

Commit 7e4e86d

Browse files
committed
add bash test
1 parent cc8ad85 commit 7e4e86d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,24 @@ ghci:
5757

5858
# TEST
5959

60-
test: testunix testexamples
60+
test: testunix testexamples testbash
6161

6262
# run cross-platform and unix-specific shell tests with default shelltest build
6363
testunix: build
64-
$(SHELLTEST) tests -x /examples -x .windows -w $(DEFAULTEXE)
64+
$(SHELLTEST) tests -x /bash -x /examples -x .windows -w $(DEFAULTEXE)
6565

6666
# run cross-platform and windows-specific shell tests
6767
# (though if you are running make on windows, you may be able to, or have to, use testunix)
6868
testwindows:
69-
$(SHELLTEST) tests -x /examples -x .unix -w $(DEFAULTEXE)
69+
$(SHELLTEST) tests -x /bash -x /examples -x .unix -w $(DEFAULTEXE)
7070

7171
testexamples: build
7272
$(SHELLTEST) tests/examples
7373

74+
testbash: build
75+
! $(SHELLTEST) tests/bash
76+
$(SHELLTEST) tests/bash --shell /bin/bash
77+
7478
# run shell tests with several ghc versions
7579
# test-with-resolvers: build-with-resolvers $(foreach r,$(RESOLVERS),test-with-resolver-$r)
7680

tests/bash/dollar-quote.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo $'\'o\' `elem` p'
2+
>>>
3+
'o' `elem` p
4+
>>>= 0

0 commit comments

Comments
 (0)