-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ahmad-Nouri1
committed
Mar 5, 2024
1 parent
dbd3755
commit 5b19d8c
Showing
12 changed files
with
136 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (C)2020, 2024 International Business Machines Corporation and | ||
# others. All Rights Reserved. | ||
.PHONY: build all distributed clean | ||
|
||
# Please point this to your correct eval_predicate toolkit location. | ||
STREAMS_EVAL_PREDICATE_TOOLKIT ?= $(PWD)/../../com.ibm.streamsx.eval_predicate | ||
|
||
ifeq ($(STREAMS_STUDIO_BUILDING), 1) | ||
$(info Building from Streams Studio, use env vars set by studio) | ||
SPLC = $(STREAMS_STUDIO_SC_PATH) | ||
DATA_DIR = $(STREAMS_STUDIO_DATA_DIRECTORY) | ||
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY) | ||
TOOLKIT_PATH = $(STREAMS_STUDIO_SPL_PATH) | ||
else | ||
$(info build use env settings) | ||
ifndef STREAMS_INSTALL | ||
$(error require streams environment STREAMS_INSTALL) | ||
endif | ||
SPLC = $(STREAMS_INSTALL)/bin/sc | ||
DATA_DIR = data | ||
OUTPUT_DIR = output/com.ibm.streamsx.eval_predicate.test.EvalPredicateExample/BuildConfig | ||
TOOLKIT_PATH = $(STREAMS_EVAL_PREDICATE_TOOLKIT) | ||
endif | ||
|
||
SPL_MAIN_COMPOSITE = com.ibm.streamsx.eval_predicate.test::EvalPredicateExample | ||
SPLC_FLAGS = -a | ||
SPL_CMD_ARGS ?= | ||
|
||
build: distributed | ||
|
||
all: clean build | ||
|
||
distributed: | ||
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE) -t ${TOOLKIT_PATH} --data-dir $(DATA_DIR) --output-dir $(OUTPUT_DIR) $(SPL_CMD_ARGS) | ||
|
||
clean: | ||
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE) -t ${TOOLKIT_PATH} --data-dir $(DATA_DIR) --output-dir $(OUTPUT_DIR) -C $(SPL_CMD_ARGS) | ||
|
||
rm -rf output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<info:toolkitInfoModel xmlns:common="http://www.ibm.com/xmlns/prod/streams/spl/common" xmlns:info="http://www.ibm.com/xmlns/prod/streams/spl/toolkitInfo"> | ||
<info:identity> | ||
<info:name>01_eval_predicate_example</info:name> | ||
<info:description>Simple example that showcases the major eval_predicate features.</info:description> | ||
<info:version>1.1.9</info:version> | ||
<info:requiredProductVersion>4.2.0.0</info:requiredProductVersion> | ||
</info:identity> | ||
<info:dependencies> | ||
<info:toolkit> | ||
<common:name>com.ibm.streamsx.eval_predicate</common:name> | ||
<common:version>[1.1.9,9.0.0)</common:version> | ||
</info:toolkit> | ||
</info:dependencies> | ||
</info:toolkitInfoModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (C)2020, 2024 International Business Machines Corporation and | ||
# others. All Rights Reserved. | ||
.PHONY: build all distributed clean | ||
|
||
# Please point this to your correct eval_predicate toolkit location. | ||
STREAMS_EVAL_PREDICATE_TOOLKIT ?= $(PWD)/../../com.ibm.streamsx.eval_predicate | ||
|
||
ifeq ($(STREAMS_STUDIO_BUILDING), 1) | ||
$(info Building from Streams Studio, use env vars set by studio) | ||
SPLC = $(STREAMS_STUDIO_SC_PATH) | ||
DATA_DIR = $(STREAMS_STUDIO_DATA_DIRECTORY) | ||
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY) | ||
TOOLKIT_PATH = $(STREAMS_STUDIO_SPL_PATH) | ||
else | ||
$(info build use env settings) | ||
ifndef STREAMS_INSTALL | ||
$(error require streams environment STREAMS_INSTALL) | ||
endif | ||
SPLC = $(STREAMS_INSTALL)/bin/sc | ||
DATA_DIR = data | ||
OUTPUT_DIR = output/com.ibm.streamsx.eval_predicate.test.FunctionalTests/BuildConfig | ||
TOOLKIT_PATH = $(STREAMS_EVAL_PREDICATE_TOOLKIT) | ||
endif | ||
|
||
SPL_MAIN_COMPOSITE = com.ibm.streamsx.eval_predicate.test::FunctionalTests | ||
SPLC_FLAGS = -a | ||
SPL_CMD_ARGS ?= | ||
|
||
build: distributed | ||
|
||
all: clean build | ||
|
||
distributed: | ||
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE) -t ${TOOLKIT_PATH} --data-dir $(DATA_DIR) --output-dir $(OUTPUT_DIR) $(SPL_CMD_ARGS) | ||
|
||
clean: | ||
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE) -t ${TOOLKIT_PATH} --data-dir $(DATA_DIR) --output-dir $(OUTPUT_DIR) -C $(SPL_CMD_ARGS) | ||
|
||
rm -rf output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<info:toolkitInfoModel xmlns:common="http://www.ibm.com/xmlns/prod/streams/spl/common" xmlns:info="http://www.ibm.com/xmlns/prod/streams/spl/toolkitInfo"> | ||
<info:identity> | ||
<info:name>02_eval_predicate_functional_tests</info:name> | ||
<info:description>Comprehensive example that showcases all the eval_predicate features.</info:description> | ||
<info:version>1.1.9</info:version> | ||
<info:requiredProductVersion>4.2.0.0</info:requiredProductVersion> | ||
</info:identity> | ||
<info:dependencies> | ||
<info:toolkit> | ||
<common:name>com.ibm.streamsx.eval_predicate</common:name> | ||
<common:version>[1.1.9,9.0.0)</common:version> | ||
</info:toolkit> | ||
</info:dependencies> | ||
</info:toolkitInfoModel> |