Changeset: 8fbac46adedd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8fbac46adedd
Added Files:
sql/benchmarks/tpcds/Tests/prio
sql/test/SQLite_regress/sqllogictest/Tests/prio
sql/test/Tests/prio
sql/test/bincopy/Tests/prio
Modified Files:
testing/Mtest.py.in
Branch: Mar2025
Log Message:
Implemented priorities for test directories.
If a test directory (i.e. .../Tests/) contains a file `prio', and that
file contains a number, that number is used to sort the test
directories (lower numbers first, default is 1000). It is beneficial
to do "slow" directories first when running parallel jobs.
diffs (43 lines):
diff --git a/sql/benchmarks/tpcds/Tests/prio b/sql/benchmarks/tpcds/Tests/prio
new file mode 100644
--- /dev/null
+++ b/sql/benchmarks/tpcds/Tests/prio
@@ -0,0 +1,1 @@
+1
diff --git a/sql/test/SQLite_regress/sqllogictest/Tests/prio
b/sql/test/SQLite_regress/sqllogictest/Tests/prio
new file mode 100644
--- /dev/null
+++ b/sql/test/SQLite_regress/sqllogictest/Tests/prio
@@ -0,0 +1,1 @@
+2
diff --git a/sql/test/Tests/prio b/sql/test/Tests/prio
new file mode 100644
--- /dev/null
+++ b/sql/test/Tests/prio
@@ -0,0 +1,1 @@
+4
diff --git a/sql/test/bincopy/Tests/prio b/sql/test/bincopy/Tests/prio
new file mode 100644
--- /dev/null
+++ b/sql/test/bincopy/Tests/prio
@@ -0,0 +1,1 @@
+3
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -4116,6 +4116,15 @@ def main(argv) :
if not errseen and diff > F_WARN:
errseen = True
else:
+ td = []
+ for d in testdirs:
+ try:
+ with openutf8(os.path.join(d, TSTSUFF, 'prio')) as f:
+ prio = int(f.read())
+ except:
+ prio = 1000
+ td.append((prio, d))
+ testdirs = [d for (prio, d) in sorted(td)]
if verbosity > 1:
print('\nRunning all tests in directories %s.\n' %
str(testdirs))
with
concurrent.futures.ThreadPoolExecutor(max_workers=opts.parallel) as tp:
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]