forked from jython/jython
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (35 loc) · 1.55 KB
/
launcher-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Test launcher for Jython 2.7 (GitHub action)
# The motivation for the test was the mis-handling of JVM arguments
# in jython.py, but we take this excuse to run a few tests on macOS,
# where we don't currently run the regression test in full.
name: launcher test 2.7
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
launcher-test-macos-jdk8:
runs-on: macos-latest
steps:
- run: echo "Branch ${{ github.ref }} of repository ${{ github.repository }}."
# Some tests require exactly-expected line endings
- run: git config --global core.autocrlf input
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: Build with Ant
run: ant -noinput -buildfile build.xml
- name: Show JVM arguments when launched by script
run: dist/bin/jython -c 'from java.lang.management import ManagementFactory; print ManagementFactory.getRuntimeMXBean().getInputArguments()'
- name: Show JVM arguments when launched by Python
run: python2 dist/bin/jython.py -c 'from java.lang.management import ManagementFactory; print ManagementFactory.getRuntimeMXBean().getInputArguments()'
- name: Regression tests for invocation of the interpreter with various command line arguments
run: dist/bin/jython -m test.test_cmd_line
- name: Regression tests for command line execution of scripts
run: python2 dist/bin/jython.py -m test.test_cmd_line_script