Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 69d4464

Browse files
committed
tests: add libmcs, which is hayroll's main test project
1 parent b5130c2 commit 69d4464

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@
4242
path = tests/snudown/repo
4343
url = https://github.com/reddit/snudown.git
4444
ignore = all
45+
[submodule "tests/libmcs/repo"]
46+
path = tests/libmcs/repo
47+
url = https://gitlab.com/gtd-gmbh/libmcs

tests/libmcs/conf.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
transpile:
2+
autogen: true
3+
4+
refactor:
5+
autogen: true
6+
transforms:
7+
- remove_unused_labels
8+
9+
cargo.transpile:
10+
autogen: true
11+
12+
cargo.refactor:
13+
autogen: true

tests/libmcs/configure.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -e; set -o pipefail
3+
4+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5+
6+
(cd "${SCRIPT_DIR}/repo" && ./configure \
7+
--cross-compile="" \
8+
--compilation-flags="" \
9+
--disable-denormal-handling \
10+
--disable-long-double-procedures \
11+
--disable-complex-procedures \
12+
--little-endian \
13+
&> ../$(basename "$0").log
14+
)

tests/libmcs/make.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e; set -o pipefail
3+
4+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5+
6+
make -C "$SCRIPT_DIR/repo" clean
7+
rm -f compile_commands.json
8+
intercept-build make -C "$SCRIPT_DIR/repo" -j$(nproc) &> $(basename "$0").log

tests/libmcs/repo

Submodule repo added at 58025fd

0 commit comments

Comments
 (0)