New tests to work with updated functions.sh
This commit is contained in:
parent
d9282fceaf
commit
d6b87ecacb
@ -93,7 +93,7 @@ header <<EOF
|
|||||||
1. With TEMPLATE_FLAVOR
|
1. With TEMPLATE_FLAVOR
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ header <<EOF
|
|||||||
2. Without TEMPLATE_FLAVOR
|
2. Without TEMPLATE_FLAVOR
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ header <<EOF
|
|||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
debug "Not supposed to find wheezy+whonix-gateway+kde"
|
debug "Not supposed to find wheezy+whonix-gateway+kde"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy+whonix-gateway+gnome/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/wheezy+whonix-gateway+gnome/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ header <<EOF
|
|||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
debug "Not supposed to find debian+whonix-gateway+kde"
|
debug "Not supposed to find debian+whonix-gateway+kde"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/debian+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy+whonix-gateway+gnome/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/debian+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/wheezy+whonix-gateway+gnome/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ header <<EOF
|
|||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
debug "Not supposed to find whonix-gateway+kde"
|
debug "Not supposed to find whonix-gateway+kde"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy+whonix-gateway+gnome/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/wheezy+whonix-gateway+gnome/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ header <<EOF
|
|||||||
and in a bash file use single 'quotes' around string and \${SCRIPTSDIR}
|
and in a bash file use single 'quotes' around string and \${SCRIPTSDIR}
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/another_location/whonix_gnome/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/another_location/whonix_gnome/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -217,7 +217,7 @@ header <<EOF
|
|||||||
7. Custom template directory
|
7. Custom template directory
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/another_location/whonix-gw/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/another_location/whonix-gw/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ header <<EOF
|
|||||||
8. Custom template directory with space in name
|
8. Custom template directory with space in name
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/another_location/whonix gw/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/another_location/whonix gw/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ header <<EOF
|
|||||||
9. Custom template directory for options
|
9. Custom template directory for options
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/another_location/whonix_gnome/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/another_location/whonix_gnome/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -274,7 +274,7 @@ header <<EOF
|
|||||||
10. Template directory for options within ${SCRIPTSDIR} using short name filter
|
10. Template directory for options within ${SCRIPTSDIR} using short name filter
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/proxy/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/proxy/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ header <<EOF
|
|||||||
11. Template directory for options within using VERY short name filter (+proxy)
|
11. Template directory for options within using VERY short name filter (+proxy)
|
||||||
EOF
|
EOF
|
||||||
buildStep "$0" "pre"
|
buildStep "$0" "pre"
|
||||||
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/proxy/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
assertTest "buildStep $0 pre" "tests/template-flavors/wheezy+whonix-gateway/test_pre.sh\ntests/template-flavors/wheezy/test_pre.sh\ntests/template-flavors/proxy/test_pre.sh\ntests/template-flavors/test_pre.sh"
|
||||||
assertEnd
|
assertEnd
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user