From fd4b8ec3d690fa7341159b0166b382dd43c6c967 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 18 Oct 2018 18:42:00 +0300 Subject: Add implementation --- tests/.gitignore | 2 ++ tests/build/.gitignore | 3 +++ tests/build/bootstrap.build | 9 +++++++++ tests/build/root.build | 7 +++++++ tests/buildfile | 7 +++++++ tests/publish.testscript | 9 +++++++++ 6 files changed, 37 insertions(+) create mode 100644 tests/.gitignore create mode 100644 tests/build/.gitignore create mode 100644 tests/build/bootstrap.build create mode 100644 tests/build/root.build create mode 100644 tests/buildfile create mode 100644 tests/publish.testscript (limited to 'tests') diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..35ec43f --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,2 @@ +test/ +test-*/ diff --git a/tests/build/.gitignore b/tests/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/tests/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/tests/build/bootstrap.build b/tests/build/bootstrap.build new file mode 100644 index 0000000..91bc3e9 --- /dev/null +++ b/tests/build/bootstrap.build @@ -0,0 +1,9 @@ +# file : tests/build/bootstrap.build +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +project = # Unnamed subproject. + +using config +using dist +using test diff --git a/tests/build/root.build b/tests/build/root.build new file mode 100644 index 0000000..1d7601b --- /dev/null +++ b/tests/build/root.build @@ -0,0 +1,7 @@ +# file : tests/build/root.build +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +# Setup the utilities that we are testing. +# +import publish = bpkg-rep%exe{bpkg-rep-publish} diff --git a/tests/buildfile b/tests/buildfile new file mode 100644 index 0000000..36c24d7 --- /dev/null +++ b/tests/buildfile @@ -0,0 +1,7 @@ +# file : tests/buildfile +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +./: testscript{*} $publish + +testscript{publish}@./: test = $publish diff --git a/tests/publish.testscript b/tests/publish.testscript new file mode 100644 index 0000000..95fd6f5 --- /dev/null +++ b/tests/publish.testscript @@ -0,0 +1,9 @@ +# file : tests/publish.testscript +# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +: args +: +{ + $* 2>~"/usage: .+/" != 0 : no-args +} -- cgit v1.1