From 2edb3e63fa3ecd313b3621b3578def9de0321491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B2=A0=5F=E0=B2=A0?= <51381523+QazCetelic@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:20:46 +0100 Subject: [PATCH] Add test to makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 7e046bb..74fa15a 100644 --- a/Makefile +++ b/Makefile @@ -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