Skip to content
Permalink
fc887d595d
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (20 sloc) 718 Bytes
#!/bin/bash
# This script is privided to you to assemble all unit tests for you.
# 1) First ensure that that your assembler is compiled
# 2) Then, run "$ bash assemble_all.sh".
# A new directory "assembled tests will be generated, populated with all the binary tests.
# Note: "$ make clean" will remove these tests
if [ ! -d assembled_tests ]; then
echo "Creating \"assembled_tests\" directory..."
mkdir assembled_tests
fi
if [ ! -f ../assembler/assembler ]; then
echo "Error: Assembler is not compiled."
exit
fi
for test in unittests/*.asm; do
echo "Assembling test \"$test\"..."
testname=$(basename $test .asm)
../assembler/assembler $test assembled_tests/$testname.out > /dev/null 2>&1
done
echo "Done!"