Skip to content

Instantly share code, notes, and snippets.

@timotree3
Created December 26, 2016 22:02
Show Gist options
  • Save timotree3/44eab1da5c223dda1e57bad17e6e2c44 to your computer and use it in GitHub Desktop.
Save timotree3/44eab1da5c223dda1e57bad17e6e2c44 to your computer and use it in GitHub Desktop.
Make errors
rm -rf ceptr_specs *.o ceptr_spec.dSYM ceptr ceptr.dSYM #src/base_defs.c src/base_defs.h
gcc -pthread -g -o ceptr_specs src/ceptr.h src/ceptr_error.h src/base_defs.h src/stream.h src/scape.h src/ansicolor.h src/sys_defs.h src/group.h src/receptor.h src/hashfn.h src/mtree.h src/vmhost.h src/debug.h src/util.h src/semtable.h src/uthash.h src/accumulator.h src/def.h src/process.h src/tree.h src/protocol.h src/ceptr_types.h src/label.h src/semtrex.h src/shell.h src/protocol.c src/receptor.c src/label.c src/base_defs.c src/semtable.c src/mtree.c src/tree.c src/semtrex.c src/group.c src/hashfn.c src/shell.c src/debug.c src/vmhost.c src/util.c src/sys_defs.c src/stream.c src/accumulator.c src/process.c src/def.c src/scape.c spec/spec_utils.c spec/ceptr_specs.c
./ceptr_specs
sh: line 2: nc: command not found
sh: line 2: nc: command not found
sh: line 2: nc: command not found
sh: nc: command not found
Running all tests...
....................................................................................................................................................................................................................................................................................................................................................................................................................................................FF...............................................................................................................................................................................................................................................................................................................F......................................................................................................................................................................................................................FF.....................F.................................F..............................F...
8 out of 1048 specs failed:
testStreamSocket:306 expected result to be:
"fishy"
but_was:
""
testStreamSocket:310 expected result to be:
"fishy"
but_was:
""
testProcessInitiate:1228 expected t2s(run_tree) to be:
""
but_was:
"(RUN_TREE (process:NOOP) (PARAMS))"
_ltester:709 expected result to be:
"testing!
fish
"
but_was:
""
testReceptorEdgeListener:780 expected t2s(r->flux) to be:
"(FLUX (DEFAULT_ASPECT (EXPECTATIONS (EXPECTATION (CARRIER:LINE) (PATTERN (SEMTREX_SYMBOL_ANY)) (ACTION:echo2stream) (PARAMS (EDGE_STREAM) (SLOT (USAGE:NULL_SYMBOL))) (END_CONDITIONS (UNLIMITED)) (CONVERSATION_IDENT (CONVERSATION_UUID)))) (SIGNALS (SIGNAL (ENVELOPE (SIGNAL_UUID)) (MESSAGE (HEAD (FROM_ADDRESS (RECEPTOR_ADDR:3)) (TO_ADDRESS (RECEPTOR_ADDR:3)) (ASPECT_IDENT:DEFAULT_ASPECT) (CARRIER:LINE) (CONVERSATION_IDENT (CONVERSATION_UUID))) (BODY:{(LINE:testing!)})) (RUN_TREE (REDUCTION_ERROR_SYMBOL:NULL_SYMBOL) (PARAMS (EDGE_STREAM) (LINE:testing!)))) (SIGNAL (ENVELOPE (SIGNAL_UUID)) (MESSAGE (HEAD (FROM_ADDRESS (RECEPTOR_ADDR:3)) (TO_ADDRESS (RECEPTOR_ADDR:3)) (ASPECT_IDENT:DEFAULT_ASPECT) (CARRIER:LINE) (CONVERSATION_IDENT (CONVERSATION_UUID))) (BODY:{(LINE:fish)})) (RUN_TREE (REDUCTION_ERROR_SYMBOL:NULL_SYMBOL) (PARAMS (EDGE_STREAM) (LINE:fish)))) (SIGNAL (ENVELOPE (SIGNAL_UUID)) (MESSAGE (HEAD (FROM_ADDRESS (RECEPTOR_ADDR:3)) (TO_ADDRESS (RECEPTOR_ADDR:3)) (ASPECT_IDENT:DEFAULT_ASPECT) (CARRIER:LINE) (CONVERSATION_IDENT (CONVERSATION_UUID))) (BODY:{(LINE:)})) (RUN_TREE (REDUCTION_ERROR_SYMBOL:NULL_SYMBOL) (PARAMS (EDGE_STREAM) (LINE:)))))))"
but_was:
"(FLUX (DEFAULT_ASPECT (EXPECTATIONS) (SIGNALS)))"
testVMHostShell:346 expected output_data to be:
"COMPOSITORY:0 DEV_COMPOSITORY:1 TEST_RECEPTOR:2 CLOCK_RECEPTOR:3 shell:4 STREAM_EDGE:5 STREAM_EDGE:6
(TICK (TODAY (YEAR:"
but_was:
"COMPOSITORY:0 DEV_COMPOSITORY:1 TEST_RECEPTOR:2 CLOCK_RECEPTOR:3 shell:4 STREAM_EDGE:5 STREAM_EDGE:6
12/26/2016
22:0:10
"
testProtocolUnwrap:229 expected t2s(unwrapped) to be:
"(PROTOCOL_DEFINITION (PROTOCOL_LABEL (ENGLISH_LABEL:shake)) (PROTOCOL_SEMANTICS (ROLE:mover) (ROLE:shaker) (GOAL:shaking) (USAGE:info)) (PROTOCOL_DEFAULTS (SEMANTIC_LINK (USAGE:info) (REPLACEMENT_VALUE (USAGE:TEST_FLOAT_SYMBOL))) (SEMANTIC_LINK (GOAL:shaking) (REPLACEMENT_VALUE (ACTUAL_PROCESS:NOOP)))) (act (EXPECT (ROLE:mover) (SOURCE (ROLE:mover)) (PATTERN (SEMTREX_SYMBOL_LITERAL (SLOT (USAGE:info) (SLOT_IS_VALUE_OF:SEMTREX_SYMBOL)))) (SLOT (GOAL:shaking) (SLOT_IS_VALUE_OF:ACTION)))))"
but_was:
"(PROTOCOL_DEFINITION (PROTOCOL_LABEL (ENGLISH_LABEL:shake)) (PROTOCOL_SEMANTICS (ROLE:mover) (ROLE:shaker) (GOAL:shaking) (USAGE:info)) (PROTOCOL_DEFAULTS (SEMANTIC_LINK (USAGE:info) (REPLACEMENT_VALUE (USAGE:TEST_FLOAT_SYMBOL)))) (act (EXPECT (ROLE:mover) (SOURCE (ROLE:mover)) (PATTERN (SEMTREX_SYMBOL_LITERAL (SLOT (USAGE:info) (SLOT_IS_VALUE_OF:SEMTREX_SYMBOL)))) (SLOT (GOAL:shaking) (SLOT_IS_VALUE_OF:ACTION)))))"
_httptester:324 expected result to be:
"HTTP/1.1 200 OK
Content-Type: text/ceptr
super cept
314159
"
but_was:
""
gcc -pthread -g -o ceptr src/ceptr.h src/ceptr_error.h src/base_defs.h src/stream.h src/scape.h src/ansicolor.h src/sys_defs.h src/group.h src/receptor.h src/hashfn.h src/mtree.h src/vmhost.h src/debug.h src/util.h src/semtable.h src/uthash.h src/accumulator.h src/def.h src/process.h src/tree.h src/protocol.h src/ceptr_types.h src/label.h src/semtrex.h src/shell.h src/protocol.c src/receptor.c src/label.c src/ceptr.c src/base_defs.c src/semtable.c src/mtree.c src/tree.c src/semtrex.c src/group.c src/hashfn.c src/shell.c src/debug.c src/vmhost.c src/util.c src/sys_defs.c src/stream.c src/accumulator.c src/process.c src/def.c src/scape.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment