Skip to content

Commit

Permalink
Test yksom and grmtools as part of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-hughes committed Jan 18, 2024
1 parent 31c3146 commit cae4f7d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .buildbot.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,48 @@ ulimit -d $((1024 * 1024 * 8)) # 8 GiB

ENABLE_GC_ASSERTIONS=true /usr/bin/time -v python3 x.py test --stage 2 --config .buildbot.config.toml --exclude rustdoc-json --exclude debuginfo

# Install rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
sh rustup.sh --default-host x86_64-unknown-linux-gnu \
--default-toolchain nightly \
--no-modify-path \
--profile minimal \
-y
export PATH=`pwd`/.cargo/bin/:$PATH

rustup toolchain link alloy build/x86_64-unknown-linux-gnu/stage1

# Build and test yksom
git clone --recursive https://github.com/softdevteam/yksom
cd yksom

# Annoying hack needed in order to build a non-workspace crate inside alloy.
echo "[workspace]" >> Cargo.toml

cargo +alloy test
cargo +alloy test --release

cargo +alloy run -- --cp SOM/Smalltalk SOM/TestSuite/TestHarness.som
cargo +alloy run --release -- --cp SOM/Smalltalk SOM/TestSuite/TestHarness.som

cargo +alloy run --release -- --cp SOM/Smalltalk:lang_tests hello_world1

cd SOM
cargo +alloy run --release -- \
--cp Smalltalk:TestSuite:SomSom/src/compiler:SomSom/src/vm:SomSom/src/vmobjects:SomSom/src/interpreter:SomSom/src/primitives \
SomSom/tests/SomSomTests.som
cargo +alloy run --release -- \
--cp Smalltalk:Examples/Benchmarks/GraphSearch \
Examples/Benchmarks/BenchmarkHarness.som GraphSearch 10 4

# Build and test grmtools
cd ../
git clone https://github.com/softdevteam/grmtools
cd grmtools

cargo +alloy test
cargo +alloy test --release

cargo +alloy test --lib cfgrammar --features serde
cargo +alloy test --lib lrpar --features serde

0 comments on commit cae4f7d

Please sign in to comment.