Commit b342c88a authored by Will Hilton's avatar Will Hilton

And... the test.sh now accounts for # of processor cores. How sweet is that.

parent 8e159ba3
#!/bin/sh
DUKBOOTS="${1:-./dukboots}"
EXPECT='[".","..","app_push_argv.c","app_push_dir.c","app_push_environ.c","main.c","native_import.c","native_print.c"]'
NUM_CORES="$(grep -c ^processor /proc/cpuinfo)"
echo "$NUM_CORES cores"
EXPECT_ONE='[".","..","app_push_argv.c","app_push_dir.c","app_push_environ.c","main.c","native_import.c","native_print.c"]'
EXPECT="$EXPECT_ONE"
for n in $(seq 2 $NUM_CORES); do
EXPECT="$EXPECT
$EXPECT_ONE"
done
RESULT="$($DUKBOOTS example.js)"
echo "$EXPECT"
echo "---"
echo "$RESULT"
test "$RESULT" = "$EXPECT"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment