#!/bin/bash ../ntc in=../examples/bf.nct target=386 pdbg=0 > bf.asm nasm -felf -o bf.o bf.asm ld -dynamic-linker /lib/ld-linux.so.2 -melf_i386 -o bf bf.o -lc diff -u mandelbrot_expected.txt <(./bf < ../examples/mandelbrot.b | head -c6239) if [ $? == 0 ] ; then echo -e "Mandelbrot test \e[1;32msuccessful\e[0m." else echo -e "Mandelbrot test \e[1;31mfailed\e[0m." fi