Skip to content

Instantly share code, notes, and snippets.

@JoshuaWierenga
Created January 9, 2023 05:47
Show Gist options
  • Save JoshuaWierenga/a91db8253bc37316ce19117a6d244ea2 to your computer and use it in GitHub Desktop.
Save JoshuaWierenga/a91db8253bc37316ce19117a6d244ea2 to your computer and use it in GitHub Desktop.
Script to test blink on cygwin, partially automated but need to test redbean and use blinkenlights manually.
#! /bin/sh
coreCount=$(($(nproc) + 1))
if [ "$1" != "-s" ]; then
make -j$coreCount clean
make -j$coreCount
printf "\n"
fi
printf "Running on "
uname -a
printf "\nRunning o//blink/blink ../test.com\n"
o//blink/blink ../test.com
printf "\n\nRunning o//blink/blink -j ../test.com\n"
o//blink/blink -j ../test.com
printf "\nRunning o//blink/blink ../redbean.com\n"
o//blink/blink ../redbean.com
printf "\n\nRunning o//blink/blink -j ../redbean.com\n"
o//blink/blink -j ../redbean.com
printf "\nRunning o//blink/blink third_party/cosmo/tinyhello.elf\n"
o//blink/blink third_party/cosmo/tinyhello.elf
printf "\n\nRunning o//blink/blink -j third_party/cosmo/tinyhello.elf\n"
o//blink/blink -j third_party/cosmo/tinyhello.elf
printf "\n\nRunning o//blink/blinkenlights ../test.com\n"
o//blink/blinkenlights ../test.com
printf "\nRunning o//blink/blinkenlights third_party/cosmo/tinyhello.elf\n"
o//blink/blinkenlights third_party/cosmo/tinyhello.elf
printf "\nRunning make -j$coreCount check"
make -j$coreCount check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment