Package: castle-model-viewer / 5.2.0-3

fix__run_test_once.sh__to_not_depend_on_tool_in_cge.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Don't use the /tmp folder for testing, but let's just clean up
 afterwards.
Author: Paul Gevers <elbrus@debian.org>
Forwarded: https://github.com/castle-engine/view3dscene/issues/84

Index: view3dscene/test_scripts/run_test_on_model.sh
===================================================================
--- view3dscene.orig/test_scripts/run_test_on_model.sh
+++ view3dscene/test_scripts/run_test_on_model.sh
@@ -0,0 +0,3 @@
+#/bin/sh
+set -xe
+
diff --git a/test_scripts/run_tests.sh b/test_scripts/run_tests.sh
new file mode 100755
index 0000000..4a66505
--- /dev/null
+++ b/test_scripts/run_tests.sh
@@ -0,0 +0,5 @@
+#/bin/sh
+set -xe
+
+SCRIPT_DIR=`dirname $0`
+${SCRIPT_DIR:-.}/run_tests_on_dir.sh "$@"
diff --git a/test_scripts/run_tests_on_dir.sh b/test_scripts/run_tests_on_dir.sh
index 2ddc485..b683223 100755
--- a/test_scripts/run_tests_on_dir.sh
+++ b/test_scripts/run_tests_on_dir.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-set -eu
+set -xeu
 
 # ----------------------------------------------------------------------------
 # Run castle-model-viewer / castle-model-converter tests on models inside the given directories.
@@ -96,6 +96,7 @@ find "$@" \
                 -iname '*.plist' -or \
                 -iname '*.starling-xml' ')' \
-            -print0 ')' | \
+            -print ')' | \
+grep -v 'CADGeometryPROTO.wrl' | \
 sort --zero-terminated | \
 xargs -0 --max-args=1 test_scripts/run_test_on_model.sh "${OUTPUT_SHORT}" "${OUTPUT_VERBOSE}"