Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A very simple "make test" that uses cram and contains one test, based on
the fine work by @sjl a year ago. To use: $ sudo easy_install cram $ ./build.sh $ make test
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ Makefile.in | |
missing | ||
src/config.h* | ||
stamp-h1 | ||
tests/*.err | ||
the_silver_searcher.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Setup: | ||
|
||
$ source $TESTDIR/setup.sh | ||
$ echo Foo >> ./sample | ||
$ echo bar >> ./sample | ||
|
||
Case sensitive by default: | ||
|
||
$ ag foo sample | ||
$ ag FOO sample | ||
$ ag 'f.o' sample | ||
$ ag Foo sample | ||
Foo | ||
$ ag 'F.o' sample | ||
Foo | ||
|
||
Case insensitive mode: | ||
|
||
$ ag foo -i sample | ||
Foo | ||
$ ag foo --ignore-case sample | ||
Foo | ||
$ ag 'f.o' -i sample | ||
Foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# All cram tests should use this. Make sure that "ag" runs the version | ||
# of ag we just built, and make the output really simple. | ||
|
||
alias ag="$TESTDIR/../ag --nocolor --noheading --unrestricted" |