-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor timeval macos test for better precision; use the correct t…
…imeval::tv_usec size * allow de-nicing macos bounce tests and kitty term if present * tweak sleep times in bounce macos tests
- Loading branch information
Showing
8 changed files
with
153 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
BUILD=.. | ||
|
||
make -C ${BUILD} all | ||
|
||
# De-nice ourselves and our kitty term emu for smooth fps; some root required | ||
|
||
DENICE= | ||
PID_KITTY= | ||
|
||
if [[ $# == 1 ]] && [[ $1 == "denice" ]] ; then | ||
|
||
DENICE="sudo nice -n -20" | ||
|
||
# Check if terminal is kitty -- normally our terminal should be our grandpatent | ||
|
||
PID_KITTY=`ps -p $PPID -o ppid=''` | ||
COMM_KITTY=`ps -p $PID_KITTY -o command='' -c` | ||
|
||
if [[ ${COMM_KITTY} != "kitty" ]] ; then | ||
PID_KITTY= | ||
fi | ||
fi | ||
|
||
# Boost kitty to top warp | ||
|
||
if [[ ! -z ${PID_KITTY} ]] ; then | ||
sudo renice -n -20 -p ${PID_KITTY} | ||
fi | ||
|
||
# Hide term cursor before loading REL; restore term cursor | ||
# upon termination | ||
|
||
tput civis | ||
${DENICE} ${BUILD}/elvenrel test_bounce_neon.o | ||
tput cnorm | ||
|
||
# De-boost kitty to normal warp | ||
|
||
if [[ ! -z ${PID_KITTY} ]] ; then | ||
sudo renice -n 20 -p ${PID_KITTY} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters