-
Notifications
You must be signed in to change notification settings - Fork 34
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
1 parent
dbd3159
commit 7acbba3
Showing
8 changed files
with
95 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
testbed.json |
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,3 @@ | ||
output.json | ||
work | ||
|
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,32 @@ | ||
# | ||
# Makefile for Testbed Plugins | ||
# | ||
|
||
PRODUCT := output.json | ||
|
||
# Top of the source tree | ||
TOP := ../.. | ||
|
||
|
||
default: build | ||
|
||
|
||
WORK := work | ||
$(WORK):: | ||
rm -rf "$@" | ||
mkdir -p "$@" | ||
TO_CLEAN += $(WORK) | ||
|
||
|
||
BUILDER := ./copy-plugin-json | ||
$(PRODUCT): Makefile $(BUILDER) $(WORK) | ||
$(BUILDER) '$(TOP)' '$(WORK)' | ||
jq -s add $(WORK)/* > $@ | ||
TO_CLEAN += $(PRODUCT) | ||
|
||
|
||
build: $(PRODUCT) | ||
|
||
|
||
clean: | ||
rm -rf $(TO_CLEAN) *~ |
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,21 @@ | ||
#!/bin/sh -e | ||
# | ||
# Find all of the plugins' output.json files and dump them into one | ||
# place. | ||
# | ||
|
||
TOP="$1" | ||
DEST="$2" | ||
|
||
ls "${TOP}" \ | ||
| egrep -e '^pscheduler-(archiver|context|text|tool)-.*$' \ | ||
| ( | ||
while read PLUGIN | ||
do | ||
PLUGIN_FILE="${TOP}/${PLUGIN}/testbed.json" | ||
if [ -e "${PLUGIN_FILE}" ] | ||
then | ||
cp "${PLUGIN_FILE}" "${DEST}/${PLUGIN}" | ||
fi | ||
done | ||
) |
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 @@ | ||
output.json |
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,12 @@ | ||
# | ||
# Makefile for Testbed Skeleton | ||
# | ||
|
||
default: build | ||
|
||
|
||
build: | ||
@true | ||
|
||
clean: | ||
rm -rf $(TO_CLEAN) *~ |
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,23 @@ | ||
{ | ||
"_meta": { | ||
"administrators": [ | ||
{ | ||
"email": "[email protected]", | ||
"name": "The perfSONAR Development Team" | ||
} | ||
], | ||
"display-name": "perfSONAR Test Bed for pScheduler" | ||
}, | ||
"addresses": { | ||
}, | ||
"archives": { | ||
}, | ||
"groups": { | ||
}, | ||
"schedules": { | ||
}, | ||
"tasks": { | ||
}, | ||
"tests": { | ||
} | ||
} |