summaryrefslogtreecommitdiffstats
path: root/tests/t-unpack-device/Makefile
blob: 0dcb3ca6de54e8d0cefea9e570b075a2f87c3490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PKG := pkg-device

TESTS_DEB := $(PKG)

include ../Test.mk

$(PKG)/test-null:
	$(BEROOT) mknod $@ c 1 3

$(PKG)/test-ram0:
	$(BEROOT) mknod $@ b 1 0

build-hook: $(PKG)/test-null $(PKG)/test-ram0

clean-hook:
	rm -f $(PKG)/test-null
	rm -f $(PKG)/test-ram0

test-case:
	# test unpacking device files
	$(DPKG_INSTALL) pkg-device.deb
	$(call pkg_is_installed,pkg-device)

test-clean:
	$(DPKG_PURGE) pkg-device