X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Ftesting%2Frounder.sh;h=797dfbb854a255ec466bfd185bd3f4ab76a3d4be;hb=3232e15a9e8f08cd0fe1165ddf017733704c0c20;hp=3214ee683e4fd7544cb55d761d72758b19ec4b35;hpb=20e1a09bf9e638bbccf8a5169bc7a969ce1d7f3a;p=feisty_meow.git diff --git a/scripts/testing/rounder.sh b/scripts/testing/rounder.sh index 3214ee68..797dfbb8 100644 --- a/scripts/testing/rounder.sh +++ b/scripts/testing/rounder.sh @@ -6,7 +6,19 @@ test_to_run="$1" if [ -z "$test_to_run" ]; then - echo "This script requires a test or program to run as the first parameter." + echo " +rounder: this script requires a test or program to run as the first parameter. + +the parameter can be an arbitrarily complex bash command as long as it's +escaped properly. for example, this command will check a directory size and +then sleep for 10 seconds: + + rounder '\du -s ~/a_folder_i_watch; sleep 10' + +rounder will run this check, snoozing in between checks, until the universe +ends or something intervenes. note that without the sleep, the check would +occur very rapidly and spew output. +" exit 1 fi