Makefile.testcases 678 B

12345678910111213141516171819202122
  1. manifests = $(wildcard ../../../../*.manifest.template) manifest
  2. testcases = $(filter-out $(wildcard *.*) $(patsubst %/,%,$(wildcard */)) Makefile manifest pal_loader,$(wildcard *))
  3. exec_target = $(testcases)
  4. target = $(manifests) $(testcases) /tmp/shm etc/nsswitch.conf etc/passwd
  5. level = ../../../../../../
  6. include ../../../../../../Makefile
  7. $(addsuffix .template,$(manifests)): %: ../../../../%
  8. ln -sf $< $@
  9. /tmp/shm:
  10. mkdir -p $@
  11. etc/nsswitch.conf:
  12. mkdir -p etc
  13. echo "passwd: compat\ngroup: compat\nshadow: compat\nhosts: files" > $@
  14. etc/passwd:
  15. mkdir -p etc
  16. echo "root:x:0:0:root:/root:/bin/bash\nnobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin" > $@