Skip to content

Commit

Permalink
Merge pull request #110 from ourPLCC/test-languages
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneyJackson authored Apr 8, 2024
2 parents 47f2c5d + 9329cdf commit 4464e21
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This is created by bin/test/languages.bash. But should not be committed.
languages/

# PLCC places generated Java files in directories named Java. Ignore them.
Java/

Expand Down
14 changes: 14 additions & 0 deletions bin/test/languages.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -euo pipefail

LANGUAGES_VERSION="${LANGUAGES_VERSION:-}"
cd /tmp

rm -rf languages
git clone https://github.com/ourPLCC/languages.git
if [ -n "${LANGUAGES_VERSION}" ] ; then
git -C ./languages checkout "${LANGUAGES_VERSION}"
fi
languages/bin/test.bash
rm -rf languages
14 changes: 14 additions & 0 deletions docs/Developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,20 @@ bin/test/everything.bash
bin/test/functionality.bash
```

### Test languages

Check if our changes work with ourPLCC/languages:

```bash
bin/test/languages.bash
```

Test a specific version (git tag, branch, or commit hash) of ourPLCC/languages:

```bash
LANGUAGES_VESRION=v1.0.1 bin/test/languages.bash
```

### Test other things

To learn what other class of tests you can run...
Expand Down

0 comments on commit 4464e21

Please sign in to comment.