mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
- 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>
34 lines
579 B
Makefile
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)
|