Skip to content

Commit

Permalink
test: add manual test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Nov 13, 2023
1 parent 272172e commit f530a09
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/programs/live_log.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

count=0

while [ $count -lt 30 ]; do
# Generate a random number between 1 and 100
random_number=$((RANDOM))
sleep_time=$(awk -v min=0.1 -v max=2 -v seed="$RANDOM" 'BEGIN{srand(seed); print min+rand()*(max-min)}')

# Print the random number
echo "Sleep Time: $sleep_time"

# Increment the count
((count++))

# Sleep for 1 second
sleep $sleep_time
done
1 change: 1 addition & 0 deletions test/test_live_log.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(echo $TSP_WEB_TS_BIN) -L "Live Log" $(pwd)/test/programs/live_log.sh
4 changes: 4 additions & 0 deletions test/test_scheduling.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30

0 comments on commit f530a09

Please sign in to comment.