-
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
499efd1
commit b0e412a
Showing
6 changed files
with
154 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,23 +1,13 @@ | ||
# | ||
# Makefile for Testbed Schedules | ||
# Makefile for Testbed Skeleton | ||
# | ||
|
||
PRODUCT := output.json | ||
|
||
INTERVALS := intervals.json | ||
|
||
|
||
default: build | ||
|
||
|
||
BUILDER := ./build-schedules | ||
$(PRODUCT): Makefile $(BUILDER) $(INTERVALS) | ||
$(BUILDER) $(BUILDER_ARGS) < $(INTERVALS) > "$@" | ||
TO_CLEAN += $(PRODUCT) | ||
|
||
|
||
build: $(PRODUCT) | ||
|
||
build: | ||
../bin/validate-json output.json | ||
@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 @@ | ||
# Testbed Schedules | ||
|
||
When adding new repeat intervals: | ||
|
||
Add one named for the time: | ||
|
||
``` | ||
"PT30M": { Named for the ISO interval | ||
"repeat": "PT30M", Same as the name | ||
"slip": "PT15M", Half the interval | ||
"sliprand": true Allow random slip | ||
} | ||
``` | ||
|
||
Add a "strict" version: | ||
|
||
``` | ||
"PT30S-strict": { Named for the ISO interval + "-strict" | ||
"repeat": "PT30S", Same as the name | ||
"slip": "PT30S", Shorter of interval or PT3M | ||
"sliprand": false No random slip | ||
} | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,127 @@ | ||
{ | ||
"schedules": { | ||
|
||
"PT30S": { | ||
"repeat": "PT30S", | ||
"slip": "PT15S", | ||
"sliprand": true | ||
}, | ||
"PT30S-strict": { | ||
"repeat": "PT30S", | ||
"slip": "PT30S", | ||
"sliprand": false | ||
}, | ||
|
||
"PT1M": { | ||
"repeat": "PT1M", | ||
"slip": "PT30S", | ||
"sliprand": true | ||
}, | ||
"PT1M-strict": { | ||
"repeat": "PT1M", | ||
"slip": "PT1M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT5M": { | ||
"repeat": "PT5M", | ||
"slip": "PT2M30S", | ||
"sliprand": true | ||
}, | ||
"PT5M-strict": { | ||
"repeat": "PT5M", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT10M": { | ||
"repeat": "PT10M", | ||
"slip": "PT5M", | ||
"sliprand": true | ||
}, | ||
"PT10M-strict": { | ||
"repeat": "PT10M", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT15M": { | ||
"repeat": "PT15M", | ||
"slip": "PT7M30S", | ||
"sliprand": true | ||
}, | ||
"PT15M-strict": { | ||
"repeat": "PT15M", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
|
||
"PT1H": { | ||
"repeat": "PT1H", | ||
"slip": "PT30M", | ||
"sliprand": true | ||
}, | ||
"PT1H-strict": { | ||
"repeat": "PT1H", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT30M": { | ||
"repeat": "PT30M", | ||
"slip": "PT15M", | ||
"sliprand": true | ||
}, | ||
"PT30M-strict": { | ||
"repeat": "PT30M", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT4H": { | ||
"repeat": "PT4H", | ||
"slip": "PT2H", | ||
"sliprand": true | ||
}, | ||
"PT4H-strict": { | ||
"repeat": "PT4H", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT6H": { | ||
"repeat": "PT6H", | ||
"slip": "PT3H", | ||
"sliprand": true | ||
}, | ||
"PT6H-strict": { | ||
"repeat": "PT6H", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"PT12H": { | ||
"repeat": "PT12H", | ||
"slip": "PT6H", | ||
"sliprand": true | ||
}, | ||
"PT12H-strict": { | ||
"repeat": "PT12H", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
}, | ||
|
||
"P1D": { | ||
"repeat": "P1D", | ||
"slip": "PT12H", | ||
"sliprand": true | ||
}, | ||
"P1D-strict": { | ||
"repeat": "P1D", | ||
"slip": "PT3M", | ||
"sliprand": false | ||
} | ||
|
||
} | ||
} |