Skip to content

Commit

Permalink
Add test to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
QazCetelic authored Feb 21, 2024
1 parent 757ce7a commit 2edb3e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ run:
ld.gold -s -static -o sudoku sudoku.o
cat ./example_sudoku.txt | ./sudoku

test:
nasm -felf64 sudoku.asm
ld.gold -s -static -o sudoku sudoku.o
cat ./example_sudoku.txt | ./sudoku | grep -qPz "^483921657\n967345821\n251876493\n548132976\n729564138\n136798245\n372689514\n814253769\n695417382\n" && echo "Matches known result"

build:
nasm -felf64 sudoku.asm
ld.gold -s -static -o sudoku sudoku.o

0 comments on commit 2edb3e6

Please sign in to comment.