zulkifal-turing commited on
Commit
94e70c3
·
verified ·
1 Parent(s): cbebbc5

Update setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +20 -0
setup.sh CHANGED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Create test environment for power profile switching
3
+
4
+ echo "Setting up power profile test environment..."
5
+
6
+ # Set initial power profile to balanced for consistent testing
7
+ echo "Setting power profile to balanced mode..."
8
+ powerprofilesctl set balanced
9
+
10
+ # Verify the setting was applied
11
+ current_profile=$(powerprofilesctl get)
12
+ echo "Current power profile: $current_profile"
13
+
14
+ if [ "$current_profile" = "balanced" ]; then
15
+ echo "Setup completed successfully - power profile set to balanced"
16
+ echo "Test environment is ready for power profile switching task"
17
+ else
18
+ echo "Setup failed - could not set power profile to balanced"
19
+ exit 1
20
+ fi