Update workflow
- Add test target to main makefile - Update .gitignore - Simplify test/makefile
This commit is contained in:
parent
08648324cb
commit
bc5091705b
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ umka_gen_devices_dat
|
||||
mkdirrange
|
||||
mkfilepattern
|
||||
lfbviewx
|
||||
randdir
|
||||
*.img
|
||||
*.img.xz
|
||||
*.img.gz
|
||||
|
4
makefile
4
makefile
@ -1,3 +1,4 @@
|
||||
KOLIBRIOS=/root/Sources/kolibrios
|
||||
FASM=fasm -dUEFI=1 -dextended_primary_loader=1 -dUMKA=1
|
||||
CC=gcc
|
||||
WARNINGS=-Wall -Wextra -Wduplicated-cond -Wduplicated-branches -Wlogical-op \
|
||||
@ -16,6 +17,9 @@ all: umka_shell umka_fuse umka_os umka_gen_devices_dat umka.sym umka.prp \
|
||||
|
||||
.PHONY: test
|
||||
|
||||
test: umka_shell
|
||||
@cd test && make clean all && cd ../
|
||||
|
||||
covpreproc: covpreproc.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
||||
|
||||
|
@ -49,14 +49,14 @@ acpi: $(acpi_tests)
|
||||
|
||||
%.out.log: %.t
|
||||
$(UMKA_SHELL) < $*.t > $@
|
||||
@ cmp $*.{out,ref}.log
|
||||
@ if [ -f "$*.ref.png" ]; then cmp $*.{out,ref}.png; fi
|
||||
@ cmp $*.out.log $*.ref.log
|
||||
@ if [ -f "$*.ref.png" ]; then cmp $*.out.png $*.ref.png; fi
|
||||
|
||||
collect_coverage:
|
||||
../covpreproc ../umka.lst 0x34 coverage.* > ../umka.cov
|
||||
|
||||
clean:
|
||||
rm -f ???_*.out.{log,png} coverage.*
|
||||
rm -f *.out.log *.out.png coverage.*
|
||||
|
||||
update_logs:
|
||||
for f in *ref.log; do cp $$(basename $$f .ref.log).out.log $$f; done
|
||||
|
Loading…
Reference in New Issue
Block a user