Commit 688ac005 authored by Lucas Kanashiro's avatar Lucas Kanashiro

Allow execution of smoke test in non amd64 architectures

parent e27f3769
#!/bin/sh
eval "$(dpkg-architecture --print-set)"
case "$DEB_HOST_ARCH" in
(i?86)
echo "i586"
;;
(armel)
echo "armv5el"
;;
(armhf)
echo "armv7hl"
;;
# add any more special cases here
(*)
echo "$DEB_HOST_GNU_CPU"
;;
esac
......@@ -21,10 +21,12 @@ sed -i 's/obs:5352/localhost:5352/g' /etc/default/obsworker
sed -i 's/obs:5252/localhost:5252/g' /etc/default/obsworker
sed -i 's/INSTANCES="0"/INSTANCES="1"/g' /etc/default/obsworker
# start worker
service obsworker start
# Debian and OBS use different nomenclature for architectures
obs_arch="$(debian/deb-arch-to-obs-arch)"
mkdir "$AUTOPKGTEST_TMP"/data
cat << EOF > "$AUTOPKGTEST_TMP"/data/test_meta_prj_Debian_9
<project name="Debian:9">
......@@ -32,8 +34,8 @@ cat << EOF > "$AUTOPKGTEST_TMP"/data/test_meta_prj_Debian_9
<description>Debian 9 DoD</description>
<person userid="Admin" role="maintainer"/>
<repository name="main">
<download arch="x86_64" url="http://deb.debian.org/debian/stretch/main" repotype="deb"/>
<arch>x86_64</arch>
<download arch="$obs_arch" url="http://deb.debian.org/debian/stretch/main" repotype="deb"/>
<arch>$obs_arch</arch>
</repository>
</project>
EOF
......@@ -45,7 +47,7 @@ cat << EOF > "$AUTOPKGTEST_TMP"/data/test_meta_prj_test
<person userid="Admin" role="maintainer"/>
<repository name="Debian_9.0">
<path project="Debian:9" repository="main"/>
<arch>x86_64</arch>
<arch>$obs_arch</arch>
</repository>
</project>
EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment