Skip to content

Commit eb233a4

Browse files
committed
prepare-testmachine: documented script
Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent b4cedf6 commit eb233a4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build-scripts/prepare-testmachine

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
#!/bin/sh -x
22

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
317
. "$(dirname "$0")"/functions
418
. detect-environment
519
. compile-options
620

21+
# Dispatch to appropriate test machine preparation script
722
case "$TEST_MACHINE" in
823
chroot)
24+
# Prepare a chroot-based test environment
925
"$BASEDIR"/buildscripts/build-scripts/prepare-testmachine-chroot
1026
;;
1127
*)

0 commit comments

Comments
 (0)