aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/source/travis_matrix.py
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/source/travis_matrix.py')
-rw-r--r--.github/workflows/source/travis_matrix.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/source/travis_matrix.py b/.github/workflows/source/travis_matrix.py
new file mode 100644
index 000000000..87c27a8cf
--- /dev/null
+++ b/.github/workflows/source/travis_matrix.py
@@ -0,0 +1,22 @@
+#! /usr/bin/env python
+
+# Concatenation of tests in each of the 6 elements in Travis matrix
+f = open('./travis_matrix_elements.txt') ; matrix_elements = f.readlines() ; f.close()
+# All tests read by prepare_travis_tests.py
+f = open('./travis_all_tests.txt') ; all_tests = f.readlines() ; f.close()
+
+# Now let's make sure these two are equal
+
+# Remove these elements from both lists, as they are are not test names
+elements_to_remove = ['[main]\n', '[AMReX]\n', '[source]\n', '[extra-PICSAR]\n']
+for element in elements_to_remove:
+ for x in range(matrix_elements.count(element)):
+ matrix_elements.remove(element)
+ for x in range(all_tests.count(element)):
+ all_tests.remove(element)
+
+# Sort lists, and make sure they are equal
+matrix_elements.sort()
+all_tests.sort()
+
+assert( matrix_elements == all_tests )