bsdcontrol.rb/bin/run-unprivileged-tests

12 lines
287 B
Text
Raw Normal View History

2024-03-08 00:27:20 +01:00
#!/bin/sh
set -e
2024-03-08 02:28:48 +01:00
if [ $(id -u) -ne 0 ]; then
rake clean clobber compile
2024-05-12 05:53:21 +02:00
for file in test/readme_examples_test.rb test/unprivileged/*_test.rb; do
2024-03-08 02:28:48 +01:00
ruby -Ilib ${file} --no-use-color
done
else
echo "You must be an unprivileged user to run these tests."
exit 1
fi