File: extract.mk

package info (click to toggle)
bart 0.9.00-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,040 kB
  • sloc: ansic: 116,116; python: 1,329; sh: 726; makefile: 639; javascript: 589; cpp: 106
file content (23 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

tests/test-extract: ones extract resize nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 2 10 10 o.ra								;\
	$(TOOLDIR)/resize -c 0 100 1 100 o.ra o0.ra						;\
	$(TOOLDIR)/extract 1 45 55 o0.ra o1.ra							;\
	$(TOOLDIR)/extract 0 45 55 o1.ra o2.ra							;\
	$(TOOLDIR)/nrmse -t 0. o2.ra o.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-extract-multidim: ones extract resize nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 3 10 10 10 o.ra								;\
	$(TOOLDIR)/resize -c 0 100 1 100 2 100 o.ra o0.ra						;\
	$(TOOLDIR)/extract 0 45 55 1 45 55 2 45 55 o0.ra o1.ra							;\
	$(TOOLDIR)/nrmse -t 0. o1.ra o.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

TESTS += tests/test-extract tests/test-extract-multidim