test: Add testcase for #1001
Refs: #1001 Change-Id: I3edd750108bd3f887af1f0afe3f2651f1243062b
This commit is contained in:
committed by
Masamichi Takagi
parent
786649d2a3
commit
d4fa953975
35
test/issues/1001/Makefile
Normal file
35
test/issues/1001/Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user