lcpex rewrite - alpha
This commit is contained in:
7
sample/components/curses_dialog.bash
Executable file
7
sample/components/curses_dialog.bash
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
echo CURSES DIALOG TEST
|
||||
echo "This is a test of how curses dialogs are handled. Expect freaky behaviour."
|
||||
|
||||
whiptail --title "Dialog title" --inputbox "Enter your name:" 0 0
|
||||
|
||||
exit $?
|
||||
6
sample/components/dependent_test.bash
Executable file
6
sample/components/dependent_test.bash
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "dependent test"
|
||||
echo This test depends on another test having succeeded in order to execute.
|
||||
echo This tests dependencies.
|
||||
exit $?
|
||||
6
sample/components/fail.bash
Executable file
6
sample/components/fail.bash
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
echo "Failure handling test."
|
||||
echo "This test will fail on purpose."
|
||||
>&2 echo "This test is printing to stderr."
|
||||
exit 1
|
||||
|
||||
5
sample/components/independent_test_1.bash
Executable file
5
sample/components/independent_test_1.bash
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
echo "This is an independent test. It does not depend on other tests."
|
||||
echo "Environment file check: TEST_VAR from environment file is set to: $TEST_VAR"
|
||||
|
||||
exit $?
|
||||
3
sample/components/independent_test_2.bash
Executable file
3
sample/components/independent_test_2.bash
Executable file
@@ -0,0 +1,3 @@
|
||||
echo "independent test 2 output"
|
||||
echo "independent test says TEST_VAR is ${TEST_VAR}"
|
||||
exit $?
|
||||
11
sample/environments/rex.variables
Executable file
11
sample/environments/rex.variables
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set -a
|
||||
|
||||
echo "variables file says hello and set a variable named TEST_VAR"
|
||||
TEST_VAR="999"
|
||||
|
||||
2
sample/logs/2023-02-15_18:27:40.stderr.log
Normal file
2
sample/logs/2023-02-15_18:27:40.stderr.log
Normal file
@@ -0,0 +1,2 @@
|
||||
lcpex: setgid failed: Operation not permitted
|
||||
lcpex: Aborting: Setting GID failed: bagira/bagira
|
||||
0
sample/logs/2023-02-15_18:27:40.stdout.log
Normal file
0
sample/logs/2023-02-15_18:27:40.stdout.log
Normal file
1
sample/logs/2023-02-15_18:29:35.stderr.log
Normal file
1
sample/logs/2023-02-15_18:29:35.stderr.log
Normal file
@@ -0,0 +1 @@
|
||||
/usr/bin/bash: line 1: /home/phanes/development/internal/rex-rewrite/sample/environments/rex.variables: Permission denied
|
||||
0
sample/logs/2023-02-15_18:29:35.stdout.log
Normal file
0
sample/logs/2023-02-15_18:29:35.stdout.log
Normal file
1
sample/logs/2023-02-15_18:30:48.stderr.log
Normal file
1
sample/logs/2023-02-15_18:30:48.stderr.log
Normal file
@@ -0,0 +1 @@
|
||||
/usr/bin/bash: line 1: /home/phanes/development/internal/rex-rewrite/sample/environments/rex.variables: Permission denied
|
||||
0
sample/logs/2023-02-15_18:30:48.stdout.log
Normal file
0
sample/logs/2023-02-15_18:30:48.stdout.log
Normal file
6
sample/plans/atomic.plan
Normal file
6
sample/plans/atomic.plan
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"plan": [
|
||||
{ "name": "independent test 1", "dependencies": [ null ] },
|
||||
{ "name": "independent test 2", "dependencies": [ null ] }
|
||||
]
|
||||
}
|
||||
5
sample/plans/test.plan
Normal file
5
sample/plans/test.plan
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"plan": [
|
||||
{ "name": "independent test 1", "dependencies": [ null ] }
|
||||
]
|
||||
}
|
||||
9
sample/rex.config
Normal file
9
sample/rex.config
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"config": {
|
||||
"project_root": "/home/phanes/development/internal/rex-rewrite/sample",
|
||||
"units_path": "units/",
|
||||
"logs_path": "logs/",
|
||||
"shells_path": "shells/shells.definitions",
|
||||
"config_version": "5"
|
||||
}
|
||||
}
|
||||
16
sample/shells/shells.definitions
Normal file
16
sample/shells/shells.definitions
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"shells": [
|
||||
{
|
||||
"name": "bash",
|
||||
"path": "/usr/bin/bash",
|
||||
"execution_arg": "-c",
|
||||
"source_cmd": "source"
|
||||
},
|
||||
{
|
||||
"name": "ksh",
|
||||
"path": "/usr/bin/ksh",
|
||||
"execution_arg": "-c",
|
||||
"source_cmd": "source"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
sample/units/.new.units.swp
Normal file
BIN
sample/units/.new.units.swp
Normal file
Binary file not shown.
22
sample/units/new.units
Normal file
22
sample/units/new.units
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"units": [
|
||||
{
|
||||
"name": "independent test 1",
|
||||
"target": "components/independent_test_1.bash --ls -s --arg",
|
||||
"is_shell_command": true,
|
||||
"shell_definition": "bash",
|
||||
"force_pty": true,
|
||||
"set_working_directory": false,
|
||||
"working_directory": "",
|
||||
"rectify": false,
|
||||
"rectifier": "echo rectifier executed",
|
||||
"active": true,
|
||||
"required": true,
|
||||
"set_user_context": true,
|
||||
"user": "bagira",
|
||||
"group": "bagira",
|
||||
"supply_environment": true,
|
||||
"environment": "environments/rex.variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user