2022-02-09 02:27:49 +01:00
|
|
|
ifndef HOST
|
|
|
|
$(error "Set HOST variable to linux/windows")
|
|
|
|
endif
|
|
|
|
|
2020-03-08 03:02:53 +01:00
|
|
|
ifndef COVERAGE
|
2021-12-13 13:58:19 +01:00
|
|
|
UMKA_SHELL ?= ../umka_shell
|
2020-03-08 03:02:53 +01:00
|
|
|
else
|
2021-12-13 13:58:19 +01:00
|
|
|
UMKA_SHELL ?= sudo taskset 1 ../umka_shell -c
|
2020-03-07 23:44:13 +01:00
|
|
|
endif
|
|
|
|
|
2020-03-11 04:02:33 +01:00
|
|
|
xfs_tests := $(addsuffix .out.log, $(basename $(wildcard *\#xfs_*.t)))
|
2022-03-11 21:08:20 +01:00
|
|
|
exfat_tests := $(addsuffix .out.log, $(basename $(wildcard *\#exfat_*.t)))
|
2020-03-11 04:02:33 +01:00
|
|
|
s05k_tests := $(addsuffix .out.log, $(basename $(wildcard *\#s05k_*.t)))
|
|
|
|
s4k_tests := $(addsuffix .out.log, $(basename $(wildcard *\#s4k_*.t)))
|
|
|
|
f30_tests := $(addsuffix .out.log, $(basename $(wildcard *\#f30_*.t)))
|
|
|
|
f70_tests := $(addsuffix .out.log, $(basename $(wildcard *\#f70_*.t)))
|
|
|
|
f70s0_tests := $(addsuffix .out.log, $(basename $(wildcard *\#f70s0_*.t)))
|
|
|
|
f70s1_tests := $(addsuffix .out.log, $(basename $(wildcard *\#f70s1_*.t)))
|
|
|
|
f70s5_tests := $(addsuffix .out.log, $(basename $(wildcard *\#f70s5_*.t)))
|
|
|
|
lookup_tests := $(addsuffix .out.log, $(basename $(wildcard *\#lookup_*.t)))
|
|
|
|
bug_tests := $(addsuffix .out.log, $(basename $(wildcard *\#bug_*.t)))
|
|
|
|
xattr_tests := $(addsuffix .out.log, $(basename $(wildcard *\#xattr_*.t)))
|
|
|
|
unicode_tests := $(addsuffix .out.log, $(basename $(wildcard *\#unicode_*.t)))
|
|
|
|
v5_tests := $(addsuffix .out.log, $(basename $(wildcard *\#v5_*.t)))
|
|
|
|
draw_tests := $(addsuffix .out.log, $(basename $(wildcard *\#draw_*.t)))
|
|
|
|
coverage_tests := $(addsuffix .out.log, $(basename $(wildcard *\#coverage_*.t)))
|
2020-05-12 01:29:29 +02:00
|
|
|
i40_tests := $(addsuffix .out.log, $(basename $(wildcard *\#i40_*.t)))
|
|
|
|
net_tests := $(addsuffix .out.log, $(basename $(wildcard *\#net_*.t)))
|
|
|
|
arp_tests := $(addsuffix .out.log, $(basename $(wildcard *\#arp_*.t)))
|
2020-05-18 16:13:56 +02:00
|
|
|
acpi_tests := $(addsuffix .out.log, $(basename $(wildcard *\#acpi_*.t)))
|
2022-05-28 23:55:13 +02:00
|
|
|
input_tests := $(addsuffix .out.log, $(basename $(wildcard *\#input_*.t)))
|
2018-05-19 17:48:10 +02:00
|
|
|
|
2022-05-28 23:55:13 +02:00
|
|
|
all: xfs exfat s05k s4k f30 f70 f70s0 f70s1 f70s5 lookup bug xattr unicode v5 \
|
|
|
|
draw coverage i40 net arp acpi input
|
2019-10-27 02:54:38 +02:00
|
|
|
@echo all tests passed
|
2018-05-19 17:48:10 +02:00
|
|
|
|
2019-11-12 02:22:19 +01:00
|
|
|
xfs: $(xfs_tests)
|
2022-03-11 21:08:20 +01:00
|
|
|
exfat: $(exfat_tests)
|
2019-11-12 02:22:19 +01:00
|
|
|
s05k: $(s05k_tests)
|
|
|
|
s4k: $(s4k_tests)
|
2019-10-25 03:48:13 +02:00
|
|
|
f30: $(f30_tests)
|
2019-11-12 02:22:19 +01:00
|
|
|
f70: $(f70_tests)
|
2019-10-28 04:10:38 +01:00
|
|
|
f70s0: $(f70s0_tests)
|
|
|
|
f70s1: $(f70s1_tests)
|
|
|
|
f70s5: $(f70s5_tests)
|
2019-11-12 02:22:19 +01:00
|
|
|
lookup: $(lookup_tests)
|
|
|
|
bug: $(bug_tests)
|
2019-12-08 02:32:07 +01:00
|
|
|
xattr: $(xattr_tests)
|
|
|
|
unicode: $(unicode_tests)
|
2020-01-27 23:54:57 +01:00
|
|
|
v5: $(v5_tests)
|
2020-02-19 01:27:18 +01:00
|
|
|
draw: $(draw_tests)
|
2020-03-11 04:02:33 +01:00
|
|
|
coverage: $(coverage_tests)
|
2020-05-12 01:29:29 +02:00
|
|
|
i40: $(i40_tests)
|
|
|
|
net: $(net_tests)
|
|
|
|
arp: $(arp_tests)
|
2020-05-18 16:13:56 +02:00
|
|
|
acpi: $(acpi_tests)
|
2022-05-28 23:55:13 +02:00
|
|
|
input: $(input_tests)
|
2019-10-09 01:35:47 +02:00
|
|
|
|
2020-05-12 01:29:29 +02:00
|
|
|
%.out.log: %.t
|
2022-12-28 16:06:15 +01:00
|
|
|
$(UMKA_SHELL) -ri $*.t -o $@
|
2021-12-13 13:58:19 +01:00
|
|
|
ifeq ($(HOST),linux)
|
2021-12-12 11:48:42 +01:00
|
|
|
@ cmp $*.out.log $*.ref.log
|
|
|
|
@ if [ -f "$*.ref.png" ]; then cmp $*.out.png $*.ref.png; fi
|
2021-12-13 13:58:19 +01:00
|
|
|
else
|
|
|
|
@ comp /M $*.out.log $*.ref.log
|
|
|
|
# @ if [ -f "$*.ref.png" ]; then cmp $*.out.png $*.ref.png; fi
|
|
|
|
endif
|
2020-02-21 03:21:09 +01:00
|
|
|
|
2020-03-11 04:02:33 +01:00
|
|
|
collect_coverage:
|
2022-06-13 23:46:48 +02:00
|
|
|
../tools/covpreproc ../umka.lst coverage.* > ../umka.cov
|
2020-02-21 03:21:09 +01:00
|
|
|
|
|
|
|
clean:
|
2021-12-12 11:48:42 +01:00
|
|
|
rm -f *.out.log *.out.png coverage.*
|
2020-02-21 03:21:09 +01:00
|
|
|
|
2021-11-17 02:07:38 +01:00
|
|
|
update_logs:
|
|
|
|
for f in *ref.log; do cp $$(basename $$f .ref.log).out.log $$f; done
|
|
|
|
|
|
|
|
.PHONY: clean collect_coverage update_logs
|