Skip to content

Commit aa5f23e

Browse files
committed
Added 'make test' build target
1 parent 8a86505 commit aa5f23e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ before_install:
1313

1414
script:
1515
- make
16-
- bash tests/run.sh
16+
- make test
1717

1818
before_deploy:
1919
- git config --local user.name "scopeinfinity"

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ SOURCE_SNAPSHOT="\"$$(git rev-parse --short HEAD)$$(git diff --quiet || echo '_u
6363
# General Assumptions
6464
## Integer is 4 bytes
6565

66-
rebuild: clean all
66+
rebuild: clean all_artifacts
6767

68-
all: images binaries
68+
test: $(image_vmdk) $(wildcard tests/**/*)
69+
bash tests/run.sh
70+
71+
all_artifacts: images binaries
6972

7073
images: $(image_vmdk)
7174

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ bash before_install.sh
3434
3535
#### Development
3636
37+
##### Tests
38+
39+
At this moment tests works by injecting predefined ASM in the source code which halts
40+
the execution at the point of interest. After that tests can make use of QEMU monitor
41+
to verify the current state with expected state.
42+
43+
- `make test`
44+
3745
##### Debug
3846
3947
Execute QEMU in debug mode and setup GDB server.

0 commit comments

Comments
 (0)