diff options
author | Jean Delvare <jdelvare@suse.de> | 2010-01-23 21:23:01 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2010-01-23 21:23:01 +0100 |
commit | f1458bf10fe56cb4f95f446bf35bcd09a55f6ecd (patch) | |
tree | 5fe723da550a121f8556e7bd136d4f58d0ecf374 /test/setup.test | |
parent | b321567c52c9877a1532bf86f328f13620b06c7b (diff) | |
download | quilt-f1458bf10fe56cb4f95f446bf35bcd09a55f6ecd.tar.gz |
Separate working directory for each test case
Let the test suite runner script create a separate working
directory for each test. This makes it possible to run several
tests in parallel, speeding up testing on SMP systems. It also
ensures that a broken test case can no longer cause another test
case to fail.
At this point, it is possible to run the test suite in parallel,
the final result (success or failure) will be correct, however
the output is hardly readable because the progress of all tests
are interlaced. This will be improved later.
As a nice side effect, this means we can drop the setup and
clean-up steps that were present in all test cases.
Diffstat (limited to 'test/setup.test')
-rw-r--r-- | test/setup.test | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/setup.test b/test/setup.test index e1744c7..5e09e75 100644 --- a/test/setup.test +++ b/test/setup.test @@ -1,6 +1,5 @@ -$ rm -rf d -$ mkdir -p d/dir -$ cd d +$ mkdir dir + $ echo 1 > dir/foo.orig $ echo 2 > dir/foo $ diff -u dir/foo.orig dir/foo > foo.diff @@ -48,5 +47,3 @@ $ ls -l patches series | sed -e 's:.* -> ::' $ quilt push -qa > Applying patch patches/foo.diff > Now at patch patches/foo.diff -$ cd .. -$ rm -rf d |