[BACK]Return to stresstest.sh CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

Annotation of dgamelaunch-openbsd/stresstest.sh, Revision 1.1

1.1     ! rubenllo    1: #!/bin/sh
        !             2: # stress-test script
        !             3: # requires users test1...test${max} to be defined in /dgl-login, /dgldir/ttyrec
        !             4: # and /dgldir/rcfiles.
        !             5: # current directory must contain the dgamelaunch to be used
        !             6:
        !             7: # Be sure to change these variables
        !             8: conffile="test2.conf"
        !             9: chrootdir="chroot-2"
        !            10: hackdir="/usr/local/lib/nethack"
        !            11: max=19
        !            12:
        !            13: # clean up previous cruft
        !            14: rm -f "$chrootdir"/dgldir/inprogress/*
        !            15: rm -f "$chrootdir$hackdir"/save/*[0-9]test[0-9]*
        !            16:
        !            17: echo -n "Starting processes:"
        !            18: export conffile i
        !            19: i=1
        !            20: while [ $i -le $max ]; do
        !            21:        xterm -e sh -c '(sleep 1; echo "ltest$i"; echo aa; echo -n py i; cat) | ./dgamelaunch -f "$conffile" '&
        !            22:        echo -n " $!"
        !            23:        sleep 0.1
        !            24:        i=$(($i+1))
        !            25: done
        !            26: echo

CVSweb