# unitexgramlab/unitex-core-tests architecture

> Architecture diagram of the GitHub repository unitexgramlab/unitex-core-tests, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/unitexgramlab/unitex-core-tests
- Repository: https://github.com/unitexgramlab/unitex-core-tests

## Overview

This repository is a Unitex/GramLab Core integration-test suite, not the Core implementation itself. The main workflow is to select the full suite, a directory, or a single ULP test; run it with UnitexToolLogger; and optionally check memory errors or compare generated results. Test directories below represent broad test domains, not a claimed internal execution pipeline. Relationships are limited to those documented in the README; source excerpts were unavailable.

Main entry points: [`unitex-core-test.sh`](https://github.com/unitexgramlab/unitex-core-tests/blob/master/unitex-core-test.sh) (Test script), [`Compress`](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Compress) (Compression), [`Normalize`](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Normalize) (Normalization), [`Tokenize`](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tokenize) (Tokenization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runner["Test runner"]
  node_runner_script["Test script"]
  node_test_logs["Execution logs"]
end

subgraph group_text["Text processing tests"]
  node_compress["Compression"]
  node_normalize["Normalization"]
  node_tokenize["Tokenization"]
  node_xml_text["XML conversion"]
end

subgraph group_linguistic["Linguistic tests"]
  node_locate["Text locating"]
  node_dictionary["Dictionaries"]
  node_tagger["Tagging"]
  node_multiflex["Inflection"]
end

subgraph group_graphs["Graph and FST tests"]
  node_grf_to_fst["Graph compilation"]
  node_fst_check["FST validation"]
  node_fst_to_graph["Graph conversion"]
  node_fst_unambig["Ambiguity handling"]
end

node_contributor(("Contributor"))
node_valgrind["Valgrind"]
node_unitex_logger["UnitexToolLogger"]

node_contributor -->|"runs tests"| node_runner_script
node_contributor -->|"runs single test"| node_unitex_logger
node_runner_script -->|"uses binary"| node_unitex_logger
node_runner_script -->|"selects tests"| node_compress
node_runner_script -->|"selects tests"| node_normalize
node_runner_script -->|"selects tests"| node_tokenize
node_runner_script -->|"selects tests"| node_xml_text
node_runner_script -->|"selects tests"| node_locate
node_runner_script -->|"selects tests"| node_dictionary
node_runner_script -->|"selects tests"| node_tagger
node_runner_script -->|"selects tests"| node_multiflex
node_runner_script -->|"selects tests"| node_grf_to_fst
node_runner_script -->|"selects tests"| node_fst_check
node_runner_script -->|"selects tests"| node_fst_to_graph
node_runner_script -->|"selects tests"| node_fst_unambig
node_runner_script -.->|"checks memory"| node_valgrind
node_runner_script -->|"writes logs"| node_test_logs

click node_runner_script "https://github.com/unitexgramlab/unitex-core-tests/blob/master/unitex-core-test.sh"
click node_compress "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Compress"
click node_normalize "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Normalize"
click node_tokenize "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tokenize"
click node_xml_text "https://github.com/unitexgramlab/unitex-core-tests/tree/master/XMLizer"
click node_locate "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Locate"
click node_dictionary "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Dico"
click node_tagger "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tagger"
click node_multiflex "https://github.com/unitexgramlab/unitex-core-tests/tree/master/MultiFlex"
click node_grf_to_fst "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Grf2Fst2"
click node_fst_check "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Fst2Check"
click node_fst_to_graph "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tfst2Grf"
click node_fst_unambig "https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tfst2Unambig"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_runner_script,node_test_logs toneBlue
class node_compress,node_normalize,node_tokenize,node_xml_text toneAmber
class node_locate,node_dictionary,node_tagger,node_multiflex toneMint
class node_grf_to_fst,node_fst_check,node_fst_to_graph,node_fst_unambig toneRose
class node_contributor,node_valgrind,node_unitex_logger toneIndigo
```

## Components

### Test runner

- [Test script](https://github.com/unitexgramlab/unitex-core-tests/blob/master/unitex-core-test.sh): `unitex-core-test.sh`
- **Execution logs**

### Text processing tests

- [Compression](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Compress): `Compress`
- [Normalization](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Normalize): `Normalize`
- [Tokenization](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tokenize): `Tokenize`
- [XML conversion](https://github.com/unitexgramlab/unitex-core-tests/tree/master/XMLizer): `XMLizer`

### Linguistic tests

- [Text locating](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Locate): `Locate`
- [Dictionaries](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Dico): `Dico`
- [Tagging](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tagger): `Tagger`
- [Inflection](https://github.com/unitexgramlab/unitex-core-tests/tree/master/MultiFlex): `MultiFlex`

### Graph and FST tests

- [Graph compilation](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Grf2Fst2): `Grf2Fst2`
- [FST validation](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Fst2Check): `Fst2Check`
- [Graph conversion](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tfst2Grf): `Tfst2Grf`
- [Ambiguity handling](https://github.com/unitexgramlab/unitex-core-tests/tree/master/Tfst2Unambig): `Tfst2Unambig`

### Other components

- **Contributor**
- **Valgrind**
- **UnitexToolLogger**

## Connections

- Contributor → Test script: runs tests (evidence: `README.md`)
- Contributor → UnitexToolLogger: runs single test (evidence: `README.md`)
- Test script → UnitexToolLogger: uses binary (evidence: `README.md`)
- Test script → Compression: selects tests (evidence: `README.md`)
- Test script → Normalization: selects tests (evidence: `README.md`)
- Test script → Tokenization: selects tests (evidence: `README.md`)
- Test script → XML conversion: selects tests (evidence: `README.md`)
- Test script → Text locating: selects tests (evidence: `README.md`)
- Test script → Dictionaries: selects tests (evidence: `README.md`)
- Test script → Tagging: selects tests (evidence: `README.md`)
- Test script → Inflection: selects tests (evidence: `README.md`)
- Test script → Graph compilation: selects tests (evidence: `README.md`)
- Test script → FST validation: selects tests (evidence: `README.md`)
- Test script → Graph conversion: selects tests (evidence: `README.md`)
- Test script → Ambiguity handling: selects tests (evidence: `README.md`)
- Test script → Valgrind: checks memory (evidence: `README.md`)
- Test script → Execution logs: writes logs (evidence: `README.md`)
