From 0b9bf589a2762267fedf7321ba03968ebc3abfcd Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 24 Apr 2019 23:37:56 -0400 Subject: tests: Add some tests that require sudo --- Makefile | 3 ++ tests.sh | 90 ++++++++++++++++++++++++++++++++++++------ tests/test_mount.out | 4 ++ tests/test_type_bind_mount.out | 1 + tests/test_xdev.out | 4 ++ 5 files changed, 89 insertions(+), 13 deletions(-) create mode 100644 tests/test_mount.out create mode 100644 tests/test_type_bind_mount.out create mode 100644 tests/test_xdev.out diff --git a/Makefile b/Makefile index a9859a4..809f3b3 100644 --- a/Makefile +++ b/Makefile @@ -106,6 +106,9 @@ ifneq ($(OS),Darwin) endif +$(MAKE) -Bs release check +$(MAKE) -Bs check +ifeq ($(OS),Linux) + ./tests.sh --sudo +endif clean: $(RM) bfs *.[od] tests/mksock tests/*.[od] diff --git a/tests.sh b/tests.sh index da011d9..f72814c 100755 --- a/tests.sh +++ b/tests.sh @@ -44,16 +44,19 @@ fi function usage() { local pad=$(printf "%*s" ${#0} "") cat <