Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the tests directory |
| 3 | # |
| 4 | |
| 5 | srcdir = @srcdir@ |
| 6 | top_srcdir = @top_srcdir@ |
| 7 | VPATH = @srcdir@ |
| 8 | top_builddir = .. |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 9 | my_dir = tests |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 10 | INSTALL = @INSTALL@ |
| 11 | |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 12 | @MCONFIG@ |
| 13 | |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 14 | all:: @DO_TEST_SUITE@ |
| 15 | |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 16 | test_script: test_script.in Makefile |
| 17 | @echo "Creating test_script..." |
| 18 | @echo "#!/bin/sh" > test_script |
| 19 | @echo "SRCDIR=@srcdir@" >> test_script |
| 20 | @cat $(srcdir)/test_script.in >> test_script |
| 21 | @chmod +x test_script |
| 22 | |
| 23 | check:: test_script |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 24 | @echo "Running e2fsprogs test suite..." |
| 25 | @echo " " |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 26 | @./test_script |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 27 | |
| 28 | clean:: |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 29 | $(RM) -f *.log *.new *.failed *.ok test.img test_script |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 30 | |
| 31 | distclean:: clean |
| 32 | $(RM) -f Makefile |
| 33 | |