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 $?
|
||||
Reference in New Issue
Block a user