add testcases for #732 #1065 #1102

This commit is contained in:
Ken Sato
2018-06-07 10:11:23 +09:00
parent 139123dc12
commit 9bb48186e6
35 changed files with 1653 additions and 0 deletions

45
test/issues/1065/Makefile Normal file
View File

@ -0,0 +1,45 @@
CC = gcc
MCK_DIR=/home/satoken/ppos
MCEXEC=$(MCK_DIR)/bin/mcexec
TARGET= file_map print_maps static_print_maps call_execve print_maps_and_cmdline config
CPPFLAGS =
LDFLAGS =
all: $(TARGET)
file_map: file_map.c
$(CC) -o $@ $^ $(LDFLAGS)
print_maps: print_maps.c
$(CC) -o $@ $^ $(LDFLAGS)
print_maps_and_cmdline: print_maps_and_cmdline.c
$(CC) -o $@ $^ $(LDFLAGS)
static_print_maps: print_maps.c
$(CC) -o $@ $^ $(LDFLAGS) -static
call_execve: call_execve.c
$(CC) -o $@ $^ $(LDFLAGS)
config:
@echo "MCEXEC=$(MCEXEC)" > ./config
init:
ln -nfs ./dummy_file ./lnk_to_dummy
test: init all
./CT_001.sh
./CT_002.sh
./CT_003.sh
./CT_004.sh
./CT_005.sh
./CT_006.sh
./CT_007.sh
./CT_008.sh
clean:
rm -f $(TARGET) *.o ./lnk_to_dummy