aboutsummaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
Diffstat (limited to 'test/data')
-rwxr-xr-xtest/data/app-a/hooks/post-install4
-rwxr-xr-x[-rw-r--r--]test/data/app-a/root/bin/app-a3
2 files changed, 6 insertions, 1 deletions
diff --git a/test/data/app-a/hooks/post-install b/test/data/app-a/hooks/post-install
index 99ad974..c548ad7 100755
--- a/test/data/app-a/hooks/post-install
+++ b/test/data/app-a/hooks/post-install
@@ -3,3 +3,7 @@
set -u
echo "Post install"
+
+[ -d ../../logs ] || mkdir ../../logs
+
+ln -s ../../../logs root/logs
diff --git a/test/data/app-a/root/bin/app-a b/test/data/app-a/root/bin/app-a
index 98d98cd..d332993 100644..100755
--- a/test/data/app-a/root/bin/app-a
+++ b/test/data/app-a/root/bin/app-a
@@ -1,8 +1,9 @@
#!/bin/bash
-#cd $APPSH_INSTANCE_HOME
me=`basename $0`
+trap 'echo Signalled >> logs/$me.log; exit 0' TERM INT QUIT
+
env | grep TEST_PROPERTY >> logs/$me.env
echo "Starting" >> logs/$me.log