test: Add open-read test.
[mes.git] / build-aux / test-c.sh
index 03a886650196135222046a1e55ed7e11a22893f8..0363df4691ac6529d29620175bc9d21052f78877 100755 (executable)
 
 set -e
 
+if test -z "$config_sh"; then
+    . ./config.sh
+fi
+
 if [ "$V" = 2 ]; then
     set -x
 fi
@@ -29,7 +33,7 @@ b=$(dirname "$t")/$(basename "$t" .c)
 o="$b"
 o=lib/tests/${b#*lib/tests/}
 if [ "$o" = "$b" ]; then
-    o=$(basename "$t" .c)
+    o=./$(basename "$t" .c)
 fi
 
 rm -f "$o"