You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/run
+18
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ test_psgi_variables
21
21
test_warningonstderr
22
22
test_npm
23
23
test_from_dockerfile
24
+
test_scl_variables_in_dockerfile
24
25
"
25
26
26
27
source"${test_dir}/test-lib.sh"
@@ -344,6 +345,22 @@ test_npm() {
344
345
cleanup
345
346
}
346
347
348
+
functiontest_scl_variables_in_dockerfile() {
349
+
if [ "$OS"=="rhel7" ] || [ "$OS"=="centos7" ];then
350
+
# autocleanup only enabled here as only the following tests so far use it
351
+
CID_FILE_DIR=$(mktemp -d)
352
+
ct_enable_cleanup
353
+
354
+
info "Testing variable presence during \`docker exec\`"
355
+
ct_check_exec_env_vars
356
+
check_result $?
357
+
358
+
info "Checking if all scl variables are defined in Dockerfile"
359
+
ct_check_scl_enable_vars
360
+
check_result $?
361
+
fi
362
+
}
363
+
347
364
functionrun_all_tests() {
348
365
fortest_casein$TEST_LIST;do
349
366
:"Running test $test_case ...."
@@ -361,6 +378,7 @@ function run_all_tests() {
361
378
[ -n"${FAIL_QUICKLY:-}" ] &&return 1
362
379
done;
363
380
}
381
+
364
382
functiontest_from_dockerfile(){
365
383
info "Check building using a Dockerfile"
366
384
ct_test_app_dockerfile $test_dir/examples/from-dockerfile/${VERSION}/Dockerfile 'https://github.com/sclorg/dancer-ex.git''Welcome to your Dancer application on OpenShift' app-src
0 commit comments