File:  [parser3project] / parser3 / tests / httpd / code-cache / site / config.p
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Oct 5 23:31:56 2026 UTC (2 weeks, 4 days ago) by moko
Branches: MAIN
CVS tags: HEAD
tests for code caching in httpd mode (related to feature #1302)

# the files it loads are compiled once, when the server starts (feature #1302)

@conf[filespec]
$HTTPD[
	$.mode[^if(def $env:TEST_HTTPD_MODE){$env:TEST_HTTPD_MODE}{sequental}]
	$.code-cache(!def $env:TEST_NO_CODE_CACHE)
]

@auto[]
^use[cached.p]
# made by run_tests.sh
^use[changing.p]
# other code under the name of a file the tests load: not to be cached as that file
^process{$processed(true)}[$.file[extend.p]]
# cached when the server starts, but not loaded by the config in requests: the tests meet them later
^if(!def $request:uri){
	^reflection:class_alias[Counter;Late_base]
	^use[late.p]
}

@unhandled_exception[exception;stack]
$exception.type: $exception.comment (^file:basename[$exception.file]:$exception.lineno)


@CLASS
httpd

@main[]
^use[tests.p]
$result[^MAIN:main[]]

E-mail: