-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (81 loc) · 2.36 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Functional test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CC: clang
jobs:
ubuntu:
strategy:
matrix:
os: [ ubuntu-24.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: uname
shell: bash
run: |
cat /etc/issue
uname -a
autoconf --version
make -v
gcc -v
clang -v
dpkg -l libpam0g-dev
- name: Install libpam0g-dev
run: sudo apt install libpam0g-dev mc
- name: Install pyte
#run: pip install pyte
run: sudo apt install python3-pyte
- name: autogen
shell: bash
working-directory: ${{github.workspace}}/src
run: ./autogen.sh
- name: gcc configure
shell: bash
working-directory: ${{github.workspace}}/src
run: cc=gcc ./configure CFLAGS="-Wall"
- name: gcc build
shell: bash
working-directory: ${{github.workspace}}/src
run: make
- name: test
shell: bash
working-directory: ${{github.workspace}}/src
run: |
echo "% screen -v"
./screen -v
echo "% screen -S averyverylongsesssionnameaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -d -m bash -c 'ping -c 8 localhost' (should ret 1)"
./screen -S averyverylongsesssionnameaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -d -m bash -c 'ping -c 8 localhost' || echo $?
echo "% screen -ls (should ret 1)"
./screen -ls || echo $?
echo "% screen -S averyvery -d -m bash -c 'ping -c 8 localhost'"
./screen -S averyvery -d -m bash -c 'ping -c 8 localhost'
echo "% screen -ls"
./screen -ls
echo "% make clean"
make clean
- name: clang configure
shell: bash
working-directory: ${{github.workspace}}/src
run: cc=clang ./configure CFLAGS="-Wall"
- name: clang build
shell: bash
working-directory: ${{github.workspace}}/src
run: make
- name: test
shell: bash
working-directory: ${{github.workspace}}/src
run: |
./screen -v
./screen --help
./screen -ls || echo $?
- name: test
shell: bash
working-directory: ${{github.workspace}}/tests
run: |
rm -rf screen-2024*
./pyte_test.py
cat screen-*