# file : tests/function/process/testscript # license : MIT; see accompanying LICENSE file .include ../../common.testscript : run : $* <>~/EOO/ print $process.run($build.path --version) EOI /build2 .+/ /.+/* EOO : run-regex-match : $* <>~/EOO/ print $process.run_regex($build.path --version, 'build2 .+') EOI /build2 .+/ EOO : run-regex-replace : $* <>~/EOO/ print $process.run_regex($build.path --version, 'build2 ([0-9.]+).*', '\1') EOI /[0-9]+.[0-9]+.[0-9]+/d EOO