Skip to content

Commit

Permalink
let github CI run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reinerh committed Oct 24, 2020
1 parent cd75258 commit 300efec
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:
branches: [ master ]

jobs:
build:
build_and_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get install gcc-10 libapparmor-dev libselinux1-dev
run: sudo apt-get install gcc-10 libapparmor-dev libselinux1-dev expect xzdec
- name: configure
run: CC=gcc-10 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux
run: CC=gcc-10 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux --prefix=/usr
- name: make
run: make
- name: make install
run: sudo make install
- name: run tests
run: SHELL=/bin/bash make test-github
build-clang:
runs-on: ubuntu-20.04
steps:
Expand Down
3 changes: 3 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ test-noprofiles: test-private-lib test-fcopy test-fnetfilter test-fs test-utils
test-travis: test-profiles test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-filters test-arguments
echo "TEST COMPLETE"

test-github: test-fcopy test-fnetfilter test-utils test-sysutils test-environment test-arguments
echo "TEST COMPLETE"

##########################################
# Individual tests, some of them require root access
# The tests are very intrusive, by the time you are done
Expand Down
1 change: 1 addition & 0 deletions test/sysutils/less.exp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ match_max 100000
send -- "firejail less sysutils.sh\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"(press RETURN)" {puts "TESTING SKIP 1.1\n";exit}
"MALLOC_CHECK"
}
expect {
Expand Down
2 changes: 1 addition & 1 deletion test/sysutils/xz.exp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2014-2020 Firejail Authors
# License GPL v2

set timeout 10
set timeout 15
spawn $env(SHELL)
match_max 100000

Expand Down
1 change: 1 addition & 0 deletions test/utils/man.exp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ match_max 100000
send -- "man firejail\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"(press RETURN)" {puts "TESTING SKIP 1.1\n";exit}
"Linux namespaces sandbox program"
}
after 100
Expand Down

0 comments on commit 300efec

Please sign in to comment.