Revision: 76126
http://sourceforge.net/p/brlcad/code/76126
Author: starseeker
Date: 2020-06-12 00:16:21 +0000 (Fri, 12 Jun 2020)
Log Message:
-----------
checkpoint
Modified Paths:
--------------
brlcad/branches/bioh/regress/burst/CMakeLists.txt
brlcad/branches/bioh/regress/burst/regress-burst.cmake.in
Added Paths:
-----------
brlcad/branches/bioh/regress/burst/echo.b
Modified: brlcad/branches/bioh/regress/burst/CMakeLists.txt
===================================================================
--- brlcad/branches/bioh/regress/burst/CMakeLists.txt 2020-06-12 00:02:12 UTC
(rev 76125)
+++ brlcad/branches/bioh/regress/burst/CMakeLists.txt 2020-06-12 00:16:21 UTC
(rev 76126)
@@ -4,6 +4,7 @@
ktank_armor.ids
ktank_crit.ids
ktank_colors.ids
+ echo.b
)
BRLCAD_REGRESSION_TEST(regress-burst "burst;ktank.g" EXEC burst)
Added: brlcad/branches/bioh/regress/burst/echo.b
===================================================================
--- brlcad/branches/bioh/regress/burst/echo.b (rev 0)
+++ brlcad/branches/bioh/regress/burst/echo.b 2020-06-12 00:16:21 UTC (rev
76126)
@@ -0,0 +1,35 @@
+attack-direction 35 25
+critical-comp-file ccf.file
+deflect-spall-cone yes
+dither-cells yes
+enclose-target
+enclose-portion 1 2 3 4
+#error-file error.file
+grid-file grid.file
+ground-plane yes 10 2 -2 3 -3
+burst-air-file ba.file
+histogram-file histo.file
+image-file image.file
+input-2d-shot 10 20
+input-3d-shot 10 20 30
+max-barriers 3
+max-spall-rays 7
+plot-file plot.file
+read-2d-shot-file 2dshot.file
+read-3d-shot-file 3dshot.file
+burst-armor-file armor.file
+read-burst-file rburst.file
+read-input-file input.file
+report-overlaps yes
+shotline-burst yes
+shotline-file shotline.file
+target-file target.file
+target-objects obj1 obj2 obj3
+units inches
+write-input-file inputs.file
+burst-coordinates 20 30 40
+burst-distance 10.0
+burst-file burst.file
+cell-size 11.0
+color-file color.file
+cone-half-angle 45
Property changes on: brlcad/branches/bioh/regress/burst/echo.b
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: brlcad/branches/bioh/regress/burst/regress-burst.cmake.in
===================================================================
--- brlcad/branches/bioh/regress/burst/regress-burst.cmake.in 2020-06-12
00:02:12 UTC (rev 76125)
+++ brlcad/branches/bioh/regress/burst/regress-burst.cmake.in 2020-06-12
00:16:21 UTC (rev 76126)
@@ -34,6 +34,41 @@
string(REGEX REPLACE "${BIN_DIR}$" "" RDIR "${BDIR}")
execute_process(COMMAND "@CMAKE_COMMAND@" -E copy "${RDIR}/${DDIR}/db/ktank.g"
"${CBDIR}/ktank.g")
+
+# First test is a simple "echo" test, to make sure the commands read the data
that
+# is expected. To do this, we stage a number of stub files in the working
directory
+set(STUB_FILES
+ 2dshot.file
+ 3dshot.file
+ armor.file
+ ba.file
+ burst.file
+ ccf.file
+ color.file
+ grid.file
+ histo.file
+ input.file
+ inputs.file
+ rburst.file
+ shotline.file
+ )
+foreach(STUB_FILE ${STUB_FILES})
+ execute_process(COMMAND "@CMAKE_COMMAND@" -E touch "${CBDIR}/${STUB_FILE}")
+endforeach(STUB_FILE ${STUB_FILES})
+
+execute_process(
+ COMMAND "${BURST}" -b "${CBDIR}/echo.b"
+ RESULT_VARIABLE burst_result OUTPUT_VARIABLE burst_log ERROR_VARIABLE
burst_log
+ WORKING_DIRECTORY ${CBDIR}
+ )
+
+message("Result: ${burst_result}")
+message("Output: ${burst_log}")
+
+foreach(STUB_FILE ${STUB_FILES})
+ execute_process(COMMAND "@CMAKE_COMMAND@" -E remove "${CBDIR}/${STUB_FILE}")
+endforeach(STUB_FILE ${STUB_FILES})
+
file(APPEND "${LOGFILE}" "Running burst on ktank.g:\n${BURST} -b
${CBDIR}/ktank.b\n")
execute_process(
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits