+ - git clone --depth=1 --branch=master https://gitlab.com/xonotic/darkplaces.git darkplaces
+ - cd darkplaces && make sv-debug -j $(nproc) && export ENGINE="$PWD/darkplaces-dedicated -xonotic"
+ - cd ..
+
+ - wget -O data/g-23.pk3 http://beta.xonotic.org/autobuild-bsp/latest/g-23.pk3
+ - make
+ - EXPECT=07fdfd9a19025920a599995730eb2a78
+ - HASH=$(${ENGINE} -noconfig -nohome +exec serverbench.cfg
+ | tee /dev/stderr
+ | grep '^:'
+ | grep -v '^:gamestart:'
+ | grep -v '^:anticheat:'
+ | md5sum | awk '{ print $1 }')
+ - echo 'expected:' $EXPECT
+ - echo ' actual:' $HASH
+ - test "$HASH" == "$EXPECT"
+ - exit $?
+
+test_sv_unit:
+ stage: test
+ script:
+ - git clone --depth=1 --branch=master https://gitlab.com/xonotic/darkplaces.git darkplaces
+ - cd darkplaces && make sv-debug -j $(nproc) && export ENGINE="$PWD/darkplaces-dedicated -xonotic"
+ - cd ..
+
+ - mkdir maps && wget -O maps/gitlab-ci.bsp https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/_init/_init.bsp