1#!/bin/bash
2
3if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
4    source ~/.venv/bin/activate
5fi
6
7python --version
8export TEST_REAL_FS=1
9echo ======================================================= ; \
10echo Running unit tests with extra packages as non-root user ; \
11python -m pyfakefs.tests.all_tests && \
12echo ========================================================== ; \
13echo Running unit tests without extra packages as non-root user ; \
14python -m pyfakefs.tests.all_tests_without_extra_packages && \
15echo ============================================ ; \
16echo Running tests without extra packages as root ; \
17sudo env "PATH=$PATH" python -m pyfakefs.tests.all_tests_without_extra_packages
18