Home
last modified time | relevance | path

Searched refs:testcase (Results 1 – 25 of 41) sorted by relevance

12

/dflybsd-src/usr.bin/dfregress/
H A Dtestcase.c55 testcase_from_struct(struct testcase *testcase) in testcase_from_struct() argument
65 r = prop_dictionary_set_cstring(testcase_dict, "name", testcase->name); in testcase_from_struct()
68 r = prop_dictionary_set_cstring(testcase_dict, "type", testcase->type_str); in testcase_from_struct()
73 (int32_t)testcase->argc); in testcase_from_struct()
77 a = prop_array_create_with_capacity(testcase->argc+1); in testcase_from_struct()
81 s = strrchr(testcase->name, '/'); in testcase_from_struct()
82 r = prop_array_set_cstring(a, 0, (s == NULL) ? testcase->name : s+1); in testcase_from_struct()
86 for (i = 1; i <= testcase->argc; i++) { in testcase_from_struct()
87 r = prop_array_set_cstring(a, i, testcase->argv[i-1]); in testcase_from_struct()
101 (int32_t)testcase->opts.timeout_in_secs); in testcase_from_struct()
[all …]
H A Dtestcase.h66 struct testcase { struct
77 prop_dictionary_t testcase_from_struct(struct testcase *testcase); argument
79 struct timeval *testcase_get_timeout(prop_dictionary_t testcase);
80 int testcase_get_type(prop_dictionary_t testcase);
81 int testcase_get_rc(prop_dictionary_t testcase);
82 const char *testcase_get_type_desc(prop_dictionary_t testcase);
83 const char *testcase_get_name(prop_dictionary_t testcase);
84 int testcase_get_argc(prop_dictionary_t testcase);
85 const char **testcase_get_args(prop_dictionary_t testcase);
86 uint32_t testcase_get_flags(prop_dictionary_t testcase);
[all …]
H A Drunlist.c89 prop_dictionary_t testcase; in runlist_iterate() local
96 while ((testcase = prop_object_iterator_next(it)) != NULL) { in runlist_iterate()
97 r = iterator(arg, testcase); in runlist_iterate()
107 runlist_run_test(void *arg, prop_dictionary_t testcase) in runlist_run_test() argument
119 testcase_get_name(testcase)); in runlist_run_test()
125 printf("Running testcase %s... ", testcase_get_name(testcase)); in runlist_run_test()
133 testcase_set_result(testcase, RESULT_PREFAIL); in runlist_run_test()
134 testcase_set_sys_buf(testcase, errbuf); in runlist_run_test()
139 if ((testcase_get_flags(testcase) & TESTCASE_NOBUILD) == 0) { in runlist_run_test()
140 r = run_simple_cmd(testcase_get_make_cmd(testcase), NULL, in runlist_run_test()
[all …]
H A Dkernel.c63 run_kernel(const char *kmod, prop_dictionary_t testcase) in run_kernel() argument
73 testcase_set_sys_buf(testcase, errmsg); in run_kernel()
74 testcase_set_result(testcase, RESULT_PREFAIL); in run_kernel()
84 testcase_set_sys_buf(testcase, errmsg); in run_kernel()
85 testcase_set_result(testcase, RESULT_PREFAIL); in run_kernel()
95 testcase_set_sys_buf(testcase, errmsg); in run_kernel()
96 testcase_set_result(testcase, RESULT_PREFAIL); in run_kernel()
103 r = prop_dictionary_send_ioctl(testcase, fd, TBRIDGE_LOADTEST); in run_kernel()
107 testcase_set_sys_buf(testcase, errmsg); in run_kernel()
108 testcase_set_result(testcase, RESULT_PREFAIL); in run_kernel()
[all …]
H A DNOTES16 A testcase can be considered not run when the result is any of the following:
19 A testcase can be considered run when the result is any of the following:
28 1) chdir to testcase directory
31 2) build testcase (make) (unless nobuild flag is set).
47 4) run actual testcase, depending on type
51 - for userland and kernel: run the testcase, possibly as a different
64 6) clean testcase directory (make clean) (unless nobuild flag is set).
/dflybsd-src/tools/regression/bin/sh/expansion/
H A Dtrim1.08 testcase() {
24 testcase 'set -- ${t%t}' '1|texttex'
25 testcase 'set -- "${t%t}"' '1|texttex'
26 testcase 'set -- ${t%e*}' '1|textt'
27 testcase 'set -- "${t%e*}"' '1|textt'
28 testcase 'set -- ${t%%e*}' '1|t'
29 testcase 'set -- "${t%%e*}"' '1|t'
30 testcase 'set -- ${t%%*}' '0|'
31 testcase 'set -- "${t%%*}"' '1|'
32 testcase 'set -- ${t#t}' '1|exttext'
[all …]
H A Dplus-minus1.08 testcase() {
24 testcase 'set -- a b' '2|a|b'
25 testcase 'set --' '0|'
26 testcase 'set -- ${e}' '0|'
27 testcase 'set -- "${e}"' '1|'
29 testcase 'set -- $p' '1|/etc/'
30 testcase 'set -- "$p"' '1|/et[c]/'
31 testcase 'set -- ${s+$p}' '1|/etc/'
32 testcase 'set -- "${s+$p}"' '1|/et[c]/'
33 testcase 'set -- ${s+"$p"}' '1|/et[c]/'
[all …]
H A Dtrim8.017 testcase() {
33 testcase 'set -- "$s"' "1|$s"
34 testcase 'set -- "${s#$c2}"' "1|$s"
35 testcase 'set -- "${s#*}"' "1|$s"
36 testcase 'set -- "${s#$c1}"' "1|$c2$c3$c4"
37 testcase 'set -- "${s#$c1$c2}"' "1|$c3$c4"
38 testcase 'set -- "${s#$c1$c2$c3}"' "1|$c4"
39 testcase 'set -- "${s#$c1$c2$c3$c4}"' "1|"
40 testcase 'set -- "${s#?}"' "1|$c2$c3$c4"
41 testcase 'set -- "${s#??}"' "1|$c3$c4"
[all …]
H A Dcmdsubst6.07 testcase() {
23 testcase '$w'
24 testcase '1${w+1}'
25 testcase '1${w-1}'
26 testcase '1${v+1}'
27 testcase '1${v-1}'
28 testcase '1${w:+1}'
29 testcase '1${w:-1}'
30 testcase '1${v:+1}'
31 testcase '1${v:-1}'
[all …]
H A Dtilde2.010 testcase() {
26 testcase 'set -- ${$+~}' '1|/tmp'
27 testcase 'set -- ${$+~/}' '1|/tmp/'
28 testcase 'set -- ${$+~/foo}' '1|/tmp/foo'
29 testcase 'set -- ${$+x~}' '1|x~'
30 testcase 'set -- ${$+~root}' "1|$roothome"
31 testcase 'set -- ${$+"~"}' '1|~'
32 testcase 'set -- ${$+"~/"}' '1|~/'
33 testcase 'set -- ${$+"~/foo"}' '1|~/foo'
34 testcase 'set -- ${$+"x~"}' '1|x~'
[all …]
H A Dtrim9.09 testcase() {
25 testcase 'shift $#; set -- "${*#Q}"' '1|'
26 testcase 'shift $#; set -- "${*##Q}"' '1|'
27 testcase 'shift $#; set -- "${*%Q}"' '1|'
28 testcase 'shift $#; set -- "${*%%Q}"' '1|'
29 testcase 'set -- Q R; set -- "${*#Q}"' '1| R'
30 testcase 'set -- Q R; set -- "${*##Q}"' '1| R'
31 testcase 'set -- Q R; set -- "${*%R}"' '1|Q '
32 testcase 'set -- Q R; set -- "${*%%R}"' '1|Q '
33 testcase 'set -- Q R; set -- "${*#S}"' '1|Q R'
[all …]
H A Dtrim2.08 testcase() {
25 testcase 'set -- $s' '1|ast*que?non'
26 testcase 'set -- ${s%\?*}' '1|ast*que'
27 testcase 'set -- "${s%\?*}"' '1|ast*que'
28 testcase 'set -- ${s%\**}' '1|ast'
29 testcase 'set -- "${s%\**}"' '1|ast'
30 testcase 'set -- ${s%"$q"*}' '1|ast*que'
31 testcase 'set -- "${s%"$q"*}"' '1|ast*que'
32 testcase 'set -- ${s%"$a"*}' '1|ast'
33 testcase 'set -- "${s%"$a"*}"' '1|ast'
[all …]
H A Dtrim3.08 testcase() {
25 testcase 'set -- "${w%${w#???}}"' '1|a b'
27 testcase 'set -- ${p#/et[}' '1|c]/'
28 testcase 'set -- "${p#/et[}"' '1|c]/'
29 testcase 'set -- "${p%${p#????}}"' '1|/et['
31 testcase 'set -- ${b%'\'}\''}' '1|{{(#)}'
33 testcase 'set -- ${c#\\}' '1|\\\'
34 testcase 'set -- ${c#\\\\}' '1|\\'
35 testcase 'set -- ${c#\\\\\\}' '1|\'
36 testcase 'set -- ${c#\\\\\\\\}' '0|'
[all …]
H A Dtilde1.010 testcase() {
26 testcase 'set -- ~' '1|/tmp'
27 testcase 'set -- ~/foo' '1|/tmp/foo'
28 testcase 'set -- x~' '1|x~'
29 testcase 'set -- ~root' "1|$roothome"
31 testcase 'set -- "$h"' '1|/tmp'
34 testcase 'set -- ~' '1|/tmp'
35 testcase 'set -- ~/foo' '1|/tmp/foo'
36 testcase 'set -- $h' '2|/t|p'
39 testcase 'set -- $t' '1|~'
[all …]
H A Dcmdsubst7.06 testcase() {
20 testcase ': ${v=0}'
21 testcase ': ${v:=0}'
22 testcase ': $((v=1))'
23 testcase ': $((v+=1))'
25 testcase ': $(($w))'
26 testcase ': $((${$+v=1}))'
27 testcase ': $((v${$+=1}))'
28 testcase ': $((v $(echo =) 1))'
29 testcase ': $(($(echo $w)))'
H A Dassign1.08 testcase() {
24 testcase 'v=; set -- ${v=a b} $v' '0|'
25 testcase 'unset v; set -- ${v=a b} $v' '4|a|b|a|b'
26 testcase 'v=; set -- ${v:=a b} $v' '4|a|b|a|b'
27 testcase 'v=; set -- "${v:=a b}" "$v"' '2|a b|a b'
29 testcase 'v=; set -- ${v:=a\ b} $v' '4|a|b|a|b'
30 testcase 'v=; set -- ${v:=$p} $v' '2|/etc/|/etc/'
31 testcase 'v=; set -- "${v:=$p}" "$v"' '2|/et[c]/|/et[c]/'
32 testcase 'v=; set -- "${v:=a\ b}" "$v"' '2|a\ b|a\ b'
33 testcase 'v=; set -- ${v:="$p"} $v' '2|/etc/|/etc/'
[all …]
H A Dplus-minus3.08 testcase() {
33 testcase 'set -- "${p+"/et[c]/"}"' '1|/etc/'
34 testcase 'set -- "${p-"/et[c]/"}"' '1|/et[c]/'
35 testcase 'set -- "${p+"$p"}"' '1|/etc/'
36 testcase 'set -- "${p-"$p"}"' '1|/et[c]/'
37 testcase 'set -- "${p+"""/et[c]/"}"' '1|/etc/'
38 testcase 'set -- "${p-"""/et[c]/"}"' '1|/et[c]/'
39 testcase 'set -- "${p+"""$p"}"' '1|/etc/'
40 testcase 'set -- "${p-"""$p"}"' '1|/et[c]/'
41 testcase 'set -- "${p+"\@"}"' '1|@'
[all …]
H A Dplus-minus4.013 testcase() {
29 testcase 'set -- ${e:-'"'"'}'"'"'}' '1|}'
30 testcase "set -- \${e:-\\'}" "1|'"
31 testcase "set -- \${e:-\\'\\'}" "1|''"
32 testcase "set -- \"\${e:-'}\"" "1|'"
33 testcase "set -- \"\${e:-'}'}\"" "1|''}"
34 testcase "set -- \"\${e:-''}\"" "1|''"
35 testcase 'set -- ${e:-\a}' '1|a'
36 testcase 'set -- "${e:-\a}"' '1|\a'
H A Dplus-minus5.08 testcase() {
24 testcase 'set -- ${e:-"{x}"}' '1|{x}'
25 testcase 'set -- "${e:-"{x}"}"' '1|{x}'
26 testcase 'set -- ${h+"{x}"}' '1|{x}'
27 testcase 'set -- "${h+"{x}"}"' '1|{x}'
28 testcase 'set -- ${h:-"{x}"}' '1|##'
29 testcase 'set -- "${h:-"{x}"}"' '1|##'
H A Dtrim5.08 testcase() {
24 testcase 'set -- "${b%'\'}\''}"' '1|{{(#)}'
25 testcase 'set -- ${b%"}"}' '1|{{(#)}'
26 testcase 'set -- "${b%"}"}"' '1|{{(#)}'
H A Dplus-minus7.07 testcase() {
23 testcase 'set -- ${s+a b}' '2|a|b'
24 testcase 'set -- ${e:-a b}' '2|a|b'
/dflybsd-src/tools/regression/bin/sh/parameters/
H A Dpositional2.06 testcase() {
22 testcase 'set -- a b; set -- p$@q' '2|pa|bq'
23 testcase 'set -- a b; set -- $@q' '2|a|bq'
24 testcase 'set -- a b; set -- p$@' '2|pa|b'
25 testcase 'set -- a b; set -- p$@q' '2|pa|bq'
26 testcase 'set -- a b; set -- $@q' '2|a|bq'
27 testcase 'set -- a b; set -- p$@' '2|pa|b'
28 testcase 'set -- a b; set -- p$*q' '2|pa|bq'
29 testcase 'set -- a b; set -- $*q' '2|a|bq'
30 testcase 'set -- a b; set -- p$*' '2|pa|b'
[all …]
H A Dpositional8.06 testcase() {
22 testcase 'shift $#; set -- ""$*' '1|'
23 testcase 'shift $#; set -- $*""' '1|'
24 testcase 'shift $#; set -- ""$@' '1|'
25 testcase 'shift $#; set -- $@""' '1|'
26 testcase 'shift $#; set -- """$*"' '1|'
27 testcase 'shift $#; set -- "$*"""' '1|'
28 testcase 'shift $#; set -- """$@"' '1|'
29 testcase 'shift $#; set -- "$@"""' '1|'
/dflybsd-src/usr.bin/dfregress/fe/text/
H A Dfe_text.c77 static char *get_arg_string(prop_dictionary_t testcase) in get_arg_string() argument
85 argv = testcase_get_args(testcase); in get_arg_string()
137 runlist_parse_summary(void *arg __unused, prop_dictionary_t testcase) in runlist_parse_summary() argument
142 ++count_by_result[testcase_get_result(testcase)]; in runlist_parse_summary()
143 args = get_arg_string(testcase); in runlist_parse_summary()
145 i = printf("%s", testcase_get_name(testcase)); in runlist_parse_summary()
152 printf("%s\n", testcase_get_result_desc(testcase)); in runlist_parse_summary()
158 runlist_parse_detail(void *arg __unused, prop_dictionary_t testcase) in runlist_parse_detail() argument
162 args = get_arg_string(testcase); in runlist_parse_detail()
167 printf("Test: %s\n", testcase_get_name(testcase)); in runlist_parse_detail()
[all …]
/dflybsd-src/sys/dev/misc/tbridge/
H A Dtbridge.c66 testcase_get_result_dict(prop_dictionary_t testcase) in testcase_get_result_dict() argument
71 result_dict = prop_dictionary_get(testcase, "result"); in testcase_get_result_dict()
79 r = prop_dictionary_set(testcase, "result", result_dict); in testcase_get_result_dict()
90 testcase_get_timeout(prop_dictionary_t testcase) in testcase_get_timeout() argument
95 r = prop_dictionary_get_int32(prop_dictionary_get(testcase, "opts"), in testcase_get_timeout()
104 testcase_set_stdout_buf(prop_dictionary_t testcase, const char *buf) in testcase_set_stdout_buf() argument
106 prop_dictionary_t dict = testcase_get_result_dict(testcase); in testcase_set_stdout_buf()
112 testcase_set_result(prop_dictionary_t testcase, int result) in testcase_set_result() argument
114 prop_dictionary_t dict = testcase_get_result_dict(testcase); in testcase_set_result()
120 testcase_get_name(prop_dictionary_t testcase) in testcase_get_name() argument
[all …]

12