+++ /dev/null
-ctf-testsuite
-=============
-
-The Common Trace Format (CTF) testsuite is intended to validate the
-conformance of CTF readers.
-
-To run the testsuite simply export CTF_READER_BIN="$YOUR_CTF_READER" and
-use the run.sh script found in the tests/x.y/ folder, x.y being the CTF
-specification version you want to check.
--- /dev/null
+ctf-testsuite
+=============
+
+The Common Trace Format (CTF) test suite is intended to validate the
+conformance of CTF readers.
+
+To run the test suite:
+
+ 1. Set the `CTF_READER_BIN` environment variable to your CTF reader
+ executable, e.g.:
+
+ export CTF_READER_BIN=my-ctf-reader
+
+ 2. Execute the `run.sh` script found in the `tests/x.y` directory,
+ where `x.y` is the CTF specification's version you want to check,
+ e.g.:
+
+ ( cd tests/1.8 && ./run.sh )
+
+You may also set the `CTF_READER_OPTS` environment variable to options
+to pass to the CTF reader defined by `CTF_READER_BIN`.
#!/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
#!/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
#!/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
#!/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
#!/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
#!/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
#!/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
#!/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
TEST_PROG="./test.sh"
-for t in */; do
+for t in $(find -mindepth 1 -maxdepth 1 -type d | sort); do
if [ -n "${TEST_LIST}" ]; then
TEST_LIST="${TEST_LIST}\n"
fi
TEST_LIST="${TEST_LIST}./test.sh ${t}"
done
-echo "${TEST_LIST}" | prove --exec '' --merge -
+echo -e "${TEST_LIST}" | prove --exec '' --merge -