From 0e595519c1999317c75aa17bb5cd10d9509f6cbe Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 25 Feb 2016 14:33:59 +0100 Subject: [PATCH] Add test scripts that create trivial a runtime and app --- tests/make-test-app.sh | 19 +++++++++++++++++++ tests/make-test-runtime.sh | 22 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 tests/make-test-app.sh create mode 100755 tests/make-test-runtime.sh diff --git a/tests/make-test-app.sh b/tests/make-test-app.sh new file mode 100755 index 00000000..31a9239a --- /dev/null +++ b/tests/make-test-app.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +DIR=`mktemp -d` + +# Init dir +xdg-app build-init ${DIR} org.test.Hello org.test.Platform org.test.Platform + +mkdir -p ${DIR}/files/bin +cat > ${DIR}/files/bin/hello.sh < //" | awk '{ print $1}' | grep ^/`; do + cp "$i" ${DIR}/usr/lib/ +done + +xdg-app build-export --runtime repo ${DIR} +rm -rf ${DIR}