File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This is meant to be run from `make check` or `make build-tests` in root directory
12# To run this not through the repo root Makefile, please provide the $KAPPABIN path
23OUTPUT_PATH: =output
34ERROR: =error
1920 @echo ' make clean: recursively clean everything but the reference files'
2021 @echo ' make clean_all: recursively clean everything including the reference files'
2122 @echo
23+ @echo ' This is meant to be run from `make check` or `make build-tests` in root directory'
2224 @echo ' To run this from this directory and not from the root Makefile, please specify the KAPPABIN path in the environment.'
2325
2426# NOTE: COMMENT THIS TO DEBUG
Original file line number Diff line number Diff line change 1- #Command-line:
2- "${KAPPABIN}"KaSim json.ka -seed 840540685 -l 5 -d output -trace /tmp/cflow-json-trace.json -syntax 4 || exit 0
3- "${KAPPABIN}"KaStor --weak -format json /tmp/cflow-json-trace.json -d output --time-independent || exit 0
1+ #! /bin/sh
2+ TRACE_FILE=" ./tmp__cflow-json-trace.json"
3+ " ${KAPPABIN} " KaSim json.ka -seed 840540685 -l 5 -d output -trace ${TRACE_FILE} -syntax 4 || exit 0
4+ " ${KAPPABIN} " KaStor --weak -format json ${TRACE_FILE} -d output --time-independent || exit 0
5+ rm -f ${TRACE_FILE}
Original file line number Diff line number Diff line change 1313 -initial conditions
1414+ Building initial state (2000 agents)
1515Done
16- + Command line to rerun is: 'KaSim' 'json.ka' '-seed' '840540685' '-l' '5' '-d' 'output' '-trace' '/tmp/cflow -json-trace.json' '-syntax' '4'
16+ + Command line to rerun is: 'KaSim' 'json.ka' '-seed' '840540685' '-l' '5' '-d' 'output' '-trace' './tmp__cflow -json-trace.json' '-syntax' '4'
1717______________________________________________________________________
1818######################################################################
1919Simulation ended
Original file line number Diff line number Diff line change 1- # Output of 'KaSim' 'json.ka' '-seed' '840540685' '-l' '5' '-d' 'output' '-trace' '/tmp/cflow -json-trace.json' '-syntax' '4'
1+ # Output of 'KaSim' 'json.ka' '-seed' '840540685' '-l' '5' '-d' 'output' '-trace' './tmp__cflow -json-trace.json' '-syntax' '4'
22"[T]","ApBp","ABA"
330.,0,0
441.,66,0
Original file line number Diff line number Diff line change 55%def: "progressBarSymbol" "#"
66%def: "plotPeriod" "1" "t.u."
77%def: "outputFileName" "data.csv"
8- %def: "traceFileName" "/tmp/cflow -json-trace.json"
8+ %def: "traceFileName" "./tmp__cflow -json-trace.json"
99
1010%agent: A(a{u p}[a.B b.B])
1111%agent: B(a{u p}[a.A] b[a.A])
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- BLOB=/tmp/KaSim-test-blob-$( basename $PWD )
4-
2+ BLOB=./tmp__KaSim-test-blob-$( basename $PWD )
53" ${KAPPABIN} " KaSim --compile -make-sim ${BLOB} -seed 496408597 -d output model.ka -syntax 4 && \
64" ${KAPPABIN} " KaSim --compile -load-sim ${BLOB} -seed 958076642 -d output -syntax 4 && \
75" ${KAPPABIN} " KaSim --compile -load-sim ${BLOB} -seed 458154606 -d output -var init 300 -syntax 4 || exit 0
Original file line number Diff line number Diff line change 1313 -initial conditions
1414+ Building initial state (200 agents)
1515Done
16- + Command line to rerun is: 'KaSim' '--compile' '-make-sim' '/tmp/KaSim -test-blob-marshal' '-seed' '496408597' '-d' 'output' 'model.ka' '-syntax' '4'
17- + Loading simulation package /tmp/KaSim -test-blob-marshal...
16+ + Command line to rerun is: 'KaSim' '--compile' '-make-sim' './tmp__KaSim -test-blob-marshal' '-seed' '496408597' '-d' 'output' 'model.ka' '-syntax' '4'
17+ + Loading simulation package ./tmp__KaSim -test-blob-marshal...
1818+ Building initial state (200 agents)
1919Done
20- + Command line to rerun is: 'KaSim' '--compile' '-load-sim' '/tmp/KaSim -test-blob-marshal' '-seed' '958076642' '-d' 'output' '-syntax' '4'
21- + Loading simulation package /tmp/KaSim -test-blob-marshal...
20+ + Command line to rerun is: 'KaSim' '--compile' '-load-sim' './tmp__KaSim -test-blob-marshal' '-seed' '958076642' '-d' 'output' '-syntax' '4'
21+ + Loading simulation package ./tmp__KaSim -test-blob-marshal...
2222+ Building initial state (600 agents)
2323Done
24- + Command line to rerun is: 'KaSim' '--compile' '-load-sim' '/tmp/KaSim -test-blob-marshal' '-seed' '458154606' '-d' 'output' '-var' 'init' '300' '-syntax' '4'
24+ + Command line to rerun is: 'KaSim' '--compile' '-load-sim' './tmp__KaSim -test-blob-marshal' '-seed' '458154606' '-d' 'output' '-var' 'init' '300' '-syntax' '4'
You can’t perform that action at this time.
0 commit comments