Skip to content

Commit

Permalink
asm files are compiled at test run
Browse files Browse the repository at this point in the history
  • Loading branch information
laudominik committed Sep 19, 2023
1 parent 80ee844 commit 1e0f856
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
boost_version: ${{env.BOOST_VERSION}}
cache: true

- name: Build assembly
working-directory: ${{github.workspace}}
run: ./scripts/assemble.sh

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vscode
build/
test/data/compiled/

# Prerequisites
*.d
Expand Down
2 changes: 0 additions & 2 deletions test/data/asm/push.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
; usage: InstructionTest.testPush

.global _start
_start:
push eax
Expand Down
1 change: 0 additions & 1 deletion test/data/compiled/noops

This file was deleted.

1 change: 0 additions & 1 deletion test/data/compiled/push

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion test/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TEST(MemoryTest, testRead){
}

TEST(MemoryTest, testOpenFile){
TestableMemory memory("../../test/data/compiled/example_hex_file");
TestableMemory memory("../../test/data/example_hex_file");
ASSERT_EQ(memory.size(), testMemorySize);
EXPECT_EQ(memory.read<Byte>(0x0), 'a');
EXPECT_EQ(memory.read<Byte>(0x1), 'b');
Expand Down

0 comments on commit 1e0f856

Please sign in to comment.