bsdcontrol.rb/bin/run-superuser-tests

13 lines
262 B
Text
Raw Normal View History

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