Path: blob/main/jobs/FreeBSD-main-amd64-test_ltp/meta/run.sh
1130 views
#!/bin/sh12METADIR=/meta34PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin5export PATH67# Enable services needed by tests8sysrc linux_enable="YES"9for i in proc sys tmp dev; do10mkdir -p /compat/linux/$i11done12service linux start1314# runltp creates nobody, bin, and daemon users, but not root15echo 'root:x:0:0:root::' > /compat/linux/etc/passwd1617# runltp creates nobody, bin, daemon, sys, and users groups, but not root18echo 'root:x:0:' > /compat/linux/etc/group1920# Workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=24295521kldload ext2fs2223# Disable tests that hang undefinitely.24cat > /compat/linux/ltp-skipfile.conf << END25rt_sigtimedwait01 rt_sigtimedwait0126sigtimedwait01 sigtimedwait0127sigwaitinfo01 sigwaitinfo0128inotify06 inotify0629pidns05 pidns0530utstest_unshare_3 utstest_unshare_331utstest_unshare_4 utstest_unshare_432kill10 kill1033mmap_11-2 mmap_11-234mmap_11-3 mmap_11-335mmap_24-1 mmap_24-136sigaction_16-1 sigaction_16-137END3839# Add Open POSIX to the default run.40echo "openposix" >> /compat/linux/opt/ltp/scenario_groups/default4142mdconfig -s 512m4344set +e45yes | chroot /compat/linux /opt/ltp/runltp -Q -S /ltp-skipfile.conf -b /dev/md0 -pl /ltp-results.log46echo $? > ${METADIR}/runltp.error47set -e4849mv -v /compat/linux/ltp-results.log ${METADIR}505152