Readme der lisp Tests aktualisiert. Foerderer Tests korrigiert. Flaches .json benötigt.
This commit is contained in:
@@ -86,13 +86,25 @@
|
||||
(setvar "ATTREQ" 0)
|
||||
(setvar "ATTDIA" 0)
|
||||
|
||||
;; Debug-Logging starten
|
||||
(dbgopen "test_foerderer.dbg" "DXFM_LOG")
|
||||
|
||||
;; Testdaten aus JSON laden
|
||||
(setq json-datei
|
||||
(strcat (vl-string-translate "\\" "/" (getenv "DXFMAKRO"))
|
||||
"/tests/testdata/foerderer_tests.json"))
|
||||
(strcat (getenv "DXFMAKRO")
|
||||
"\\tests\\testdata\\foerderer_tests.json"))
|
||||
|
||||
(dbgmsg (strcat "DXFMAKRO=" (if (getenv "DXFMAKRO") (getenv "DXFMAKRO") "nil")))
|
||||
(dbgmsg (strcat "json-datei=" json-datei))
|
||||
(dbgmsg (strcat "file-exists=" (if (findfile json-datei) "JA" "NEIN")))
|
||||
(dbgflush)
|
||||
|
||||
(setq testdaten (ssg-load-json json-datei))
|
||||
(if (null testdaten)
|
||||
(progn
|
||||
(dbgmsg "FEHLER: testdaten ist nil nach ssg-load-json")
|
||||
(dbgflush)
|
||||
(dbgclose)
|
||||
(alert (strcat "Testdaten nicht gefunden:\n" json-datei))
|
||||
(ssg-end)
|
||||
(exit)
|
||||
@@ -200,6 +212,7 @@
|
||||
;; Ergebnisse in globaler Variable speichern
|
||||
(setq *foerderer-test-results* (reverse results-list))
|
||||
|
||||
(dbgclose)
|
||||
(ssg-end)
|
||||
(princ "\n================================================================")
|
||||
(princ "\n TEST_FOERDERER abgeschlossen.")
|
||||
|
||||
Vendored
+75
-13
@@ -1,15 +1,77 @@
|
||||
[
|
||||
{ "y_abstand": 400 },
|
||||
{ "test_id": "VF_Auf_0", "richtung": "Auf", "deltaL": 7000, "deltaH": 0 },
|
||||
{ "test_id": "VF_Auf_1000", "richtung": "Auf", "deltaL": 7000, "deltaH": 1000 },
|
||||
{ "test_id": "VF_Auf_2000", "richtung": "Auf", "deltaL": 7000, "deltaH": 2000 },
|
||||
{ "test_id": "VF_Auf_3000", "richtung": "Auf", "deltaL": 7000, "deltaH": 3000 },
|
||||
{ "test_id": "VF_Auf_4000", "richtung": "Auf", "deltaL": 7000, "deltaH": 4000 },
|
||||
{ "test_id": "VF_Auf_5000", "richtung": "Auf", "deltaL": 7000, "deltaH": 5000 },
|
||||
{ "test_id": "VF_Ab_0", "richtung": "Ab", "deltaL": 7000, "deltaH": 0 },
|
||||
{ "test_id": "VF_Ab_1000", "richtung": "Ab", "deltaL": 7000, "deltaH": 1000 },
|
||||
{ "test_id": "VF_Ab_2000", "richtung": "Ab", "deltaL": 7000, "deltaH": 2000 },
|
||||
{ "test_id": "VF_Ab_3000", "richtung": "Ab", "deltaL": 7000, "deltaH": 3000 },
|
||||
{ "test_id": "VF_Ab_4000", "richtung": "Ab", "deltaL": 7000, "deltaH": 4000 },
|
||||
{ "test_id": "VF_Ab_5000", "richtung": "Ab", "deltaL": 7000, "deltaH": 5000 }
|
||||
{
|
||||
"y_abstand": 400
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Auf_0",
|
||||
"richtung": "Auf",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 0
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Auf_1000",
|
||||
"richtung": "Auf",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 1000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Auf_2000",
|
||||
"richtung": "Auf",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 2000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Auf_3000",
|
||||
"richtung": "Auf",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 3000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Auf_4000",
|
||||
"richtung": "Auf",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 4000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Auf_5000",
|
||||
"richtung": "Auf",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 5000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Ab_0",
|
||||
"richtung": "Ab",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 0
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Ab_1000",
|
||||
"richtung": "Ab",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 1000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Ab_2000",
|
||||
"richtung": "Ab",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 2000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Ab_3000",
|
||||
"richtung": "Ab",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 3000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Ab_4000",
|
||||
"richtung": "Ab",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 4000
|
||||
},
|
||||
{
|
||||
"test_id": "VF_Ab_5000",
|
||||
"richtung": "Ab",
|
||||
"deltaL": 7000,
|
||||
"deltaH": 5000
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user