File: io.mk

package info (click to toggle)
bart-cuda 0.8.00-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, sid
  • size: 7,752 kB
  • sloc: ansic: 100,267; python: 717; makefile: 576; sh: 564; cpp: 104
file content (24 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# This tests if identical input and output is supported
# The hope is that, if it works in these tools, it will also work in all others
tests/test-io: ones slice nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 2 50 50 a.ra								;\
	$(TOOLDIR)/slice 0 12 a.ra b.ra								;\
	$(TOOLDIR)/slice 0 12 a.ra a.ra								;\
	$(TOOLDIR)/nrmse -t 0. a.ra b.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-io2: ones std noise nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 2 50 50 a.ra								;\
	$(TOOLDIR)/noise a.ra b.ra								;\
	$(TOOLDIR)/std 3 b.ra c.ra								;\
	$(TOOLDIR)/std 3 b.ra b.ra								;\
	$(TOOLDIR)/nrmse -t 0. b.ra c.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

TESTS += tests/test-io tests/test-io2