Skip to content

Commit

Permalink
make test-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Apr 22, 2016
1 parent bec09e5 commit 47be574
Show file tree
Hide file tree
Showing 20 changed files with 12 additions and 10 deletions.
6 changes: 6 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ dist:
cd $(NAME)-$(VERSION); cp -a ../configure .; cp -a ../configure.ac .; cp -a ../Makefile.in .; cp -a ../install.sh .; cp -a ../mkman.sh .; cp -a ../mketc.sh .; cp -a ../mkdeb.sh .;cd ..
cd $(NAME)-$(VERSION); cp -a ../COPYING .; cp -a ../README .; cp -a ../RELNOTES .; cd ..
cd $(NAME)-$(VERSION); mkdir -p test; cp -a ../test/profiles test/.; cd ..
cd $(NAME)-$(VERSION); mkdir -p test; cp -a ../test/apps test/.; cd ..
cd $(NAME)-$(VERSION); rm -fr `find . -name .svn`; rm -fr $(NAME)-$(VERSION); cd ..
tar -cjvf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
rm -fr $(NAME)-$(VERSION)
Expand All @@ -265,3 +266,8 @@ asc:; ./mkasc.sh $(VERSION)
test-profiles:
cd test/profiles; ./profiles.sh | grep TESTING

test-apps:
cd test/apps; ./apps.sh | grep TESTING

test: test-profiles test-apps
echo "TEST COMPLETE"
12 changes: 3 additions & 9 deletions test/test-apps.sh → test/apps/apps.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

which firefox
if [ "$?" -eq 0 ];
then
Expand Down Expand Up @@ -27,15 +30,6 @@ else
echo "TESTING: chromium not found"
fi

which google-chrome
if [ "$?" -eq 0 ];
then
echo "TESTING: google-chrome"
./chromium.exp
else
echo "TESTING: google-chrome not found"
fi

which opera
if [ "$?" -eq 0 ];
then
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions test/profiles/profiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Copyright (C) 2014-2016 Firejail Authors
# License GPL v2

export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

echo "TESTING: default profiles installed in /etc"
PROFILES=`ls /etc/firejail/*.profile`
for PROFILE in $PROFILES
Expand Down
1 change: 0 additions & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ else
echo "TESTING: dash not found"
fi

./test-apps.sh
./test-apps-x11.sh

echo "TESTING: PID (pid.exp)"
Expand Down

0 comments on commit 47be574

Please sign in to comment.