Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. #
  3. # Makefile of /kernel/hwdata/Sanity/ids-files
  4. # Description: compares upstream ID files with our ID files
  5. # Author: Milos Malik <mmalik@redhat.com>
  6. #
  7. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8. #
  9. # Copyright (c) 2009 Red Hat, Inc. All rights reserved.
  10. #
  11. # This copyrighted material is made available to anyone wishing
  12. # to use, modify, copy, or redistribute it subject to the terms
  13. # and conditions of the GNU General Public License version 2.
  14. #
  15. # This program is distributed in the hope that it will be
  16. # useful, but WITHOUT ANY WARRANTY; without even the implied
  17. # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  18. # PURPOSE. See the GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public
  21. # License along with this program; if not, write to the Free
  22. # Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  23. # Boston, MA 02110-1301, USA.
  24. #
  25. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. export TEST=/kernel/hwdata/Sanity/ids-files
  27. export TESTVERSION=1.0
  28. BUILT_FILES=
  29. FILES=$(METADATA) runtest.sh Makefile PURPOSE
  30. .PHONY: all install download clean
  31. run: $(FILES) build
  32. ./runtest.sh
  33. build: $(BUILT_FILES)
  34. chmod a+x runtest.sh
  35. chcon -t bin_t runtest.sh
  36. clean:
  37. rm -f *~ $(BUILT_FILES)
  38. include /usr/share/rhts/lib/rhts-make.include
  39. $(METADATA): Makefile
  40. @echo "Owner: Milos Malik <mmalik@redhat.com>" > $(METADATA)
  41. @echo "Name: $(TEST)" >> $(METADATA)
  42. @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
  43. @echo "Path: $(TEST_DIR)" >> $(METADATA)
  44. @echo "Description: compares upstream ID files with our ID files" >> $(METADATA)
  45. @echo "Type: Sanity" >> $(METADATA)
  46. @echo "TestTime: 5m" >> $(METADATA)
  47. @echo "RunFor: hwdata" >> $(METADATA)
  48. @echo "Requires: hwdata" >> $(METADATA)
  49. @echo "Requires: wget" >> $(METADATA)
  50. @echo "Priority: Normal" >> $(METADATA)
  51. @echo "License: GPLv2" >> $(METADATA)
  52. @echo "Confidential: no" >> $(METADATA)
  53. @echo "Destructive: no" >> $(METADATA)
  54. rhts-lint $(METADATA)