aco: ensure readfirstlane subdword operands are always dword aligned
[mesa.git] / .gitlab-ci / bare-metal / init.sh
1 #!/bin/sh
2
3 set -ex
4
5 mount -t proc none /proc
6 mount -t sysfs none /sys
7 mount -t devtmpfs none /dev || echo possibly already mounted
8 mkdir -p /dev/pts
9 mount -t devpts devpts /dev/pts
10 mount -t tmpfs tmpfs /tmp
11
12 . /set-job-env-vars.sh
13
14 # Store Mesa's disk cache under /tmp, rather than sending it out over NFS.
15 export XDG_CACHE_HOME=/tmp
16
17 echo "nameserver 8.8.8.8" > /etc/resolv.conf
18
19 # Overwrite traces.yml file with the baremetal version
20 cp /install/traces-baremetal.yml /install/traces.yml
21
22 if sh $BARE_METAL_TEST_SCRIPT; then
23 OK=1
24 else
25 OK=0
26 fi
27
28 # upload artifacts via webdav
29 WEBDAV=$(cat /proc/cmdline | tr " " "\n" | grep webdav | cut -d '=' -f 2 || true)
30 if [ -n "$WEBDAV" ]; then
31 find /results -type f -exec curl -T {} $WEBDAV/{} \;
32 fi
33
34 if [ $OK -eq 1 ]; then
35 echo "bare-metal result: pass"
36 else
37 echo "bare-metal result: fail"
38 fi
39
40 # Wait until the job would have timed out anyway, so we don't spew a "init
41 # exited" panic.
42 sleep 6000