From f399c3b02c8a97f20d92245cf6b3d0b6b0e1e874 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 4 Sep 2018 15:09:13 +0300 Subject: Rename .test/test{} to .testscript/testscript{} --- tests/worker/startup.testscript | 105 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 tests/worker/startup.testscript (limited to 'tests/worker/startup.testscript') diff --git a/tests/worker/startup.testscript b/tests/worker/startup.testscript new file mode 100644 index 0000000..e44a74b --- /dev/null +++ b/tests/worker/startup.testscript @@ -0,0 +1,105 @@ +# file : tests/worker/startup.testscript +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : TBC; see accompanying LICENSE file + +# Note: requires TFTP server (see buildfile). + +test.options = --startup +tftp = 127.0.0.1:55123/test + +: fail-download +: +$* --tftp-host "$tftp/$@" 2>>"EOE" &manifest != 0; + curl: \(68\) TFTP: File Not Found + error: unable to download task manifest from tftp://$tftp/$@/manifest: input/output error + EOE +diff -u - manifest <=manifest; +$* --tftp-host "$tftp/$@" 2>>"EOE" != 0; + error: invalid task manifest: manifest:2:1: no task package name specified + EOE +diff -u - manifest <=manifest; + : 1 + name: libhello + version: 1.2.3 + repository-url: https://pkg.example.org/1/ + repository-type: pkg + machine: linux-gcc + target: x86_64-linux-gnu + EOI +$* --environments $~ --tftp-host "$tftp/$@" 2>>"EOE" != 0; + error: no environment setup executable in $representation($~) for target 'x86_64-linux-gnu' + EOE +diff -u - manifest <=x86_64-linux-gnu; + #!/bin/sh + echo "environment setup failed" + exit 1 + EOI +chmod ugo+x x86_64-linux-gnu; +cat <=manifest; + : 1 + name: libhello + version: 1.2.3 + repository-url: https://pkg.example.org/1/ + repository-type: pkg + machine: linux-gcc + target: x86_64-linux-gnu + EOI +$* --environments $~ --tftp-host "$tftp/$@" 2>>"EOE" != 0; + environment setup failed + error: process $~/x86_64-linux-gnu terminated with non-zero exit code + EOE +diff -u - manifest <=x86_64-linux-gnu; + #!/bin/sh + echo "$1" + echo "$2" + EOI +chmod ugo+x x86_64-linux-gnu; +cat <=manifest; + : 1 + name: libhello + version: 1.2.3 + repository-url: https://pkg.example.org/1/ + repository-type: pkg + machine: linux-gcc + target: x86_64-linux-gnu + EOI +$* --environments $~ --tftp-host "$tftp/$@" 2>>"EOE" + x86_64-linux-gnu + $0 + EOE -- cgit v1.1