File: server

package info (click to toggle)
godot 3.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 270,588 kB
  • sloc: cpp: 971,579; ansic: 617,953; xml: 80,302; asm: 17,498; cs: 14,559; python: 11,744; java: 9,681; javascript: 4,654; pascal: 1,176; sh: 896; objc: 529; makefile: 176
file content (28 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -eu

ARCH=$(dpkg --print-architecture)
if [ $ARCH = "amd64" ] || [ $ARCH = "arm64" ]; then
  CAN_FAIL="no"
else
  # other architectures can be flaky so allow failure
  CAN_FAIL="yes"
fi

# avoid writing in home directory during test
# See Debian Bug #986665
export HOME="${AUTOPKGTEST_TMP}/home" \
export XDG_CONFIG_HOME="${AUTOPKGTEST_TMP}/config" \
export XDG_DATA_HOME="${AUTOPKGTEST_TMP}/data" \
export XDG_CACHE_HOME="${AUTOPKGTEST_TMP}/cache" \

# test names extracted from main/tests/test_main.cpp
# skip "physics", "physics_2d", "render", and "gui" as they seem to hang and/or
#   use a lot of resources
# skip "gd_*" as they require a GDScript file as input
for test_name in string math basis transform oa_hash_map shaderlang crypto ordered_hash_map astar xml_parser theme
do
  echo "Running test: ${test_name}"
  godot3-server --test $test_name || [ $CAN_FAIL = "yes" ]
done