Skip to content

Commit

Permalink
Update enhanced CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morisja committed Oct 10, 2024
1 parent c8106cd commit 26d407c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ci/test_nspawn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@

sudo dpkg -i nsncd*.deb

sudo useradd nsncdtest


sudo debootstrap --variant=minbase stable /stable-chroot http://deb.debian.org/debian/
sdns="sudo systemd-nspawn -q --bind-ro /var/run/nscd/socket:/var/run/nscd/socket -D /stable-chroot"

rc=0

sudo useradd nsncdtest
echo -e "foo1\t65000/tcp" | tee -a /etc/services
echo -e "foo1\t65000/udp" | tee -a /etc/services

${sdns} getent passwd nsncdtest || rc=1
${sdns} getent group nsncdtest || rc=1
for i in $(seq 1 20); do
${sdns} getent services 65000 || rc=1
${sdns} getent services 65000/tcp || rc=1
${sdns} getent services 65000/udp || rc=1
${sdns} getent services foo1/tcp || rc=1
${sdns} getent services foo1/udp || rc=1
done

exit ${rc}

0 comments on commit 26d407c

Please sign in to comment.