pysvp64db: fix traversal
[openpower-isa.git] / .gitlab-ci.yml
index fe617b7cebf998a89c36acfe066df4a4adce2a0f..1cfbf1fc9a1d8973949481ecd26f408d08f6a432 100644 (file)
@@ -24,6 +24,7 @@ build:
             cmake
             curl
             flex
+            g++-powerpc64le-linux-gnu
             gawk
             git
             gperf
@@ -49,7 +50,12 @@ build:
         - export CCACHE_COMPILERCHECK=content
         - ccache --zero-stats || true
         - ccache --show-stats || true
-        - python3 -m pip install --user pytest-xdist==3.3.1 pytest==7.3.1
+        # one package per line to simplify sorting, git diff, etc.
+        - >-
+            python3 -m pip install --user
+            pytest-xdist==3.3.1
+            pytest==7.3.1
+            pytest-subtests==0.11.0
     script:
         - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys
         - pushd yosys
@@ -120,4 +126,10 @@ build:
 
         - python3 -m openpower.syscalls json linux > src/openpower/syscalls/syscalls.json
 
-        - SILENCELOG='!*,default' pytest -v --maxfail=10
+        # maxschedchunk substantially speeds up testing -- by ~2x on CI
+        # it is supported by the version of pytest-xdist used by both this file
+        # and the dev-env-setup scripts (which should be the same versions).
+        #
+        # maxfail=10 because otherwise the output log is too long and gitlab
+        # truncates it, removing the testing summary.
+        - SILENCELOG=1 SIM_NO_VCD=1 pytest -v --maxfail=10 --maxschedchunk=1