test: Add testcase for #1001

Refs: #1001
Change-Id: I3edd750108bd3f887af1f0afe3f2651f1243062b
This commit is contained in:
Ken Sato
2018-08-01 12:55:08 +09:00
committed by Masamichi Takagi
parent 786649d2a3
commit d4fa953975
12 changed files with 810 additions and 0 deletions

35
test/issues/1001/Makefile Normal file
View File

@ -0,0 +1,35 @@
include $(HOME)/mck_test_config
MCKDIR=$(BIN)/..
CC = gcc
TARGET=perf_tool.o processing CT_001 CT_002 CT_003 CT_004
CPPFLAGS =
LDFLAGS =
all: $(TARGET)
CT_001: CT_001.c perf_tool.o
$(CC) -o $@ $^ $(LDFLAGS)
CT_002: CT_002.c perf_tool.o
$(CC) -o $@ $^ $(LDFLAGS)
CT_003: CT_003.c perf_tool.o
$(CC) -o $@ $^ $(LDFLAGS) -I$(MCKDIR)/include -L$(MCKDIR)/lib -l ihk
CT_004: CT_004.c perf_tool.o
$(CC) -o $@ $^ $(LDFLAGS) -I$(MCKDIR)/include -L$(MCKDIR)/lib -l ihk
perf_tool.o: perf_tool.c perf_tool.h
processing: processing.c perf_tool.o
test: all
@echo "#!/bin/sh" > ./processing.sh
@echo "$(BIN)/mcexec ./processing" >> ./processing.sh
@sh ./C1001.sh
clean:
rm -f $(TARGET) *.o processing.sh