-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Move tests into a new directory.
In preparation for splitting of the test files into a test logic and dialect-specific setup parts, the tests are moved into a new directory, `tests'. The shebangs are removed from all the files. Only one was actually executable, so I get the impression they were not invoked like that anyway. Even test-all.scm had a note to run it using `csi -s test-all.scm'. It also hard-coded the csi location to /usr/local/bin/sci, which is sub-optimal, however probably the best one can do in chicken. * manifest.scm: Add coreutils, for dirname. * test-all.scm: Delete file. * tests/all: Replacement for test-all.scm, written in shell. * tests/test-cset.scm: Move from test-cset.scm. * tests/test-irregex-from-gauche.scm: Move from test-irregex-gauche.scm. * tests/test-irregex-pcre.scm: Move from test-irregex-pcre.scm. Remove shebang. * tests/test-irregex-scsh.scm: Move from test-irregex-scsh.scm. * tests/test-irregex-utf8.scm: Move from test-irregex-utf8.scm. * tests/test-irregex.scm: Move from test-irregex.scm. Change mode to 0644. Remove shebang. * tests/README: New file.
- Loading branch information
Showing
10 changed files
with
29 additions
and
31 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
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
This directory contains the tests for irregex. | ||
|
||
To execute all tests, run the following script: | ||
|
||
./tests/all | ||
|
||
This script can be executed from any location, so both ./tests/all and ./all | ||
(assuming you are in tests directory) are valid invocations. | ||
|
||
To execute just a specific test suite, run the desired file from the root of the | ||
repository using the appropriate scheme interpret, so for example: | ||
|
||
csi -s ./tests/test-irregex-utf8.scm |
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,12 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
tdir=$(dirname "$0") | ||
root=$tdir/.. | ||
|
||
cd -- "$root" | ||
|
||
for t in tests/test-*.scm; do | ||
printf '* %s:\n' "$t" | ||
csi -s "$t" | ||
done |
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/usr/local/bin/csi -script | ||
|
||
(cond-expand | ||
(chicken-5 (import test)) | ||
(else (use test extras utils))) | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
;;; Adapted from SCSH SRE tests by Christoph Hetz | ||
|
||
(cond-expand | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/usr/local/bin/csi -script | ||
|
||
(cond-expand | ||
(chicken-5 (import test)) | ||
(else (use test extras utils))) | ||
|
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