From c44af08f64675dab8b347eee54c40221f50cb77a Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Wed, 20 May 2015 08:10:27 +0200 Subject: [PATCH] Test example that does its best to break scriptform. --- examples/test/README.md | 4 ++++ examples/test/job_zombie.sh | 11 +++++++++++ examples/test/test.json | 14 ++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 examples/test/README.md create mode 100755 examples/test/job_zombie.sh create mode 100644 examples/test/test.json diff --git a/examples/test/README.md b/examples/test/README.md new file mode 100644 index 0000000..3a794e4 --- /dev/null +++ b/examples/test/README.md @@ -0,0 +1,4 @@ +ScriptForm test example +========================= + +This example does its best to break scriptform. diff --git a/examples/test/job_zombie.sh b/examples/test/job_zombie.sh new file mode 100755 index 0000000..76e0665 --- /dev/null +++ b/examples/test/job_zombie.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# This starts a child process in the background which will block since its file +# descriptors are still tied to us. +sleep 10000 &> /dev/null + +echo "some test error" >&2 + +cat /usr/share/dict/american-english + +exit 1 diff --git a/examples/test/test.json b/examples/test/test.json new file mode 100644 index 0000000..462670c --- /dev/null +++ b/examples/test/test.json @@ -0,0 +1,14 @@ +{ + "title": "Test server", + "forms": [ + { + "name": "zombie", + "title": "Zombie process", + "description": "", + "submit_title": "Start background process", + "script": "job_zombie.sh", + "fields": [ + ] + } + ] +}