Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TESTS: added quick-test/run-all.r which runs all Red and Red-System t…
…ests
- Loading branch information
1 parent
d6aabe5
commit 827ccb8
Showing
3 changed files
with
59 additions
and
6 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 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,46 @@ | ||
REBOL [ | ||
Title: "Builds and Runs All Red and Red/System Tests" | ||
File: %run-all.r | ||
Author: "Peter W A Wood" | ||
Version: 0.1.0 | ||
License: "BSD-3 - https://github.com/dockimbel/Red/blob/master/BSD-3-License.txt" | ||
] | ||
;; function to find and run-tests | ||
run: func [dir [file!]][ | ||
qt/tests-dir: dir | ||
foreach line read/lines dir/run-all.r [ | ||
if any [ | ||
find line "===start-group" | ||
find line "--run-" | ||
][ | ||
do line | ||
] | ||
] | ||
] | ||
|
||
;; supress script messages | ||
store-quiet-mode: system/options/quiet | ||
system/options/quiet: true | ||
|
||
do %quick-test.r | ||
|
||
;; run the tests | ||
print rejoin ["Quick-Test v" system/script/header/version] | ||
print rejoin ["REBOL " system/version] | ||
|
||
start-time: now/precise | ||
|
||
***start-run-quiet*** "Complete Red Test Suite" | ||
|
||
run %../red/tests/ | ||
run %../red-system/tests/ | ||
|
||
***end-run-quiet*** | ||
|
||
end-time: now/precise | ||
print [" in" difference end-time start-time newline] | ||
system/options/quiet: store-quiet-mode | ||
ask "hit enter to finish" | ||
print "" | ||
|
||
|