Skip to content

Commit

Permalink
updated testbot
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Nov 25, 2024
1 parent dbf05fd commit d4916f3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testbot.m2
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@
-- If you wish, you can change testDir to any other directory.
testDir = currentDirectory() | "tests/"

importFrom_Core "addTest"
testFiles = select(readDirectory testDir,
file -> match("\\.m2$", file) and file != "testbot.m2")
printerr("Found ", toString(#testFiles), " test file(s) matching '", testDir, "*.m2'.")
TEST(testFiles / (filename -> testDir | "/" | filename), FileName => true)

-- workaround for https://github.com/Macaulay2/M2/issues/2835
importFrom_Core {"PackageIsLoaded"}
User.PackageIsLoaded = true
apply(testFiles / (filename -> testDir | "/" | filename), addTest)

-- run the tests
check(User, Verbose => true)

0 comments on commit d4916f3

Please sign in to comment.