From 5bac00f99d070c5c26d4dd752396dc36d5486775 Mon Sep 17 00:00:00 2001 From: Matteo Golin Date: Wed, 17 Jan 2024 09:48:59 -0500 Subject: [PATCH] Updated test workflows to include test for emulator and use consistent naming. --- .github/workflows/asm_tests.yml | 11 +++++------ .github/workflows/emulator_tests.yml | 16 ++++++++++++++++ assembler/Makefile | 2 +- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/emulator_tests.yml diff --git a/.github/workflows/asm_tests.yml b/.github/workflows/asm_tests.yml index a1e86af..73c9a33 100644 --- a/.github/workflows/asm_tests.yml +++ b/.github/workflows/asm_tests.yml @@ -2,16 +2,15 @@ name: Test Assembler on: push: - branches: [ "main" ] + branches: ["main"] pull_request: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: make check - working-directory: ./assembler - run: make check + - uses: actions/checkout@v3 + - name: Testing + working-directory: ./assembler + run: make test diff --git a/.github/workflows/emulator_tests.yml b/.github/workflows/emulator_tests.yml new file mode 100644 index 0000000..28e274a --- /dev/null +++ b/.github/workflows/emulator_tests.yml @@ -0,0 +1,16 @@ +name: Test Emulator + +on: + push: + branches: ["main"] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Testing + working-directory: ./emulator + run: make test diff --git a/assembler/Makefile b/assembler/Makefile index af647b6..12cddd8 100644 --- a/assembler/Makefile +++ b/assembler/Makefile @@ -37,7 +37,7 @@ tester: %.o: %.c $(CC) $(CFLAGS) $(WARNINGS) -o $@ -c $< -check: assembler tester +test: assembler tester @echo "RUNNING TESTS" $(abspath $(TEST_OUT)) $(abspath $(TEST_PROGRAMS)) $(abspath $(OUT))