1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

[tools.testspr] move file testspr/test.sh -> tools/testspr/test.sh

This commit is contained in:
bolero-MURAKAMI 2013-09-26 22:43:57 +09:00
parent 6a58eade0e
commit 3fef178b7c
11 changed files with 374 additions and 159 deletions

View file

@ -56,8 +56,8 @@ def main():
return any(pool.map(
compile,
[format_command(x, y)
for x in range(0, opts.width, opts.tile_width)
for y in range(0, opts.height, opts.tile_height)
for x in range(0, opts.width, opts.tile_width)
]
))

View file

@ -46,7 +46,7 @@ while [ -n "$1" ]; do
-H|--tile-height) tile_height=$2; shift 2;;
-D|--define) user_macros=(${user_macros[@]} "$2"); shift 2;;
-I|--include) include_paths=(${include_paths[@]} "$2"); shift 2;;
-P|--max_procs) max_procs=$2; shift 2;;
-P|--max-procs) max_procs=$2; shift 2;;
-f|--force) force=1; shift;;
--help) use_help=1; shift;;
--) shift; break;;
@ -166,7 +166,7 @@ if [ ${max_procs} -eq 1 ]; then
done
echo ""
let "y_elapsed=${SECONDS}-${y_start}"
let y_elapsed=${SECONDS}-${y_start}
echo " elapsed = ${y_elapsed}s"
done
else
@ -178,15 +178,14 @@ else
"--tile_width=${tile_width}" "--tile_height=${tile_height}"" "\
"--compile_options=${compile_options}" "--darkcult_cpp=${darkcult_cpp}" \
"--max_procs=${max_procs}"
echo ""
if [ $? -ne 0 ]; then
echo ""
echo >&2 "error: compile failed."
exit 1
fi
echo ""
fi
let "elapsed=${SECONDS}-${start}"
let elapsed=${SECONDS}-${start}
echo " elapsed(total) = ${elapsed}s"
for ((y=0; y<height; y+=tile_height)); do