criu/test/security/Makefile
Andrew Vagin a049768242 test: Fix random jenkins-other tests failures
- ext pipe test should build binar
- criu no longer accepts "extra" empty arguments
- adduser doesn't add more than one same user

All this came unnoticed due to error in tests failure detection
(36a13cbd test: don't ignore errors other other tests)

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-04-24 19:21:09 +03:00

34 lines
579 B
Makefile

DIR := /tmp/criu-test
LOOP := $(DIR)/loop.sh
PIDFILE := $(DIR)/loop.pid
IMGS := $(DIR)/imgs
CRIU := $(DIR)/criu
ROOT :=root
USR1 :=criu-test-user1
USR2 :=criu-test-user2
export DIR LOOP PIDFILE IMGS CRIU ROOT USR1 USR2
run: testdir users
./run.sh
testdir: ../../criu
mkdir -p $(DIR)
mkdir -p $(IMGS)
cp ../../criu $(CRIU)
chmod u+s $(CRIU)
cp loop.sh $(LOOP)
chmod 777 $(DIR)
users:
-userdel -f $(USR1)
-userdel -f $(USR2)
useradd -M -U $(USR1)
useradd -M -U $(USR2)
usermod -a -G $(USR2) $(USR1)
clean:
rm -rf $(DIR)
-userdel -f $(USR1)
-userdel -f $(USR2)