Sort list of directories in run.sh scripts
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 20 Nov 2014 00:25:47 +0000 (19:25 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 20 Nov 2014 00:47:23 +0000 (19:47 -0500)
This mimics the behaviour of Bash's `*/`, which is to
sort the results. Tests are executed in a deterministic
order.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/1.8/fuzzing/run.sh
tests/1.8/regression/metadata/run.sh
tests/1.8/regression/run.sh
tests/1.8/regression/stream/run.sh
tests/1.8/run.sh
tests/1.8/stress/metadata/run.sh
tests/1.8/stress/run.sh
tests/1.8/stress/stream/run.sh

index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
index d535ef1cb2327561891ccb320694102f1f19a1dc..9b3a3923b1a2502b7a7822801be41d61d4a89139 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for dir in $(find -mindepth 1 -maxdepth 1 -type d); do
+for dir in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
        echo "Running ${dir} tests"
        cd ${dir}
        ./run.sh
This page took 0.025373 seconds and 4 git commands to generate.