File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh -x
1
+ #! /bin/sh
2
2
3
+ # Prepare a test machine environment for running CFEngine tests
4
+ # Called by the test script when TEST_MACHINE is set
5
+ #
6
+ # Environment Variables:
7
+ # TEST_MACHINE - Type of test machine to prepare (e.g., 'chroot')
8
+ #
9
+ # Description:
10
+ # This script dispatches to the appropriate test machine preparation script
11
+ # based on the TEST_MACHINE environment variable. Currently supports:
12
+ # - chroot: Creates/configures a chroot environment for isolated testing
13
+ #
14
+ # Additional test machine types (VMs, containers, etc.) can be added here.
15
+
16
+ # Load shared functions and environment configuration
3
17
. " $( dirname " $0 " ) " /functions
4
18
. detect-environment
5
19
. compile-options
6
20
21
+ log_debug " Preparing test machine (TEST_MACHINE=$TEST_MACHINE )"
22
+
23
+ # Dispatch to appropriate test machine preparation script
7
24
case " $TEST_MACHINE " in
8
25
chroot)
26
+ # Prepare a chroot-based test environment
9
27
" $BASEDIR " /buildscripts/build-scripts/prepare-testmachine-chroot
10
28
;;
11
29
* )
12
30
# Add VMs, etc here.
13
- echo " Only chroot test machines are supported at the moment."
31
+ log_error " Unsupported test machine type: $TEST_MACHINE : Only chroot test machines are supported at the moment."
14
32
exit 1
15
33
;;
16
34
esac
You can’t perform that action at this time.
0 commit comments