From c108bb6ba4090046d8c2cd21f40a8008be977311 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Oct 2015 10:06:45 +0200 Subject: Finish drop command implementation --- tests/repository/1/satisfy/libbiz-1.0.0.tar.gz | Bin 0 -> 366 bytes tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz | 1 + tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz | 1 + tests/repository/1/satisfy/t4d/repositories | 3 + tests/test.sh | 152 ++++++++++++++++++++- 5 files changed, 152 insertions(+), 5 deletions(-) create mode 100644 tests/repository/1/satisfy/libbiz-1.0.0.tar.gz create mode 120000 tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz create mode 120000 tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz create mode 100644 tests/repository/1/satisfy/t4d/repositories (limited to 'tests') diff --git a/tests/repository/1/satisfy/libbiz-1.0.0.tar.gz b/tests/repository/1/satisfy/libbiz-1.0.0.tar.gz new file mode 100644 index 0000000..42e3db4 Binary files /dev/null and b/tests/repository/1/satisfy/libbiz-1.0.0.tar.gz differ diff --git a/tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz b/tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz new file mode 120000 index 0000000..70c2fda --- /dev/null +++ b/tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz @@ -0,0 +1 @@ +../libbiz-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz b/tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz new file mode 120000 index 0000000..dcfd7aa --- /dev/null +++ b/tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfox-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4d/repositories b/tests/repository/1/satisfy/t4d/repositories new file mode 100644 index 0000000..f0e1983 --- /dev/null +++ b/tests/repository/1/satisfy/t4d/repositories @@ -0,0 +1,3 @@ +: 1 +location: ../t4c +: diff --git a/tests/test.sh b/tests/test.sh index 932b0d6..18643cc 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -140,7 +140,7 @@ function stat () local s=`$bpkg pkg-status -d $cfg $1` if [ "$s" != "$2" ]; then - error "status: '"$s"', expected: '"$2"'" + error "status $1: '"$s"', expected: '"$2"'" fi } @@ -968,6 +968,8 @@ EOF test rep-create repository/1/satisfy/t4a test rep-create repository/1/satisfy/t4b test rep-create repository/1/satisfy/t4c +test rep-create repository/1/satisfy/t4d + test cfg-create --wipe test rep-add $rep/satisfy/t4c test rep-fetch @@ -1132,6 +1134,7 @@ test rep-fetch test build -y libbaz stat libfoo "configured 1.1.0" + ## ## drop ## @@ -1141,14 +1144,153 @@ fail drop -p # package name expected fail drop -p libfoo # unknown package fail drop -p libfoo/1.0.0 # unknown package -# dependents -# test cfg-create --wipe test rep-add $rep/satisfy/t4c test rep-fetch test build -y libbaz + +test drop -p -y libfoo libbaz libbar <