Commit graph mql5-tick-compression/tests/run_tests.sh
Author SHA1 Message Date
Claude Claude
852010e8ba Lay out the repository for cloning into MQL5/Shared Projects
Move the library to lib/ and the scripts to scripts/, and include project
files by quoted paths relative to the including file. Paths in <...> are
searched in MQL5/Include only, and the project is not there when it is
cloned into MQL5/Shared Projects. No .mqproj file is needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 20:26:15 -08:00
Claude Claude
6b18a065ee Test the MetaTrader scripts end to end in an emulated terminal
mql2cpp.py now also translates scripts (input variables, D'...' date
literals) and mql5_shim.h emulates the terminal functions they use
(CopyTicksRange/CopyTicks over a loaded tick file, TimeToStruct,
custom symbols, Comment, captured Print output). test_scripts.cpp runs
TkzExport with day/week/month chunks and checks every chunk against
independent calendar periods, then TkzVerify, TkzToCustom (including a
re-import) and TkzSelfTest. Also fix the shim's ArrayResize reserve
semantics, which reallocated on every call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:06:47 -08:00
Claude Claude
eab93a6655 Add MetaTrader scripts and in-terminal self-test
TkzExport writes the tick history of a symbol into a .tkz archive
(day/week/month chunks, optional per-chunk verification), TkzVerify
decodes an archive and compares it with the terminal history,
TkzToCustom loads an archive into a custom symbol, and TkzSelfTest runs
CTkzSelfTest (synthetic edge cases, real ticks, archive I/O). The
self-test class is also compiled and run by the C++ harness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:16:49 -08:00
Claude Claude
2f8ab68225 Add MQL5-to-C++ test harness for the codec
mql2cpp.py translates the MQL5 sources into C++, mql5_shim.h emulates
the MQL5 runtime (bounds-checked arrays, poisoned ArrayResize memory,
file API). test_codec.cpp runs synthetic edge cases, corruption checks,
archive tests and bit-exact round trips on real tick files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:07:23 -08:00