tests: updates test for nitpm with new services
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 5 Mar 2018 15:54:18 +0000 (10:54 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 28 Mar 2018 13:14:05 +0000 (09:14 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/nitpm.args [new file with mode: 0644]
tests/picnit.args [deleted file]
tests/sav/nitpm.res [new file with mode: 0644]
tests/sav/nitpm_args2.res [new file with mode: 0644]
tests/sav/nitpm_args3.res [moved from tests/sav/picnit_args4.res with 100% similarity]
tests/sav/nitpm_args5.res [new file with mode: 0644]
tests/sav/nitpm_args8.res [new file with mode: 0644]
tests/sav/picnit.res [deleted file]
tests/sav/picnit_args2.res [deleted file]
tests/sav/picnit_args3.res [deleted file]
tests/sav/picnit_args5.res [deleted file]

diff --git a/tests/nitpm.args b/tests/nitpm.args
new file mode 100644 (file)
index 0000000..3d57c9e
--- /dev/null
@@ -0,0 +1,8 @@
+install https://gitlab.com/xymus/hello_nitpm.git
+install hello_nitpm
+upgrade hello_nitpm
+install nitpm_test_versions=1.0 nitpm_test_versions=stable nitpm_test_imports
+list
+uninstall -f nitpm_test_versions=1.0 nitpm_test_versions=2.0 nitpm_test_versions=stable nitpm_test_imports nitpm_test_cycle hello_nitpm
+list
+uninstall . .. 0invalid _invalid a/../
diff --git a/tests/picnit.args b/tests/picnit.args
deleted file mode 100644 (file)
index 35da5ee..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-install https://gitlab.com/xymus/hello_picnit.git
-install hello_picnit
-list
-upgrade hello_picnit
diff --git a/tests/sav/nitpm.res b/tests/sav/nitpm.res
new file mode 100644 (file)
index 0000000..c10cc0f
--- /dev/null
@@ -0,0 +1,12 @@
+usage: nitpm <command> [options]
+
+commands:
+  install     Install packages by name, Git repository address or from the local package.ini
+  list        List installed packages
+  upgrade     Upgrade a package
+  uninstall   Uninstall packages
+  help        Show general help message or the help for a command
+
+options:
+  -h, --help      Show help message
+  -v, --verbose   Print more information
diff --git a/tests/sav/nitpm_args2.res b/tests/sav/nitpm_args2.res
new file mode 100644 (file)
index 0000000..a9f808e
--- /dev/null
@@ -0,0 +1 @@
+Package 'hello_nitpm' is already installed
diff --git a/tests/sav/nitpm_args5.res b/tests/sav/nitpm_args5.res
new file mode 100644 (file)
index 0000000..822769d
--- /dev/null
@@ -0,0 +1,6 @@
+hello_nitpm                example
+nitpm_test_cycle
+nitpm_test_imports
+nitpm_test_versions=1.0
+nitpm_test_versions=2.0
+nitpm_test_versions=stable
diff --git a/tests/sav/nitpm_args8.res b/tests/sav/nitpm_args8.res
new file mode 100644 (file)
index 0000000..dc13ee1
--- /dev/null
@@ -0,0 +1,5 @@
+Package name '.' is invalid
+Package name '..' is invalid
+Package name '0invalid' is invalid
+Package name '_invalid' is invalid
+Package name 'a/../' is invalid
diff --git a/tests/sav/picnit.res b/tests/sav/picnit.res
deleted file mode 100644 (file)
index 952c1c1..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-usage: picnit <command> [options]
-
-commands:
-  install     Install a package by its name or from a git-repository
-  list        List installed packages
-  upgrade     Upgrade a package
-  uninstall   Uninstall a package
-  help        Show general help message or the help for a command
-
-options:
-  --help, -h      Show this help message
-  --verbose, -v   Print more information
diff --git a/tests/sav/picnit_args2.res b/tests/sav/picnit_args2.res
deleted file mode 100644 (file)
index 0c6dd31..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Package 'hello_picnit' is already installed
diff --git a/tests/sav/picnit_args3.res b/tests/sav/picnit_args3.res
deleted file mode 100644 (file)
index 81eb1a2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-hello_picnit    example
diff --git a/tests/sav/picnit_args5.res b/tests/sav/picnit_args5.res
deleted file mode 100644 (file)
index 2a7bfed..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Already up-to-date.